/* PixiCore MakiBot V6.3.1 production base
   Closed state stays lightweight: launcher CSS + small launcher asset only. */

:root {
    --maki63-surface-top: #0d2a52;
    --maki63-surface-bottom: #071831;
    --maki63-electric: #2d8cff;
    --maki63-cyan: #7debff;
    --maki63-teal: #31d4c5;
    --maki63-green: #62d68b;
    --maki63-text: #f4faff;
    --maki63-soft: #bcd0e2;
    --maki63-muted: #829cb2;
    --maki63-shadow: rgba(0, 8, 25, 0.34);
}

#pixibot-button,
.makibot-launcher-v63 {
    --maki-launcher-size: 64px;
    position: fixed;
    right: calc(20px + env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 10020;
    display: grid;
    place-items: center;
    width: var(--maki-launcher-size);
    height: var(--maki-launcher-size);
    min-width: var(--maki-launcher-size);
    min-height: var(--maki-launcher-size);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    isolation: isolate;
    overflow: visible;
    touch-action: manipulation;
    transform: translate3d(0, 0, 0);
    transform-origin: 50% 50%;
    transition: transform 180ms cubic-bezier(.2, .75, .25, 1), filter 180ms ease, opacity 180ms ease;
}

#pixibot-button > img {
    display: none;
}

#pixibot-button:not(.makibot-launcher-v63):not(.makibot-launcher-heritage) {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 21%),
        radial-gradient(circle at 66% 76%, rgba(49,212,197,.26), transparent 48%),
        url("/assets/bot/makibot-launcher-v6-3/makibot-launcher-128.webp") center / cover no-repeat,
        linear-gradient(145deg, rgba(13,42,82,.76), rgba(7,24,49,.9));
    border: 1px solid rgba(125,235,255,.52);
    box-shadow:
        0 14px 30px rgba(0, 8, 25, .26),
        0 0 22px rgba(45, 140, 255, .18),
        inset 0 1px 0 rgba(255,255,255,.36);
}

.makibot-bubble {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 17%, rgba(255,255,255,.62), transparent 20%),
        radial-gradient(circle at 72% 76%, rgba(49,212,197,.22), transparent 52%),
        linear-gradient(145deg, rgba(13,42,82,.20), rgba(7,24,49,.42) 58%, rgba(49,212,197,.10));
    border: 1px solid rgba(125,235,255,.56);
    box-shadow:
        0 14px 32px rgba(0, 8, 25, .28),
        0 0 0 1px rgba(255,255,255,.06),
        0 0 22px rgba(45, 140, 255, .18),
        0 0 34px rgba(49, 212, 197, .10),
        inset 0 1px 0 rgba(255,255,255,.42),
        inset 0 -10px 18px rgba(2, 15, 36, .30);
    transform: translateZ(0);
    animation: maki63BubbleFloat 8.8s ease-in-out infinite;
}

.makibot-bubble::before,
.makibot-bubble::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: inherit;
}

.makibot-bubble::before {
    inset: -8px;
    z-index: -1;
    background:
        radial-gradient(circle at 46% 44%, rgba(125,235,255,.24), transparent 52%),
        conic-gradient(from 50deg, transparent 0 16%, rgba(125,235,255,.28) 24%, transparent 42% 63%, rgba(98,214,139,.22) 74%, transparent 92%);
    filter: blur(5px);
    opacity: .76;
    animation: maki63BubbleHalo 7.8s ease-in-out infinite;
}

.makibot-bubble::after {
    inset: 1px;
    background:
        radial-gradient(ellipse at 29% 18%, rgba(255,255,255,.42) 0 10%, transparent 22%),
        linear-gradient(122deg, rgba(255,255,255,.12), transparent 24% 76%, rgba(125,235,255,.10));
    mix-blend-mode: screen;
    opacity: .84;
}

.makibot-bubble__avatar-wrap {
    position: absolute;
    inset: 5px;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(7,24,49,.92), rgba(13,42,82,.88));
}

.makibot-bubble__avatar-wrap picture,
.makibot-bubble__avatar {
    display: block;
    width: 100%;
    height: 100%;
}

.makibot-bubble__avatar {
    object-fit: cover;
    object-position: 50% 45%;
    border: 0;
    transform: translateZ(0);
    filter: saturate(1.05) contrast(1.02);
}

.makibot-bubble__specular,
.makibot-bubble__iridescence,
.makibot-bubble__depth,
.makibot-bubble__status {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.makibot-bubble__specular {
    z-index: 5;
    top: 8%;
    left: 15%;
    width: 34%;
    height: 20%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.78), rgba(255,255,255,.20) 42%, transparent 70%);
    filter: blur(.2px);
    transform: rotate(-28deg);
    opacity: .72;
    animation: maki63Specular 8.4s ease-in-out infinite;
}

.makibot-bubble__iridescence {
    inset: -1px;
    z-index: 4;
    border: 1px solid rgba(255,255,255,.14);
    background:
        conic-gradient(from 160deg, rgba(125,235,255,0), rgba(125,235,255,.18), rgba(98,214,139,.16), rgba(45,140,255,.15), rgba(125,235,255,0));
    mix-blend-mode: screen;
    opacity: .56;
    animation: maki63Iridescence 9.6s linear infinite;
}

.makibot-bubble__depth {
    inset: 3px;
    z-index: 3;
    box-shadow:
        inset 8px 9px 16px rgba(255,255,255,.08),
        inset -8px -10px 18px rgba(0, 7, 24, .26);
}

.makibot-bubble__status {
    right: 2px;
    bottom: 5px;
    z-index: 6;
    width: 11px;
    height: 11px;
    background: var(--maki63-green);
    border: 2px solid #071831;
    box-shadow:
        0 0 0 1px rgba(236,255,243,.52),
        0 0 12px rgba(98,214,139,.80);
    animation: maki63Status 2.8s ease-in-out infinite;
}

#pixibot-button:hover,
#pixibot-button:focus-visible {
    transform: translateY(-1px) scale(1.035);
    outline: none;
}

#pixibot-button:focus-visible .makibot-bubble {
    box-shadow:
        0 14px 32px rgba(0, 8, 25, .28),
        0 0 0 4px rgba(45, 140, 255, .24),
        0 0 28px rgba(125,235,255,.22),
        inset 0 1px 0 rgba(255,255,255,.46),
        inset 0 -10px 18px rgba(2, 15, 36, .30);
}

#pixibot-button:active {
    transform: scale(.98);
}

#pixibot-button[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
}

#pixibot-chat {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right));
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 10010;
    width: min(420px, calc(100vw - 32px));
    max-height: min(620px, calc(100dvh - 118px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--maki63-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    isolation: isolate;
}

#pixibot-chat.hidden {
    display: none;
}

#pixibot-chat .chat-header,
#pixibot-chat .chat-suggestions,
#pixibot-chat .chat-input {
    border: 1px solid rgba(53,174,235,.34);
    background:
        linear-gradient(145deg, rgba(13,42,82,.94), rgba(7,24,49,.92));
    box-shadow:
        0 16px 34px rgba(0, 8, 25, .22),
        inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

#pixibot-chat .chat-header {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 10px;
    overflow: hidden;
    border-radius: 8px;
}

#pixibot-chat .chat-header::before,
#pixibot-chat .chat-input::before,
#pixibot-chat .bot-msg::before,
#pixibot-chat .user-msg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 54%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--maki63-electric), var(--maki63-cyan) 58%, var(--maki63-teal), transparent);
    opacity: .72;
    pointer-events: none;
}

#pixibot-chat .pixibot-head {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    border: 1px solid rgba(125,235,255,.42);
    border-radius: 50%;
    background: var(--maki63-surface-bottom);
    box-shadow: 0 0 0 3px rgba(45,140,255,.10);
}

#pixibot-chat .chat-title {
    display: grid;
    gap: 2px;
    min-width: 0;
}

#pixibot-chat .chat-title strong {
    overflow: hidden;
    color: var(--maki63-text);
    font-size: .96rem;
    font-weight: 780;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pixibot-chat .chat-title span {
    color: var(--maki63-soft);
    font-size: .875rem;
    line-height: 1.18;
}

#pixibot-chat .chat-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dfffe9;
    font-size: .875rem;
    font-weight: 680;
    line-height: 1;
    white-space: nowrap;
}

#pixibot-chat .chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--maki63-green);
    box-shadow: 0 0 8px rgba(98,214,139,.62);
}

#pixibot-chat .btn-close {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(53,174,235,.24);
    border-radius: 8px;
    background: rgba(7,31,60,.62);
    color: #d9eefb;
    cursor: pointer;
}

#pixibot-chat .btn-close::before,
#pixibot-chat .btn-close::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

#pixibot-chat .btn-close::before {
    transform: rotate(45deg);
}

#pixibot-chat .btn-close::after {
    transform: rotate(-45deg);
}

#pixibot-chat .chat-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    min-height: 160px;
    padding: 2px 4px 4px 2px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: transparent;
    color: var(--maki63-text);
    scrollbar-width: thin;
    scrollbar-color: rgba(125,235,255,.34) transparent;
}

#pixibot-chat .chat-body::-webkit-scrollbar {
    width: 5px;
}

#pixibot-chat .chat-body::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(125,235,255,.30);
}

#pixibot-chat .user-msg,
#pixibot-chat .bot-msg {
    position: relative;
    width: fit-content;
    max-width: min(90%, 520px);
    margin: 0;
    padding: 13px 15px 28px;
    overflow-wrap: anywhere;
    color: var(--maki63-text);
    font-size: .92rem;
    line-height: 1.58;
    box-shadow:
        0 12px 32px rgba(37, 135, 255, .16),
        0 16px 30px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px) saturate(138%);
    -webkit-backdrop-filter: blur(16px) saturate(138%);
}

#pixibot-chat .bot-msg {
    align-self: flex-start;
    border: 1px solid rgba(88,180,255,.38);
    border-radius: 18px 22px 22px 8px;
    background:
        radial-gradient(circle at 12% 0%, rgba(125,235,255,.12), transparent 34%),
        linear-gradient(145deg, rgba(13,43,82,.95), rgba(7,25,51,.93));
}

#pixibot-chat .user-msg {
    align-self: flex-end;
    max-width: min(84%, 500px);
    border: 1px solid rgba(67,220,201,.36);
    border-radius: 22px 18px 8px 22px;
    background:
        radial-gradient(circle at 88% 0%, rgba(49,212,197,.10), transparent 34%),
        linear-gradient(145deg, rgba(18,72,112,.94), rgba(8,39,72,.92));
}

#pixibot-chat .user-msg::before {
    right: 10%;
    left: auto;
    width: 48%;
}

#pixibot-chat .bot-msg.text-danger {
    border-color: rgba(255, 121, 137, .44);
    color: #ffe8ec;
}

#pixibot-chat .bot-welcome strong {
    display: block;
    margin: 0 0 4px;
    color: #f5fbff;
}

#pixibot-chat .maki-markdown p {
    margin: 0;
}

#pixibot-chat .maki-markdown p + p,
#pixibot-chat .maki-markdown p + ul,
#pixibot-chat .maki-markdown p + ol,
#pixibot-chat .maki-markdown ul + p,
#pixibot-chat .maki-markdown ol + p {
    margin-top: .62em;
}

#pixibot-chat .maki-markdown ul,
#pixibot-chat .maki-markdown ol {
    margin: .4em 0 0;
    padding-left: 1.25rem;
}

#pixibot-chat .maki-markdown a {
    color: #72e8f5;
    font-weight: 680;
    text-decoration: underline;
    text-decoration-color: rgba(114,232,245,.42);
    text-underline-offset: 2px;
}

#pixibot-chat .chat-suggestions {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 8px;
    scrollbar-width: none;
}

#pixibot-chat .chat-suggestions::-webkit-scrollbar {
    display: none;
}

#pixibot-chat .chat-suggestions button {
    flex: 0 0 auto;
    min-height: 34px;
    max-width: 170px;
    padding: 7px 11px;
    overflow: hidden;
    border: 1px solid rgba(53,174,235,.30);
    border-radius: 999px;
    background: rgba(7,31,60,.76);
    color: #cbe9f7;
    font-size: .875rem;
    font-weight: 680;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

#pixibot-chat .chat-suggestions button:hover,
#pixibot-chat .chat-suggestions button:focus-visible {
    border-color: rgba(53,217,242,.56);
    background: rgba(13,55,100,.88);
    color: #effcff;
    outline: none;
    transform: translateY(-1px);
}

#pixibot-chat .chat-input {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 7px 8px;
    overflow: hidden;
    border-radius: 999px;
    background:
        linear-gradient(100deg, rgba(4,23,50,.95), rgba(7,38,72,.90));
}

#pixibot-chat .chat-input input {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    outline: none;
    border-radius: 999px;
    background: transparent;
    color: var(--maki63-text);
    font-size: .92rem;
    line-height: 1.35;
}

#pixibot-chat .chat-input input::placeholder {
    color: rgba(188,208,226,.64);
}

#pixibot-chat .chat-input:focus-within {
    border-color: rgba(125,235,255,.54);
    box-shadow:
        0 16px 38px rgba(36, 145, 255, .26),
        0 18px 30px rgba(0, 0, 0, .20),
        inset 0 0 18px rgba(51, 197, 239, .10),
        inset 0 1px 0 rgba(255, 255, 255, .20);
}

#pixibot-chat .chat-input button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148,245,244,.54);
    border-radius: 50%;
    background: linear-gradient(135deg, #26a7ff, #31d9d3);
    color: #fff;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 3px rgba(4, 19, 40, .14),
        inset 0 1px 0 rgba(255, 255, 255, .34),
        0 0 16px rgba(38, 167, 255, .22);
    transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

#pixibot-chat .chat-input button::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 9px;
    width: 15px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.34);
    filter: blur(1px);
    transform: rotate(-24deg);
}

#pixibot-chat .chat-input button:hover,
#pixibot-chat .chat-input button:focus-visible {
    filter: brightness(1.06) saturate(1.04);
    outline: none;
    transform: translateY(-1px) scale(1.02);
}

#pixibot-chat .chat-input button:active {
    transform: scale(.98);
}

#pixibot-chat .chat-input button:disabled {
    cursor: wait;
    filter: saturate(.65);
    opacity: .58;
}

#pixibot-chat .typing-dots {
    display: inline-flex;
    gap: 4px;
}

#pixibot-chat .typing-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maki63-cyan);
    animation: maki63Typing 900ms ease-in-out infinite;
}

#pixibot-chat .typing-dots i:nth-child(2) { animation-delay: 120ms; }
#pixibot-chat .typing-dots i:nth-child(3) { animation-delay: 240ms; }

#pixibot-chat .typing-msg.maki-wake-card {
    display: block;
    max-width: min(92%, 520px);
    padding: 0;
    overflow: hidden;
}

#pixibot-chat .maki-wake-shell {
    display: grid;
    gap: 8px;
    padding: 12px 13px 11px;
}

#pixibot-chat .maki-wake-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#pixibot-chat .maki-wake-orb {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 34%, #fff 0 15%, transparent 16%),
        radial-gradient(circle at 55% 55%, var(--maki63-teal), var(--maki63-electric));
    box-shadow: 0 0 0 6px rgba(125,235,255,.07), 0 0 22px rgba(49,212,197,.20);
}

#pixibot-chat .maki-wake-title-wrap {
    display: grid;
    gap: 2px;
    min-width: 0;
}

#pixibot-chat .maki-wake-kicker,
#pixibot-chat .maki-wake-copy,
#pixibot-chat .maki-wake-step {
    color: var(--maki63-muted);
}

#pixibot-chat .maki-wake-kicker {
    font-size: .875rem;
    font-weight: 760;
    line-height: 1.1;
    text-transform: uppercase;
}

#pixibot-chat .maki-wake-title {
    color: var(--maki63-text);
    font-size: .9rem;
    line-height: 1.2;
}

#pixibot-chat .maki-wake-elapsed {
    margin-left: auto;
    min-width: 42px;
    padding: 5px 8px;
    border: 1px solid rgba(125,235,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: var(--maki63-soft);
    font-size: .875rem;
    text-align: center;
}

#pixibot-chat .maki-wake-copy {
    margin: 0;
    font-size: .875rem;
    line-height: 1.38;
}

#pixibot-chat .maki-wake-rail {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}

#pixibot-chat .maki-wake-rail span {
    display: block;
    width: var(--maki-wake-progress, 10%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--maki63-electric), var(--maki63-cyan), var(--maki63-teal));
    transition: width 850ms cubic-bezier(.2,.8,.2,1);
}

#pixibot-chat .maki-wake-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#pixibot-chat .maki-wake-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: .875rem;
    line-height: 1.2;
}

#pixibot-chat .maki-wake-step span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pixibot-chat .maki-wake-step-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(221,239,246,.35);
}

#pixibot-chat .maki-wake-step.is-active,
#pixibot-chat .maki-wake-step.is-complete {
    color: #dffff9;
}

#pixibot-chat .maki-wake-step.is-active .maki-wake-step-dot {
    background: var(--maki63-cyan);
    box-shadow: 0 0 0 5px rgba(125,235,255,.10);
}

.pc-makibot-showcase {
    --maki-showcase-x: 0px;
    --maki-showcase-y: 0px;
    position: relative;
    isolation: isolate;
    overflow: visible;
    background: transparent;
}

.pc-makibot-showcase picture {
    display: block;
    transform: translate3d(var(--maki-showcase-x), var(--maki-showcase-y), 0);
    transition: transform 180ms ease-out;
}

.pc-makibot-showcase img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        saturate(1.04)
        contrast(1.025)
        drop-shadow(0 24px 32px rgba(0, 0, 0, .25))
        drop-shadow(0 0 20px rgba(53, 217, 242, .14));
}

@media (min-width: 1600px) {
    #pixibot-button,
    .makibot-launcher-v63 {
        --maki-launcher-size: 66px;
    }
}

@media (max-width: 1024px) {
    #pixibot-button,
    .makibot-launcher-v63 {
        --maki-launcher-size: 58px;
        right: calc(18px + env(safe-area-inset-right));
        bottom: calc(18px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 640px) {
    #pixibot-button,
    .makibot-launcher-v63 {
        --maki-launcher-size: 52px;
        right: calc(14px + env(safe-area-inset-right));
        bottom: calc(14px + env(safe-area-inset-bottom));
    }

    #pixibot-chat {
        left: max(8px, env(safe-area-inset-left));
        right: max(8px, env(safe-area-inset-right));
        bottom: max(8px, env(safe-area-inset-bottom));
        width: auto;
        max-height: min(74dvh, 620px);
    }

    #pixibot-chat .chat-header {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        min-height: 56px;
        padding: 7px;
    }

    #pixibot-chat .pixibot-head {
        width: 40px;
        height: 40px;
    }

    #pixibot-chat .chat-title span,
    #pixibot-chat .chat-status {
        display: none;
    }

    #pixibot-chat .chat-body {
        max-height: min(42dvh, 330px);
        min-height: 150px;
    }

    #pixibot-chat .user-msg,
    #pixibot-chat .bot-msg {
        max-width: 95%;
        padding: 11px 12px 27px;
        font-size: .9rem;
        line-height: 1.56;
    }

    #pixibot-chat .user-msg {
        max-width: 90%;
    }
}

@media (max-width: 375px) {
    #pixibot-button,
    .makibot-launcher-v63 {
        --maki-launcher-size: 50px;
        right: calc(12px + env(safe-area-inset-right));
        bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    #pixibot-button,
    #pixibot-button *,
    #pixibot-button *::before,
    #pixibot-button *::after,
    #pixibot-chat,
    #pixibot-chat *,
    #pixibot-chat *::before,
    #pixibot-chat *::after,
    .pc-makibot-showcase picture {
        animation: none !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    #pixibot-button:hover,
    #pixibot-button:focus-visible {
        transform: none;
    }
}

@keyframes maki63BubbleFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    45% { transform: translate3d(0, -2px, 0); }
    72% { transform: translate3d(0, -1px, 0); }
}

@keyframes maki63BubbleHalo {
    0%, 100% { opacity: .56; transform: scale(.98); }
    50% { opacity: .82; transform: scale(1.035); }
}

@keyframes maki63Specular {
    0%, 100% { opacity: .58; transform: translate3d(0, 0, 0) rotate(-28deg); }
    50% { opacity: .78; transform: translate3d(7%, 5%, 0) rotate(-20deg); }
}

@keyframes maki63Iridescence {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes maki63Status {
    0%, 100% { box-shadow: 0 0 0 1px rgba(236,255,243,.52), 0 0 8px rgba(98,214,139,.58); }
    50% { box-shadow: 0 0 0 1px rgba(236,255,243,.62), 0 0 14px rgba(98,214,139,.88); }
}

@keyframes maki63Typing {
    0%, 100% { opacity: .35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* === PIXICORE_MAKIBOT_V6_3_1_LAUNCHER_POLISH BEGIN === */
/* Final soap-bubble skin: avatar is strictly clipped; only optical layers may overflow. */
.makibot-launcher-v63 .makibot-bubble {
    background:
        radial-gradient(circle at 29% 17%, rgba(255,255,255,.72), transparent 18%),
        radial-gradient(circle at 70% 78%, rgba(49,212,197,.20), transparent 48%),
        radial-gradient(circle at 54% 52%, rgba(45,140,255,.08), rgba(4,17,38,.20) 58%, rgba(3,12,28,.42) 100%);
    border-color: rgba(151,240,255,.64);
    box-shadow:
        0 14px 30px rgba(0,8,25,.27),
        0 0 0 1px rgba(255,255,255,.08),
        0 0 24px rgba(45,140,255,.18),
        0 0 38px rgba(49,212,197,.11),
        inset 7px 8px 14px rgba(255,255,255,.08),
        inset -9px -11px 18px rgba(2,12,31,.34);
    backdrop-filter: blur(2px) saturate(118%);
    -webkit-backdrop-filter: blur(2px) saturate(118%);
}

.makibot-launcher-v63 .makibot-bubble__avatar-wrap {
    inset: 6px;
    box-shadow:
        0 0 0 1px rgba(125,235,255,.18),
        inset 0 0 14px rgba(2,14,35,.22);
}

.makibot-launcher-v63 .makibot-bubble__avatar {
    object-position: 50% 46%;
    filter: saturate(1.06) contrast(1.035) brightness(1.015);
}

.makibot-launcher-v63 .makibot-bubble__specular {
    top: 7%;
    left: 14%;
    width: 36%;
    height: 22%;
    opacity: .78;
}

.makibot-launcher-v63 .makibot-bubble__iridescence {
    opacity: .66;
    filter: saturate(1.1);
}

.makibot-launcher-v63 .makibot-bubble__status {
    right: 1px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border-width: 2px;
}
/* === PIXICORE_MAKIBOT_V6_3_1_LAUNCHER_POLISH END === */

/* === PIXICORE_MAKIBOT_V6_3_2_CONTACT_BUBBLE_BEGIN === */
:root {
    --maki632-contact-blue: #2578ff;
    --maki632-contact-cyan: #28bfe2;
    --maki632-contact-teal: #34d9bd;
    --maki632-contact-ice: #a8f5ff;
}

/* Launcher: keep MakiBot physically inside the bubble while the optical shell
   is free to glow beyond it. The palette intentionally echoes PixiCore's
   premium Contact CTA. */
#pixibot-button.makibot-launcher-v63 .makibot-bubble {
    border-color: rgba(128, 239, 255, .72);
    background:
        radial-gradient(circle at 27% 16%, rgba(255,255,255,.68), transparent 18%),
        radial-gradient(circle at 76% 82%, rgba(52,217,189,.24), transparent 47%),
        linear-gradient(145deg, rgba(37,120,255,.18), rgba(40,191,226,.13) 48%, rgba(52,217,189,.18));
    box-shadow:
        0 14px 34px rgba(8, 72, 169, .25),
        0 0 0 1px rgba(255,255,255,.07),
        0 0 24px rgba(40,191,226,.22),
        0 0 38px rgba(52,217,189,.13),
        inset 0 1px 0 rgba(255,255,255,.52),
        inset 0 -11px 20px rgba(2, 20, 48, .30);
}

#pixibot-button.makibot-launcher-v63 .makibot-bubble::before {
    background:
        radial-gradient(circle at 45% 43%, rgba(125,235,255,.28), transparent 50%),
        conic-gradient(from 34deg,
            transparent 0 12%,
            rgba(37,120,255,.30) 20%,
            rgba(40,191,226,.33) 31%,
            transparent 44% 61%,
            rgba(52,217,189,.28) 72%,
            rgba(168,245,255,.18) 82%,
            transparent 94%);
    filter: blur(5.5px);
    opacity: .88;
}

#pixibot-button.makibot-launcher-v63 .makibot-bubble__avatar-wrap {
    inset: 5px;
    border: 1px solid rgba(190, 247, 255, .24);
    box-shadow:
        inset 0 0 18px rgba(20, 89, 179, .16),
        0 0 0 1px rgba(4, 20, 45, .16);
}

#pixibot-button.makibot-launcher-v63 .makibot-bubble__iridescence {
    background:
        conic-gradient(from 145deg,
            transparent,
            rgba(37,120,255,.19),
            rgba(40,191,226,.25),
            rgba(52,217,189,.20),
            rgba(168,245,255,.16),
            transparent);
    opacity: .68;
}

#pixibot-button.makibot-launcher-v63 .makibot-bubble__status {
    background: #72f5ad;
    border-color: #062443;
    box-shadow:
        0 0 0 1px rgba(240,255,247,.66),
        0 0 13px rgba(75,238,152,.92);
}
/* === PIXICORE_MAKIBOT_V6_3_2_CONTACT_BUBBLE_END === */

/* === PIXICORE_MAKIBOT_HERITAGE_LAUNCHER_BEGIN === */
/* Closed launcher only. The modern open-chat styles above remain untouched. */
#pixibot-button.makibot-launcher-heritage {
    --maki-heritage-width: 104px;
    --maki-heritage-height: 108px;
    background: none !important;
    background-image: none !important;
    right: calc(22px + env(safe-area-inset-right));
    bottom: calc(22px + env(safe-area-inset-bottom));
    width: var(--maki-heritage-width);
    height: var(--maki-heritage-height);
    min-width: var(--maki-heritage-width);
    min-height: var(--maki-heritage-height);
    border-radius: 50%;
    overflow: visible;
    filter: drop-shadow(0 13px 18px rgba(3, 24, 43, .18));
    animation: makibotHeritageIdleLife 8.6s ease-in-out infinite;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-halo {
    position: absolute;
    inset: -5px -6px -1px;
    z-index: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 28% 18%, rgba(255, 255, 255, .11), transparent 27%),
        conic-gradient(from 18deg,
            transparent 0 13%,
            rgba(173, 244, 255, .12) 19%,
            transparent 29% 43%,
            rgba(94, 231, 213, .09) 50%,
            transparent 59% 76%,
            rgba(205, 151, 255, .08) 82%,
            transparent 91%);
    filter: blur(5px);
    opacity: .34;
    pointer-events: none;
    animation: makibotHeritageAura 7.8s ease-in-out infinite;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-bubble {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: var(--maki-heritage-width);
    height: var(--maki-heritage-width);
    border: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 28% 16%, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018) 16%, transparent 34%),
        radial-gradient(ellipse at 78% 68%, rgba(91, 239, 214, .028), transparent 47%),
        radial-gradient(circle at 50% 52%, transparent 61%, rgba(171, 238, 247, .022) 78%, transparent 100%);
    box-shadow:
        0 9px 20px rgba(2, 28, 48, .10),
        inset 3px 2px 8px rgba(255, 255, 255, .025),
        inset -4px -4px 10px rgba(85, 217, 226, .025);
    pointer-events: none;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-bubble::before,
#pixibot-button.makibot-launcher-heritage .makibot-heritage-bubble::after {
    content: "";
    position: absolute;
    z-index: 3;
    border-radius: 50%;
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-bubble::before {
    inset: -1px;
    padding: 1.15px;
    background: conic-gradient(from -18deg,
        transparent 0deg 18deg,
        rgba(255, 255, 255, .78) 29deg,
        rgba(221, 252, 255, .26) 48deg,
        transparent 73deg 118deg,
        rgba(91, 226, 255, .42) 142deg,
        rgba(126, 247, 202, .18) 168deg,
        transparent 197deg 255deg,
        rgba(202, 145, 255, .23) 278deg,
        rgba(255, 145, 204, .17) 299deg,
        rgba(255, 231, 141, .11) 318deg,
        transparent 345deg 360deg);
    filter: drop-shadow(0 0 1px rgba(173, 241, 255, .18));
    opacity: .76;
    transform-origin: 50% 50%;
    animation: makibotHeritageMembrane 11.6s ease-in-out infinite;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-bubble::after {
    inset: 2px;
    padding: .8px;
    background: conic-gradient(from 3deg,
        transparent 0deg 8deg,
        rgba(255, 255, 255, .29) 22deg,
        transparent 51deg 123deg,
        rgba(111, 237, 255, .15) 146deg,
        transparent 171deg 266deg,
        rgba(226, 174, 255, .14) 287deg,
        transparent 319deg 360deg);
    filter: blur(.15px);
    opacity: .54;
    transform-origin: 49% 51%;
    animation: makibotHeritageInnerTrace 13.8s ease-in-out infinite;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-avatar-wrap {
    position: absolute;
    inset: 5px;
    z-index: 2;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(ellipse at 48% 46%, rgba(255, 255, 255, .025), transparent 66%);
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    object-position: 50% 50%;
    filter: saturate(1.025) contrast(1.015) drop-shadow(0 5px 5px rgba(4, 25, 36, .16));
    transform: translate3d(0, 0, 0) scale(.98);
    transform-origin: 50% 58%;
    animation: makibotHeritageBreathing 6.8s ease-in-out infinite;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-iridescence,
#pixibot-button.makibot-launcher-heritage .makibot-heritage-specular,
#pixibot-button.makibot-launcher-heritage .makibot-heritage-status {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-iridescence {
    inset: 0;
    z-index: 3;
    padding: 1.65px;
    background: conic-gradient(from 25deg,
        transparent 0 8%,
        rgba(60, 220, 255, .22) 15%,
        rgba(185, 100, 255, .16) 23%,
        rgba(255, 120, 190, .14) 31%,
        transparent 40% 54%,
        rgba(255, 220, 110, .11) 62%,
        rgba(90, 255, 190, .16) 72%,
        transparent 83% 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    mix-blend-mode: screen;
    opacity: .38;
    transform-origin: 50% 50%;
    animation: makibotHeritageIridescence 28s linear infinite;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-specular {
    inset: 0;
    z-index: 4;
    background: radial-gradient(ellipse 22% 7% at 18% 82%, rgba(210, 170, 255, .12), rgba(255, 184, 223, .045) 43%, transparent 74%);
    opacity: .72;
    animation: makibotHeritageSpecularDrift 12.4s ease-in-out infinite;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-specular::before,
#pixibot-button.makibot-launcher-heritage .makibot-heritage-specular::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-specular::before {
    top: 9%;
    left: 14%;
    width: 31%;
    height: 10%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .76), rgba(255, 255, 255, .20) 37%, transparent 72%);
    filter: blur(.45px);
    transform: rotate(-24deg);
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-specular::after {
    top: 14%;
    right: 8%;
    width: 15%;
    height: 27%;
    border-top: 1px solid rgba(232, 255, 255, .27);
    border-right: 1px solid rgba(147, 240, 255, .21);
    border-radius: 50%;
    filter: blur(.3px);
    opacity: .72;
    transform: rotate(17deg);
}

#pixibot-button.makibot-launcher-heritage .makibot-heritage-status {
    right: 5px;
    bottom: 7px;
    z-index: 5;
    width: 11px;
    height: 11px;
    border: 2px solid rgba(7, 55, 75, .86);
    background: #6ef0ad;
    box-shadow: 0 0 0 1px rgba(240, 255, 248, .58), 0 0 10px rgba(72, 232, 155, .62);
    animation: makibotHeritageSignal 3.4s ease-in-out infinite;
}

#pixibot-button.makibot-launcher-heritage:hover,
#pixibot-button.makibot-launcher-heritage:focus-visible {
    transform: translateY(-1px) scale(1.018);
    filter: drop-shadow(0 15px 21px rgba(3, 24, 43, .22));
}

#pixibot-button.makibot-launcher-heritage:focus-visible .makibot-heritage-bubble {
    box-shadow:
        0 10px 22px rgba(2, 28, 48, .17),
        0 0 0 4px rgba(54, 183, 220, .22),
        0 0 22px rgba(46, 202, 224, .20),
        inset 0 1px 0 rgba(255, 255, 255, .52),
        inset 0 -8px 18px rgba(7, 68, 91, .09);
}

#pixibot-button.makibot-launcher-heritage:active {
    transform: scale(.985);
}

@media (max-width: 640px) {
    #pixibot-button.makibot-launcher-heritage {
        --maki-heritage-width: 82px;
        --maki-heritage-height: 86px;
        right: calc(14px + env(safe-area-inset-right));
        bottom: calc(16px + env(safe-area-inset-bottom));
    }

    #pixibot-button.makibot-launcher-heritage .makibot-heritage-avatar-wrap {
        inset: 4px;
    }

    #pixibot-button.makibot-launcher-heritage .makibot-heritage-status {
        right: 3px;
        bottom: 5px;
        width: 9px;
        height: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #pixibot-button.makibot-launcher-heritage,
    #pixibot-button.makibot-launcher-heritage *,
    #pixibot-button.makibot-launcher-heritage *::before,
    #pixibot-button.makibot-launcher-heritage *::after {
        animation: none !important;
        transition: none !important;
    }

    #pixibot-button.makibot-launcher-heritage:hover,
    #pixibot-button.makibot-launcher-heritage:focus-visible {
        transform: none;
    }
}

@keyframes makibotHeritageIdleLife {
    0%, 100% { transform: translate3d(0, 0, 0); }
    48% { transform: translate3d(0, -2px, 0); }
    74% { transform: translate3d(0, -1px, 0); }
}

@keyframes makibotHeritageBreathing {
    0%, 100% { transform: translate3d(0, 0, 0) scale(.98); }
    50% { transform: translate3d(0, -1px, 0) scale(.992); }
}

@keyframes makibotHeritageAura {
    0%, 100% { opacity: .28; transform: scale(.992); }
    50% { opacity: .38; transform: scale(1.012); }
}

@keyframes makibotHeritageMembrane {
    0%, 100% { border-radius: 50% 49% 51% 50%; transform: scaleX(1) scaleY(1); }
    34% { border-radius: 49% 51% 50% 50%; transform: scaleX(1.006) scaleY(.995); }
    68% { border-radius: 51% 49% 49% 51%; transform: scaleX(.996) scaleY(1.006); }
}

@keyframes makibotHeritageInnerTrace {
    0%, 100% { transform: rotate(-1deg) scaleX(1.002) scaleY(.998); }
    52% { transform: rotate(2deg) scaleX(.996) scaleY(1.005); }
}

@keyframes makibotHeritageIridescence {
    from { transform: rotate(0deg) scaleX(.998) scaleY(1.002); }
    to { transform: rotate(360deg) scaleX(1.003) scaleY(.997); }
}

@keyframes makibotHeritageSpecularDrift {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: .66; }
    48% { transform: translate3d(.7px, -.5px, 0); opacity: .76; }
    76% { transform: translate3d(-.35px, .2px, 0); opacity: .70; }
}

@keyframes makibotHeritageSignal {
    0%, 100% { opacity: .82; transform: scale(.94); }
    50% { opacity: 1; transform: scale(1.04); }
}
/* === PIXICORE_MAKIBOT_HERITAGE_LAUNCHER_END === */


/* MakiBot public token streaming v6.5 */
#pixibot-chat .bot-msg.maki-streaming-response::after{
  content:"";
  display:inline-block;
  width:6px;
  height:1em;
  margin-left:4px;
  vertical-align:-2px;
  border-radius:2px;
  background:linear-gradient(180deg,#7debff,#69e3c1);
  box-shadow:0 0 10px rgba(87,223,219,.28);
  animation:makibotStreamCaret .82s steps(1,end) infinite;
}
#pixibot-chat.maki-chat-processing .chat-status-dot{
  animation:makibotStreamStatus 1.15s ease-in-out infinite;
}
@keyframes makibotStreamCaret{
  50%{opacity:0}
}
@keyframes makibotStreamStatus{
  0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(98,214,139,.26)}
  50%{transform:scale(1.14);box-shadow:0 0 0 6px rgba(98,214,139,0)}
}
@media(prefers-reduced-motion:reduce){
  #pixibot-chat .bot-msg.maki-streaming-response::after,
  #pixibot-chat.maki-chat-processing .chat-status-dot{animation:none!important}
}


/* === PIXICORE_AI_BOOST_V1 === */
#pixicore-ai-boost.pixicore-ai-boost {
    position: fixed;
    right: calc(138px + env(safe-area-inset-right));
    bottom: calc(31px + env(safe-area-inset-bottom));
    z-index: 10019;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 7px 12px 7px 8px;
    border: 1px solid rgba(125,235,255,.24);
    border-radius: 999px;
    color: #eefcff;
    background: linear-gradient(145deg, rgba(7,24,49,.88), rgba(10,39,61,.82));
    box-shadow: 0 12px 28px rgba(0,8,25,.22), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
#pixicore-ai-boost .pixicore-ai-boost__icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: rgba(125,235,255,.08);
    color: #7debff;
    box-shadow: inset 0 0 0 1px rgba(125,235,255,.12);
}
#pixicore-ai-boost .pixicore-ai-boost__copy {
    display: grid;
    gap: 1px;
    text-align: left;
    line-height: 1.05;
}
#pixicore-ai-boost .pixicore-ai-boost__copy strong {
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .01em;
}
#pixicore-ai-boost .pixicore-ai-boost__copy small {
    color: #9db9c9;
    font-size: 9px;
    font-weight: 650;
}
#pixicore-ai-boost:hover,
#pixicore-ai-boost:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(125,235,255,.46);
    box-shadow: 0 14px 31px rgba(0,8,25,.27), 0 0 20px rgba(45,140,255,.10);
    outline: none;
}
#pixicore-ai-boost[data-state="warming"] {
    border-color: rgba(255,205,108,.32);
}
#pixicore-ai-boost[data-state="warming"] .pixicore-ai-boost__icon {
    color: #ffd675;
    background: rgba(255,205,108,.10);
}
#pixicore-ai-boost[data-state="ready"] {
    border-color: rgba(98,214,139,.38);
    box-shadow: 0 12px 28px rgba(0,8,25,.22), 0 0 22px rgba(98,214,139,.10);
}
#pixicore-ai-boost[data-state="ready"] .pixicore-ai-boost__icon {
    color: #72f5ad;
    background: rgba(98,214,139,.11);
}
#pixicore-ai-boost[data-state="error"] {
    border-color: rgba(255,120,120,.38);
}
@media (max-width: 640px) {
    #pixicore-ai-boost.pixicore-ai-boost {
        right: calc(101px + env(safe-area-inset-right));
        bottom: calc(25px + env(safe-area-inset-bottom));
        min-height: 42px;
        padding: 5px 8px;
    }
    #pixicore-ai-boost .pixicore-ai-boost__icon {
        width: 30px;
        height: 30px;
    }
    #pixicore-ai-boost .pixicore-ai-boost__copy {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    #pixicore-ai-boost.pixicore-ai-boost { transition: none; }
}
/* === PIXICORE_AI_BOOST_V1_END === */


/* === PIXICORE_MAKIBOT_LIVE_V6_7_BEGIN === */
#pixibot-chat .typing-msg.maki-thinking-card {
    display: block;
    width: fit-content;
    max-width: min(88%, 430px);
    padding: 0;
    overflow: hidden;
    border-color: rgba(109, 222, 246, .28);
    background:
        radial-gradient(circle at 8% 0%, rgba(125,235,255,.10), transparent 38%),
        linear-gradient(145deg, rgba(10,37,72,.96), rgba(6,23,47,.95));
    box-shadow:
        0 14px 34px rgba(0,8,25,.18),
        inset 0 1px 0 rgba(255,255,255,.10);
    animation: makiThinkingEnter 180ms cubic-bezier(.2,.8,.2,1) both;
}

#pixibot-chat .maki-thinking-shell {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    padding: 10px 12px;
}

#pixibot-chat .maki-thinking-orb {
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(3, 4px);
    place-content: center;
    gap: 3px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(125,235,255,.30);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,.58), transparent 16%),
        radial-gradient(circle at 62% 68%, rgba(49,212,197,.26), transparent 45%),
        rgba(45,140,255,.11);
    box-shadow:
        0 0 0 5px rgba(125,235,255,.045),
        0 0 18px rgba(49,212,197,.13);
}

#pixibot-chat .maki-thinking-orb::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    border-top-color: rgba(125,235,255,.68);
    border-right-color: rgba(49,212,197,.38);
    animation: makiThinkingOrbit 1.7s linear infinite;
}

#pixibot-chat .maki-thinking-orb i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #dffcff;
    box-shadow: 0 0 6px rgba(125,235,255,.54);
    animation: makiThinkingDot 1s ease-in-out infinite;
}

#pixibot-chat .maki-thinking-orb i:nth-child(2) { animation-delay: 120ms; }
#pixibot-chat .maki-thinking-orb i:nth-child(3) { animation-delay: 240ms; }

#pixibot-chat .maki-thinking-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

#pixibot-chat .maki-thinking-title {
    overflow: hidden;
    color: #f2fbff;
    font-size: .86rem;
    font-weight: 760;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pixibot-chat .maki-thinking-detail {
    overflow: hidden;
    color: #9fbdcb;
    font-size: .76rem;
    font-weight: 560;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pixibot-chat .maki-thinking-flow {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 20px;
    padding-left: 2px;
}

#pixibot-chat .maki-thinking-flow i {
    width: 2px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7debff, #31d4c5);
    opacity: .34;
    transform-origin: center;
    animation: makiThinkingFlow 850ms ease-in-out infinite;
}

#pixibot-chat .maki-thinking-flow i:nth-child(2) { animation-delay: 90ms; }
#pixibot-chat .maki-thinking-flow i:nth-child(3) { animation-delay: 180ms; }
#pixibot-chat .maki-thinking-flow i:nth-child(4) { animation-delay: 270ms; }

#pixibot-chat .maki-streaming-response::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -.12em;
    border-radius: 2px;
    background: #7debff;
    box-shadow: 0 0 8px rgba(125,235,255,.52);
    animation: makiStreamCursor 760ms steps(1,end) infinite;
}

@media (max-width: 640px) {
    #pixibot-chat .typing-msg.maki-thinking-card {
        max-width: 94%;
        padding: 0;
    }
    #pixibot-chat .maki-thinking-shell {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        min-width: min(280px, 78vw);
        gap: 8px;
        padding: 9px 10px;
    }
    #pixibot-chat .maki-thinking-orb {
        width: 30px;
        height: 30px;
    }
    #pixibot-chat .maki-thinking-title { font-size: .82rem; }
    #pixibot-chat .maki-thinking-detail { font-size: .72rem; }
}

@keyframes makiThinkingEnter {
    from { opacity: 0; transform: translate3d(0,4px,0) scale(.985); }
    to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}

@keyframes makiThinkingOrbit {
    to { transform: rotate(360deg); }
}

@keyframes makiThinkingDot {
    0%, 100% { opacity: .30; transform: translateY(1px); }
    50% { opacity: 1; transform: translateY(-1px); }
}

@keyframes makiThinkingFlow {
    0%, 100% { height: 5px; opacity: .28; }
    50% { height: 14px; opacity: .86; }
}

@keyframes makiStreamCursor {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: .18; }
}
/* === PIXICORE_MAKIBOT_LIVE_V6_7_END === */


/* === MAKIBOT_HOT_STREAM_V6_9_START === */
#pixibot-chat .typing-msg.maki-thinking-card.maki-thinking-live,
[data-maki-panel] .typing-msg.maki-thinking-card.maki-thinking-live {
  width: min(100%, 338px);
  max-width: 92%;
  margin-bottom: 10px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: makiHotReplyEnter .18s cubic-bezier(.2,.8,.2,1) both;
}

#pixibot-chat .maki-thinking-live .maki-thinking-shell,
[data-maki-panel] .maki-thinking-live .maki-thinking-shell {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(126,222,241,.15);
  border-radius: 17px 17px 17px 8px;
  background:
    radial-gradient(circle at 10% 10%, rgba(94,221,231,.085), transparent 34%),
    linear-gradient(145deg, rgba(15,20,42,.96), rgba(9,13,29,.94));
  box-shadow:
    0 10px 25px rgba(2,6,18,.18),
    inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

#pixibot-chat .maki-thinking-live .maki-thinking-shell::after,
[data-maki-panel] .maki-thinking-live .maki-thinking-shell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 13%;
  width: 36%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,236,247,.58), transparent);
  opacity: .72;
}

#pixibot-chat .maki-live-signal,
[data-maki-panel] .maki-live-signal {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(240,255,255,.96) 0 7%, transparent 9%),
    radial-gradient(circle, rgba(94,226,228,.20), rgba(85,116,238,.08) 58%, transparent 61%);
  box-shadow:
    0 0 0 1px rgba(126,231,241,.13),
    0 0 17px rgba(72,214,225,.10);
}

#pixibot-chat .maki-live-signal::before,
[data-maki-panel] .maki-live-signal::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #87edf1;
  box-shadow: 0 0 10px rgba(121,238,241,.46);
  animation: makiHotSignal 1.55s ease-in-out infinite;
}

#pixibot-chat .maki-live-signal::after,
[data-maki-panel] .maki-live-signal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(126,232,243,.20);
  border-radius: 50%;
  animation: makiHotRing 1.55s ease-out infinite;
}

#pixibot-chat .maki-live-signal > i,
[data-maki-panel] .maki-live-signal > i {
  display: none;
}

#pixibot-chat .maki-thinking-live .maki-thinking-copy,
[data-maki-panel] .maki-thinking-live .maki-thinking-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#pixibot-chat .maki-thinking-live .maki-thinking-title,
[data-maki-panel] .maki-thinking-live .maki-thinking-title {
  overflow: hidden;
  color: #f4f8ff;
  font-size: .82rem;
  font-weight: 735;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pixibot-chat .maki-thinking-live .maki-thinking-detail,
[data-maki-panel] .maki-thinking-live .maki-thinking-detail {
  overflow: hidden;
  color: rgba(194,211,225,.68);
  font-size: .70rem;
  font-weight: 530;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pixibot-chat .maki-live-activity,
[data-maki-panel] .maki-live-activity {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 2px;
}

#pixibot-chat .maki-live-activity i,
[data-maki-panel] .maki-live-activity i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(143,235,242,.78);
  box-shadow: 0 0 5px rgba(126,232,243,.22);
  animation: makiHotDot .92s ease-in-out infinite;
}

#pixibot-chat .maki-live-activity i:nth-child(2),
[data-maki-panel] .maki-live-activity i:nth-child(2) { animation-delay: 120ms; }
#pixibot-chat .maki-live-activity i:nth-child(3),
[data-maki-panel] .maki-live-activity i:nth-child(3) { animation-delay: 240ms; }

#pixibot-chat .maki-thinking-live.is-leaving,
[data-maki-panel] .maki-thinking-live.is-leaving {
  opacity: 0;
  transform: translateY(-2px) scale(.992);
  transition: opacity .10s ease, transform .10s ease;
}

#pixibot-chat .maki-streaming-response,
[data-maki-panel] .maki-streaming-response {
  contain: content;
}

#pixibot-chat .maki-streaming-response::after,
[data-maki-panel] .maki-streaming-response::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: .94em;
  margin-left: 2px;
  vertical-align: -.10em;
  border-radius: 2px;
  background: rgba(130,235,242,.92);
  box-shadow: 0 0 6px rgba(116,230,239,.30);
  animation: makiHotCursor .68s steps(1,end) infinite;
}

@keyframes makiHotReplyEnter {
  from { opacity: 0; transform: translateY(3px) scale(.992); }
  to { opacity: 1; transform: none; }
}
@keyframes makiHotSignal {
  0%,100% { opacity: .62; transform: scale(.78); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes makiHotRing {
  0% { opacity: .62; transform: scale(.72); }
  72%,100% { opacity: 0; transform: scale(1.18); }
}
@keyframes makiHotDot {
  0%,100% { opacity: .24; transform: translateY(0); }
  50% { opacity: .95; transform: translateY(-2px); }
}
@keyframes makiHotCursor {
  0%,52% { opacity: 1; }
  53%,100% { opacity: .16; }
}

@media (max-width: 640px) {
  #pixibot-chat .typing-msg.maki-thinking-card.maki-thinking-live,
  [data-maki-panel] .typing-msg.maki-thinking-card.maki-thinking-live {
    width: min(100%, 320px);
    max-width: 94%;
  }
  #pixibot-chat .maki-thinking-live .maki-thinking-shell,
  [data-maki-panel] .maki-thinking-live .maki-thinking-shell {
    grid-template-columns: 28px minmax(0,1fr) auto;
    gap: 8px;
    padding: 9px 10px;
  }
  #pixibot-chat .maki-live-signal,
  [data-maki-panel] .maki-live-signal {
    width: 26px;
    height: 26px;
  }
  #pixibot-chat .maki-thinking-live .maki-thinking-title,
  [data-maki-panel] .maki-thinking-live .maki-thinking-title { font-size: .80rem; }
  #pixibot-chat .maki-thinking-live .maki-thinking-detail,
  [data-maki-panel] .maki-thinking-live .maki-thinking-detail { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  #pixibot-chat .maki-live-signal::before,
  #pixibot-chat .maki-live-signal::after,
  #pixibot-chat .maki-live-activity i,
  #pixibot-chat .maki-streaming-response::after,
  [data-maki-panel] .maki-live-signal::before,
  [data-maki-panel] .maki-live-signal::after,
  [data-maki-panel] .maki-live-activity i,
  [data-maki-panel] .maki-streaming-response::after {
    animation: none !important;
  }
}
/* === MAKIBOT_HOT_STREAM_V6_9_END === */

/* Keep the assistant free of surrounding floating controls while scrolling. */
#pixibot-button[data-maki-launcher]{z-index:10020;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
@media(max-width:640px){
 #pixibot-button[data-maki-launcher]{
   right:calc(12px + env(safe-area-inset-right))!important;
   bottom:calc(14px + env(safe-area-inset-bottom))!important;
 }
}
