.km-assistant-mascot {
    position: fixed;
    right: 10px;
    bottom: 82px;
    z-index: 10049;
    width: 210px;
    height: 236px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: visible;
    appearance: none;
    transform-origin: 72% 100%;
    filter: drop-shadow(0 22px 28px rgba(15,23,42,.22));
    transition: left .42s ease, top .42s ease, right .42s ease, bottom .42s ease, opacity .18s ease, transform .26s ease;
}

.km-assistant-mascot::before {
    content: "";
    position: absolute;
    left: 38px;
    right: 22px;
    bottom: 10px;
    height: 46px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,211,238,.18), rgba(15,23,42,0) 68%);
    pointer-events: none;
}

.km-assistant-bubble {
    position: absolute;
    z-index: 3;
    right: 150px;
    top: 44px;
    width: 172px;
    padding: 10px 12px;
    border: 1px solid rgba(219,227,238,.96);
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    font-size: 13px;
    line-height: 1.22;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(15,23,42,.18);
    opacity: 0;
    transform: translateX(10px) scale(.94);
    animation: kmMascotBubble 8s ease-in-out infinite;
}

.km-assistant-bubble::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid rgba(219,227,238,.96);
    border-bottom: 1px solid rgba(219,227,238,.96);
    transform: rotate(-45deg);
}

.km-assistant-mascot:hover .km-assistant-bubble,
.km-assistant-mascot:focus .km-assistant-bubble {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.km-mascot-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.km-mascot-float {
    transform-box: fill-box;
    transform-origin: 130px 230px;
    animation: kmMascotFloat 4.2s ease-in-out infinite;
}

.km-mascot-head,
.km-mascot-body,
.km-mascot-ear {
    fill: url(#kmMascotShell);
    stroke: #0f172a;
    stroke-width: 4;
}

.km-mascot-face {
    fill: url(#kmMascotDark);
    stroke: #38bdf8;
    stroke-width: 2.2;
}

.km-mascot-helmet-band {
    fill: none;
    stroke: rgba(15,23,42,.7);
    stroke-width: 4;
    stroke-linecap: round;
}

.km-mascot-forehead {
    fill: #101827;
    stroke: #0f172a;
    stroke-width: 3;
}

.km-mascot-forehead-light,
.km-mascot-panel,
.km-mascot-light {
    fill: url(#kmMascotCyan);
    filter: url(#kmMascotGlow);
}

.km-mascot-light,
.km-mascot-forehead-light,
.km-mascot-panel {
    animation: kmMascotPulse 1.8s ease-in-out infinite;
}

.km-mascot-antenna {
    fill: none;
    stroke: #0f172a;
    stroke-width: 5;
    stroke-linecap: round;
}

.km-mascot-eye,
.km-mascot-smile {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 6;
    stroke-linecap: round;
}

.km-mascot-eye {
    animation: kmBotBlink 5.2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.km-mascot-smile {
    stroke-width: 5;
}

.km-mascot-belly {
    fill: #132034;
    stroke: #0f172a;
    stroke-width: 3;
}

.km-mascot-chest-bike {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 3.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(34,211,238,.55));
}

.km-mascot-limb {
    fill: none;
    stroke: #0f172a;
    stroke-width: 12;
    stroke-linecap: round;
}

.km-mascot-joint {
    fill: #dbeafe;
    stroke: #0f172a;
    stroke-width: 4;
}

.km-mascot-left-arm {
    transform-box: fill-box;
    transform-origin: 82px 116px;
    animation: kmMascotWave 2.6s ease-in-out infinite;
}

.km-mascot-right-arm {
    transform-box: fill-box;
    transform-origin: 177px 119px;
    animation: kmMascotToolHand 3.8s ease-in-out infinite;
}

.km-mascot-wrench path,
.km-mascot-wrench rect {
    fill: #e5e7eb;
    stroke: #0f172a;
    stroke-width: 4;
    stroke-linejoin: round;
}

.km-mascot-tablet rect {
    fill: #0f172a;
    stroke: #38bdf8;
    stroke-width: 3;
}

.km-mascot-tablet path,
.km-mascot-tablet circle {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: kmMascotBoard 2s ease-in-out infinite;
}

.km-mascot-bike circle,
.km-mascot-bike path {
    fill: none;
    stroke: #0f172a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.km-mascot-bike .km-mascot-bike-red {
    fill: #dc2626;
    stroke: #7f1d1d;
}

.km-mascot-bike {
    transform-box: fill-box;
    transform-origin: center;
    animation: kmMascotBike 4.8s ease-in-out infinite;
}

.km-mascot-platform ellipse:first-child {
    fill: #0f172a;
}

.km-mascot-platform ellipse:nth-child(2) {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 4;
    filter: url(#kmMascotGlow);
}

.km-mascot-platform path {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: .65;
}

.km-mascot-jet path {
    fill: #38bdf8;
    filter: url(#kmMascotGlow);
    transform-box: fill-box;
    transform-origin: center top;
    animation: kmMascotJet 1.05s ease-in-out infinite;
}

.km-mascot-jet-right path {
    animation-delay: .18s;
}

.km-mascot-shadow {
    fill: rgba(15,23,42,.18);
    animation: kmBotShadow 4.2s ease-in-out infinite;
}

.km-chat-open .km-assistant-mascot {
    opacity: .18;
    pointer-events: none;
    transform: translateY(10px) scale(.86);
}

.km-assistant-mascot {
    right: 28px;
    bottom: 38px;
    width: 248px;
    height: 232px;
    filter: drop-shadow(0 24px 26px rgba(15,23,42,.25));
    transition: left .42s ease, top .42s ease, right .42s ease, bottom .42s ease, opacity .18s ease, transform .26s ease;
}

.km-assistant-mascot::before {
    left: 58px;
    right: 34px;
    bottom: 0;
    height: 58px;
    background: radial-gradient(circle, rgba(34,211,238,.24), rgba(15,23,42,0) 70%);
}

.km-assistant-bubble {
    right: 185px;
    top: 54px;
    width: 190px;
    border-radius: 16px;
}

.km-mascot-character {
    transform-box: fill-box;
    transform-origin: 160px 242px;
    animation: kmMascotFloat 3.4s ease-in-out infinite;
}

.km-mascot-head-wrap {
    transform-box: fill-box;
    transform-origin: 160px 150px;
    animation: kmMascotNod 4.4s ease-in-out infinite;
}

.km-mascot-helmet-back {
    fill: url(#kmMascotHelmet);
    stroke: #020617;
    stroke-width: 5;
    stroke-linejoin: round;
}

.km-mascot-helmet-red,
.km-mascot-helmet-red-right {
    fill: #dc2626;
    stroke: #7f1d1d;
    stroke-width: 3;
    stroke-linejoin: round;
}

.km-mascot-chin,
.km-mascot-body,
.km-mascot-neck {
    fill: url(#kmMascotSilver);
    stroke: #0f172a;
    stroke-width: 4;
    stroke-linejoin: round;
}

.km-mascot-visor {
    fill: url(#kmMascotVisor);
    stroke: #38bdf8;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(34,211,238,.34));
}

.km-mascot-visor-shine {
    fill: none;
    stroke: rgba(255,255,255,.82);
    stroke-width: 5;
    stroke-linecap: round;
    opacity: .65;
    animation: kmMascotShine 2.8s ease-in-out infinite;
}

.km-mascot-eye,
.km-mascot-smile {
    fill: none;
    stroke: #67e8f9;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(34,211,238,.72));
}

.km-mascot-eye {
    stroke-width: 7;
    transform-box: fill-box;
    transform-origin: center;
    animation: kmBotBlink 4.6s ease-in-out infinite;
}

.km-mascot-smile {
    stroke-width: 5;
}

.km-mascot-forehead {
    fill: #111827;
    stroke: #020617;
    stroke-width: 3;
}

.km-mascot-forehead-light,
.km-mascot-panel {
    fill: url(#kmMascotBlue);
    filter: url(#kmMascotSoftGlow);
    animation: kmMascotPulse 1.25s ease-in-out infinite;
}

.km-mascot-body-dark {
    fill: #101827;
    stroke: #020617;
    stroke-width: 3;
    stroke-linejoin: round;
}

.km-mascot-bike-badge {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(34,211,238,.7));
}

.km-mascot-arm-line {
    fill: none;
    stroke: #0f172a;
    stroke-width: 15;
    stroke-linecap: round;
}

.km-mascot-hand {
    fill: url(#kmMascotSilver);
    stroke: #0f172a;
    stroke-width: 4;
}

.km-mascot-keys {
    transform-box: fill-box;
    transform-origin: 100px 154px;
    animation: kmMascotKeyArm 2.25s ease-in-out infinite;
}

.km-mascot-key-ring,
.km-mascot-key {
    fill: url(#kmMascotKey);
    stroke: #78350f;
    stroke-width: 4;
    stroke-linejoin: round;
}

.km-mascot-key {
    transform-box: fill-box;
    transform-origin: 54px 92px;
    animation: kmMascotKeys 1.1s ease-in-out infinite;
}

.km-mascot-key-two {
    animation-delay: .15s;
}

.km-mascot-wrench-arm {
    transform-box: fill-box;
    transform-origin: 218px 157px;
    animation: kmMascotWrenchArm 2.8s ease-in-out infinite;
}

.km-mascot-wrench path,
.km-mascot-wrench rect {
    fill: #e5e7eb;
    stroke: #0f172a;
    stroke-width: 4;
    stroke-linejoin: round;
}

.km-mascot-spark {
    fill: #ef4444;
    filter: drop-shadow(0 0 7px rgba(239,68,68,.7));
    transform-box: fill-box;
    transform-origin: center;
    animation: kmMascotSpark 1.9s ease-in-out infinite;
}

.km-mascot-spark-b {
    fill: #67e8f9;
    animation-delay: .45s;
}

.km-mascot-spark-c {
    fill: #facc15;
    animation-delay: .9s;
}

.km-mascot-shadow {
    fill: rgba(15,23,42,.2);
    transform-box: fill-box;
    transform-origin: center;
    animation: kmMascotShadow 3.4s ease-in-out infinite;
}

.km-chat-open .km-assistant-mascot {
    opacity: .2;
    transform: translateY(12px) scale(.84);
}

.km-mascot-sticker {
    position: absolute;
    z-index: 1;
    inset: -22px -20px 4px -18px;
    display: block;
    transform-origin: 58% 92%;
    animation: kmMascotStickerFloat 3.6s ease-in-out infinite;
}

.km-mascot-sticker::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 8%;
    top: 10%;
    bottom: 6%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 62% 34%, rgba(125, 211, 252, .42), transparent 34%),
        radial-gradient(circle at 45% 54%, rgba(255, 255, 255, .24), transparent 52%);
    filter: blur(12px);
    opacity: .95;
    pointer-events: none;
}

.km-mascot-sticker img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .34));
    transform-origin: 50% 100%;
    animation: kmMascotStickerReady 5.4s ease-in-out infinite;
    opacity: 0;
    transition: opacity .18s ease;
}

.km-mascot-sticker.has-image img {
    opacity: 1;
}

.km-mascot-sticker.is-missing img {
    display: none;
}

.km-mascot-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 22px 25px rgba(0, 0, 0, .32));
}

.km-mascot-sticker.has-image .km-mascot-fallback {
    display: none;
}

.km-fallback-float {
    transform-origin: 184px 284px;
    animation: kmMascotStickerReady 5.4s ease-in-out infinite;
}

.km-fallback-shadow {
    fill: rgba(15, 23, 42, .28);
    animation: kmMascotShadow 3.4s ease-in-out infinite;
}

.km-fallback-body,
.km-fallback-helmet {
    fill: url(#kmFallbackSteel);
    stroke: #020617;
    stroke-width: 8;
    stroke-linejoin: round;
}

.km-fallback-face,
.km-fallback-chest {
    fill: url(#kmFallbackDark);
    stroke: #38bdf8;
    stroke-width: 5;
}

.km-fallback-helmet-band {
    fill: none;
    stroke: #f8fafc;
    stroke-width: 12;
    stroke-linecap: round;
}

.km-fallback-band-right {
    stroke-width: 10;
}

.km-fallback-panel {
    fill: #0f172a;
    stroke: #020617;
    stroke-width: 4;
}

.km-fallback-panel-light,
.km-fallback-light,
.km-fallback-eye,
.km-fallback-smile,
.km-fallback-bike-badge,
.km-fallback-tablet-bike {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#kmFallbackGlow);
}

.km-fallback-panel-light,
.km-fallback-light {
    fill: #67e8f9;
}

.km-fallback-smile {
    stroke-width: 7;
}

.km-fallback-bike-badge,
.km-fallback-tablet-bike {
    stroke-width: 5;
}

.km-fallback-arm {
    fill: none;
    stroke: #0f172a;
    stroke-width: 18;
    stroke-linecap: round;
}

.km-fallback-wrench {
    fill: #e5e7eb;
    stroke: #0f172a;
    stroke-width: 6;
    stroke-linejoin: round;
    transform-box: fill-box;
    transform-origin: 66px 130px;
    animation: kmMascotKeys 1.4s ease-in-out infinite;
}

.km-fallback-tablet {
    fill: rgba(8, 47, 73, .92);
    stroke: #67e8f9;
    stroke-width: 5;
    filter: url(#kmFallbackGlow);
}

.km-fallback-antenna {
    fill: none;
    stroke: #0f172a;
    stroke-width: 8;
    stroke-linecap: round;
}

.km-fallback-jet {
    fill: #22d3ee;
    filter: url(#kmFallbackGlow);
    animation: kmMascotJet 1.05s ease-in-out infinite;
}

.km-fallback-jet-b {
    animation-delay: .18s;
}

.km-mascot-pop {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22d3ee;
    box-shadow: 0 0 14px rgba(34, 211, 238, .9);
    opacity: 0;
    animation: kmMascotPop 2.8s ease-in-out infinite;
}

.km-mascot-pop-a {
    right: 54px;
    top: 34px;
}

.km-mascot-pop-b {
    right: 24px;
    top: 102px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, .85);
    animation-delay: .7s;
}

.km-mascot-pop-c {
    left: 50px;
    top: 96px;
    width: 6px;
    height: 6px;
    background: #facc15;
    box-shadow: 0 0 12px rgba(250, 204, 21, .8);
    animation-delay: 1.4s;
}

.km-chat-open .km-mascot-sticker img {
    animation-duration: 2.6s;
}

.km-chat-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10050;
    border: 0;
    background: #dc2626;
    color: #fff;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
    cursor: pointer;
    animation: kmChatVibrate 1.9s ease-in-out infinite;
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: left .42s ease, top .42s ease, right .42s ease, bottom .42s ease, transform .18s ease, box-shadow .18s ease;
}

body.km-widget-context .km-assistant-mascot {
    left: var(--km-mascot-left);
    top: var(--km-mascot-top);
    right: auto;
    bottom: auto;
    width: 224px;
    height: 208px;
    transform: scale(.96);
}

body.km-widget-context .km-chat-btn {
    left: var(--km-chatbtn-left);
    top: var(--km-chatbtn-top);
    right: auto;
    bottom: auto;
}

body.km-widget-context .km-assistant-bubble {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: none;
}

body.km-widget-at-location .km-assistant-mascot {
    width: 210px;
    height: 196px;
}

body.km-widget-at-location .km-assistant-bubble {
    right: auto;
    left: 132px;
    top: 34px;
    width: 230px;
}

body.km-widget-at-location .km-assistant-bubble::after {
    right: auto;
    left: -7px;
    transform: rotate(135deg);
}

body.km-widget-at-intro .km-assistant-bubble,
body.km-widget-at-hero .km-assistant-bubble {
    right: auto;
    left: 132px;
    top: 34px;
    width: 230px;
}

body.km-widget-at-intro .km-assistant-bubble::after,
body.km-widget-at-hero .km-assistant-bubble::after {
    right: auto;
    left: -7px;
    transform: rotate(135deg);
}

body.km-widget-at-intro .km-chat-btn,
body.km-widget-at-hero .km-chat-btn {
    box-shadow: 0 16px 38px rgba(0,0,0,.32);
}

.km-chat-btn span {
    display: block;
}

.km-btn-mark,
.km-hint-bot,
.km-head-bot {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.km-btn-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.km-hint-bot {
    width: 58px;
    height: 58px;
    margin: -8px 0 -8px -8px;
}

.km-head-bot {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
}

.km-bot-mark {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.km-bot-hover {
    transform-origin: 48px 52px;
    animation: kmBotFloat 3.6s ease-in-out infinite;
}

.km-bot-head,
.km-bot-body {
    fill: url(#kmBotShell);
    stroke: #0f172a;
    stroke-width: 3;
}

.km-bot-face {
    fill: #07111f;
    stroke: #38bdf8;
    stroke-width: 1.6;
}

.km-bot-eye,
.km-bot-smile {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 4;
    stroke-linecap: round;
}

.km-bot-eye {
    animation: kmBotBlink 5.4s ease-in-out infinite;
    transform-origin: center;
}

.km-bot-smile {
    stroke-width: 3.6;
}

.km-bot-antenna,
.km-bot-arm path {
    fill: none;
    stroke: #0f172a;
    stroke-width: 4;
    stroke-linecap: round;
}

.km-bot-light {
    fill: url(#kmBotBlue);
    filter: drop-shadow(0 0 5px rgba(34,211,238,.9));
    animation: kmBotPulse 1.7s ease-in-out infinite;
}

.km-bot-badge,
.km-bot-jet {
    fill: #38bdf8;
    filter: drop-shadow(0 0 4px rgba(34,211,238,.75));
}

.km-bot-arm-left {
    transform-origin: 27px 62px;
    animation: kmBotWave 2.2s ease-in-out infinite;
}

.km-bot-arm-right {
    transform-origin: 70px 62px;
}

.km-bot-arm-right circle {
    fill: #dc2626;
    stroke: #0f172a;
    stroke-width: 2.5;
}

.km-bot-jet-left,
.km-bot-jet-right {
    opacity: .85;
    animation: kmBotJet 1.1s ease-in-out infinite;
}

.km-bot-shadow {
    fill: rgba(15,23,42,.25);
    animation: kmBotShadow 3.6s ease-in-out infinite;
}

.km-chat.is-thinking .km-head-bot .km-bot-light,
.km-chat.is-thinking .km-head-bot .km-bot-jet {
    animation-duration: .55s;
}

.km-chat-hint {
    position: fixed;
    right: 18px;
    bottom: 76px;
    z-index: 10050;
    max-width: 260px;
    padding: 10px 13px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    box-shadow: 0 14px 34px rgba(15,23,42,.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.96);
    animation: kmChatHint 7s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 9px;
}

.km-chat-hint::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid rgba(226, 232, 240, .95);
    border-bottom: 1px solid rgba(226, 232, 240, .95);
    transform: rotate(45deg);
}

.km-chat-btn:hover + .km-chat-hint,
.km-chat-btn:focus + .km-chat-hint {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.km-chat {
    position: fixed;
    right: 18px;
    bottom: 82px;
    width: min(430px, calc(100vw - 28px));
    max-height: min(720px, calc(100vh - 110px));
    z-index: 10051;
    background: #fbfcfd;
    color: #0f172a;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15,23,42,.25);
    overflow: hidden;
    display: none;
}

.km-chat.is-open {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.km-chat-head {
    background: #0f172a;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.km-chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.km-chat-title strong {
    display: block;
    font-size: 15px;
}

.km-chat-title span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    margin-top: 2px;
}

.km-chat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.km-chat-reset,
.km-chat-close {
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.km-chat-reset {
    font-size: 12px;
}

.km-chat-close {
    width: 32px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

.km-chat-body {
    padding: 12px;
    height: min(470px, calc(100vh - 260px));
    min-height: 320px;
    overflow-y: auto;
    background: #f8fafc;
}

.km-chat-messages {
    display: grid;
    gap: 10px;
}

.km-mode-choice {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #fff;
}

.km-mode-choice[hidden] {
    display: none !important;
}

.km-mode-choice h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.15;
}

.km-mode-choice p {
    margin: -2px 0 4px;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.km-mode-choice button {
    width: 100%;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
    padding: 13px 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.km-mode-choice button:hover {
    border-color: #ef4444;
    background: #fff7f7;
    box-shadow: 0 12px 24px rgba(15,23,42,.08);
    transform: translateY(-1px);
}

.km-mode-choice button.is-active {
    border-color: #ef4444;
    background: #fff7f7;
}

.km-mode-choice strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
    font-size: 15px;
}

.km-mode-choice span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.42;
}

.km-lead-card {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #dbe3ee;
    border-radius: 13px;
    background: #fff;
}

.km-lead-card[hidden] {
    display: none !important;
}

.km-lead-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 7px;
}

.km-lead-top span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.km-lead-top strong {
    color: #dc2626;
    font-size: 13px;
}

.km-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.km-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #22c55e;
    transition: width .22s ease;
}

.km-lead-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.km-lead-fields span {
    padding: 5px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.km-lead-fields span.is-done {
    background: #dcfce7;
    color: #166534;
}

.km-chat-input[hidden] {
    display: none !important;
}

.km-msg {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.42;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.km-msg.bot {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.km-msg.bot.error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.km-msg.typing {
    color: #64748b;
    font-style: italic;
}

.km-msg.user {
    justify-self: end;
    background: #dc2626;
    color: #fff;
}

.km-create-card {
    padding: 13px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
}

.km-aztec-choice-card,
.km-sms-code-card {
    max-width: 96%;
    padding: 13px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
}

.km-aztec-choice-card > strong,
.km-sms-code-card > strong {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 15px;
}

.km-aztec-choice-card p,
.km-sms-code-card p {
    margin: 0 0 11px;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.km-aztec-choice-actions {
    display: grid;
    gap: 8px;
}

.km-aztec-choice-actions button,
.km-sms-code-card button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #dc2626;
    color: #fff;
    padding: 11px 12px;
    font-weight: 900;
    cursor: pointer;
}

.km-aztec-choice-actions button + button {
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #0f172a;
}

.km-sms-code-card label {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.km-sms-code-card input[type="text"] {
    width: 150px;
    max-width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .14em;
    text-align: center;
}

.km-chat-warning {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
}

.km-chat-warning > strong {
    display: block;
    margin-bottom: 7px;
    color: #991b1b;
}

.km-chat-warning p {
    margin: 0;
    color: #7f1d1d;
}

.km-chat-warning p + p {
    margin-top: 8px;
}

.km-chat-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 8px !important;
    font-weight: 800 !important;
}

.km-chat-check input {
    margin-top: 3px;
}

.km-create-card > strong {
    display: block;
    margin-bottom: 8px;
    color: #14532d;
}

.km-create-details {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
}

.km-create-details p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}

.km-quick-actions {
    display: none !important;
    gap: 8px;
    padding: 10px 12px 0;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.km-quick-actions button {
    flex: 0 0 auto;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #0f172a;
    padding: 9px 11px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.km-quick-actions button:hover {
    border-color: #dc2626;
    color: #991b1b;
}

.km-quick-actions button[data-action="save"] {
    border-color: #22c55e;
    background: #dcfce7;
    color: #166534;
}

.km-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
}

.km-chat-input textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    outline: none;
    resize: none;
    font: inherit;
    line-height: 1.3;
}

.km-chat-input button {
    align-self: flex-end;
    min-height: 44px;
    border: 0;
    background: #dc2626;
    color: #fff;
    border-radius: 12px;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
}

.km-chat-input button:disabled,
.km-chat-input textarea:disabled,
.km-chat-reset:disabled,
.km-quick-actions button:disabled {
    opacity: .62;
    cursor: wait;
}

.km-submit {
    width: 100%;
    border: 0;
    background: #16a34a;
    color: #fff;
    padding: 13px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

@keyframes kmChatVibrate {
    0%,
    76%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0);
    }

    80% {
        transform: translate3d(-1px, 0, 0) rotate(-2deg);
    }

    84% {
        transform: translate3d(1px, 0, 0) rotate(2deg);
    }

    88% {
        transform: translate3d(-1px, 0, 0) rotate(-1deg);
    }
}

@keyframes kmChatHint {
    0%,
    18%,
    80%,
    100% {
        opacity: 0;
        transform: translateY(8px) scale(.96);
    }

    25%,
    62% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes kmBotFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes kmBotWave {
    0%,
    100% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(-13deg);
    }

    58% {
        transform: rotate(8deg);
    }
}

@keyframes kmBotBlink {
    0%,
    88%,
    100% {
        transform: scaleY(1);
    }

    91%,
    94% {
        transform: scaleY(.16);
    }
}

@keyframes kmBotPulse {
    0%,
    100% {
        opacity: .76;
    }

    50% {
        opacity: 1;
    }
}

@keyframes kmBotJet {
    0%,
    100% {
        transform: scaleY(.82);
        opacity: .55;
    }

    50% {
        transform: scaleY(1.18);
        opacity: 1;
    }
}

@keyframes kmBotShadow {
    0%,
    100% {
        transform: scaleX(1);
        opacity: .26;
    }

    50% {
        transform: scaleX(.84);
        opacity: .16;
    }
}

@keyframes kmMascotFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-7px) rotate(-1deg);
    }
}

@keyframes kmMascotWave {
    0%,
    100% {
        transform: rotate(0deg);
    }

    24% {
        transform: rotate(-11deg);
    }

    46% {
        transform: rotate(9deg);
    }

    68% {
        transform: rotate(-6deg);
    }
}

@keyframes kmMascotToolHand {
    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

@keyframes kmMascotPulse {
    0%,
    100% {
        opacity: .72;
    }

    50% {
        opacity: 1;
    }
}

@keyframes kmMascotJet {
    0%,
    100% {
        transform: scaleY(.78);
        opacity: .58;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

@keyframes kmMascotBike {
    0%,
    100% {
        transform: translate(22px, 192px) rotate(0deg);
    }

    50% {
        transform: translate(24px, 190px) rotate(-1.5deg);
    }
}

@keyframes kmMascotBoard {
    0%,
    100% {
        opacity: .72;
    }

    50% {
        opacity: 1;
    }
}

@keyframes kmMascotBubble {
    0%,
    16%,
    80%,
    100% {
        opacity: 0;
        transform: translateX(10px) scale(.94);
    }

    25%,
    60% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes kmMascotNod {
    0%,
    100% {
        transform: rotate(0deg);
    }

    45% {
        transform: rotate(-2.5deg);
    }

    68% {
        transform: rotate(1.5deg);
    }
}

@keyframes kmMascotShine {
    0%,
    100% {
        opacity: .35;
        transform: translateX(-12px);
    }

    45% {
        opacity: .9;
        transform: translateX(14px);
    }

    70% {
        opacity: .45;
        transform: translateX(4px);
    }
}

@keyframes kmMascotKeyArm {
    0%,
    100% {
        transform: rotate(0deg);
    }

    38% {
        transform: rotate(-7deg);
    }

    62% {
        transform: rotate(5deg);
    }
}

@keyframes kmMascotKeys {
    0%,
    100% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(10deg);
    }

    64% {
        transform: rotate(-9deg);
    }
}

@keyframes kmMascotWrenchArm {
    0%,
    100% {
        transform: rotate(0deg);
    }

    40% {
        transform: rotate(6deg);
    }

    70% {
        transform: rotate(-3deg);
    }
}

@keyframes kmMascotSpark {
    0%,
    100% {
        opacity: .3;
        transform: scale(.72) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.12) rotate(12deg);
    }
}

@keyframes kmMascotShadow {
    0%,
    100% {
        transform: scaleX(1);
        opacity: .22;
    }

    50% {
        transform: scaleX(.82);
        opacity: .13;
    }
}

@keyframes kmMascotStickerFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    45% {
        transform: translateY(-8px) rotate(-1.8deg);
    }

    72% {
        transform: translateY(-3px) rotate(1.2deg);
    }
}

@keyframes kmMascotStickerReady {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .34));
    }

    48% {
        transform: scale(1.035);
        filter: drop-shadow(0 25px 34px rgba(34, 211, 238, .28));
    }
}

@keyframes kmMascotPop {
    0%,
    22%,
    100% {
        opacity: 0;
        transform: translateY(8px) scale(.4);
    }

    46%,
    70% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    .km-assistant-mascot {
        right: -2px;
        bottom: 44px;
        width: 150px;
        height: 140px;
        filter: drop-shadow(0 16px 22px rgba(15,23,42,.2));
    }

    .km-assistant-bubble {
        right: 112px;
        top: 18px;
        width: min(176px, calc(100vw - 150px));
        min-width: 142px;
        font-size: 12px;
        padding: 8px 10px;
    }

    .km-chat-open .km-assistant-mascot {
        opacity: .58;
        pointer-events: none;
        transform: translateY(8px) scale(.78);
    }

    .km-chat-btn {
        right: 14px;
        bottom: 14px;
    }

    .km-chat-hint {
        right: 14px;
        bottom: 72px;
        max-width: min(260px, calc(100vw - 28px));
    }

    .km-chat {
        right: 10px;
        left: 10px;
        bottom: 74px;
        width: auto;
        max-height: calc(100vh - 92px);
    }

    .km-chat-body {
        height: min(460px, calc(100vh - 270px));
        min-height: 300px;
    }
}

@keyframes kmMobileBubblePeek {
    0%,
    58%,
    100% {
        max-width: 52px;
        border-radius: 999px;
        transform: translateX(0) scale(.96);
    }

    66%,
    86% {
        max-width: min(232px, calc(100vw - 138px));
        border-radius: 14px;
        transform: translateX(0) scale(1);
    }
}

@keyframes kmMobileBubbleText {
    0%,
    58%,
    100% {
        max-width: 0;
        opacity: 0;
        margin-left: 0;
    }

    66%,
    86% {
        max-width: 176px;
        opacity: 1;
        margin-left: 4px;
    }
}

@media (max-width: 720px) {
    .km-assistant-mascot {
        right: 0;
        bottom: 48px;
        width: 132px;
        height: 124px;
    }

    body.km-widget-context .km-assistant-mascot,
    body.km-widget-at-location .km-assistant-mascot {
        width: 132px;
        height: 124px;
    }

    .km-assistant-bubble,
    body.km-widget-context .km-assistant-bubble,
    body.km-widget-at-location .km-assistant-bubble,
    body.km-widget-at-intro .km-assistant-bubble,
    body.km-widget-at-hero .km-assistant-bubble {
        left: auto;
        right: 96px;
        top: 30px;
        width: max-content;
        min-width: 0;
        max-width: 52px;
        height: auto;
        padding: 8px 11px;
        overflow: hidden;
        white-space: nowrap;
        opacity: .98;
        transform: translateX(0) scale(.96);
        animation: kmMobileBubblePeek 16s ease-in-out infinite;
    }

    .km-assistant-bubble::after,
    body.km-widget-context .km-assistant-bubble::after,
    body.km-widget-at-location .km-assistant-bubble::after,
    body.km-widget-at-intro .km-assistant-bubble::after,
    body.km-widget-at-hero .km-assistant-bubble::after {
        left: auto;
        right: -7px;
        top: 16px;
        transform: rotate(-45deg);
    }

    .km-bubble-short {
        display: inline-block;
    }

    .km-bubble-full {
        display: inline-block;
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        vertical-align: top;
        animation: kmMobileBubbleText 16s ease-in-out infinite;
    }

    .km-assistant-mascot:hover .km-assistant-bubble,
    .km-assistant-mascot:focus .km-assistant-bubble {
        max-width: min(232px, calc(100vw - 138px));
        border-radius: 14px;
        animation-play-state: paused;
    }

    .km-assistant-mascot:hover .km-bubble-full,
    .km-assistant-mascot:focus .km-bubble-full {
        max-width: 176px;
        opacity: 1;
        margin-left: 4px;
        animation-play-state: paused;
    }
}

@media (max-width: 720px) {
    .km-assistant-mascot,
    body.km-widget-context .km-assistant-mascot,
    body.km-widget-at-location .km-assistant-mascot,
    body.km-widget-at-intro .km-assistant-mascot,
    body.km-widget-at-hero .km-assistant-mascot {
        right: 4px;
        bottom: 54px;
        width: 104px;
        height: 98px;
    }

    .km-assistant-bubble,
    body.km-widget-context .km-assistant-bubble,
    body.km-widget-at-location .km-assistant-bubble,
    body.km-widget-at-intro .km-assistant-bubble,
    body.km-widget-at-hero .km-assistant-bubble {
        right: 74px;
        top: 24px;
        max-width: 42px;
        padding: 7px 9px;
        font-size: 10.5px;
        line-height: 1.12;
        animation-duration: 18s;
    }

    .km-bubble-full {
        animation-duration: 18s;
    }

    .km-assistant-mascot:hover .km-assistant-bubble,
    .km-assistant-mascot:focus .km-assistant-bubble {
        max-width: min(198px, calc(100vw - 112px));
    }

    .km-assistant-mascot:hover .km-bubble-full,
    .km-assistant-mascot:focus .km-bubble-full {
        max-width: 142px;
    }
}

/* 2026-05-25 mobile assistant lock */
@keyframes kmMobileMascotBreath {
    0%,
    54%,
    100% {
        transform: translateY(0) scale(.78);
    }

    64%,
    84% {
        transform: translateY(-4px) scale(1);
    }
}

@keyframes kmMobileBubbleFullPeek {
    0%,
    52%,
    100% {
        opacity: 0;
        transform: translateX(8px) scale(.96);
    }

    62%,
    86% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 720px) {
    .km-assistant-mascot,
    body.km-widget-context .km-assistant-mascot,
    body.km-widget-at-location .km-assistant-mascot,
    body.km-widget-at-intro .km-assistant-mascot,
    body.km-widget-at-hero .km-assistant-mascot {
        right: 6px;
        bottom: 56px;
        width: 118px;
        height: 112px;
        transform-origin: 72% 100%;
        animation: kmMobileMascotBreath 16s ease-in-out infinite;
        filter: drop-shadow(0 14px 20px rgba(15,23,42,.22));
    }

    .km-assistant-bubble,
    body.km-widget-context .km-assistant-bubble,
    body.km-widget-at-location .km-assistant-bubble,
    body.km-widget-at-intro .km-assistant-bubble,
    body.km-widget-at-hero .km-assistant-bubble {
        left: auto;
        right: 82px;
        top: 20px;
        width: min(226px, calc(100vw - 112px));
        min-width: 0;
        max-width: min(226px, calc(100vw - 112px));
        height: auto;
        padding: 8px 10px;
        overflow: visible;
        white-space: normal;
        opacity: 0;
        border-radius: 14px;
        font-size: 10.8px;
        line-height: 1.14;
        animation: kmMobileBubbleFullPeek 16s ease-in-out infinite;
    }

    .km-bubble-short,
    .km-bubble-full {
        display: inline;
        max-width: none;
        overflow: visible;
        opacity: 1;
        margin-left: 0;
        animation: none;
        vertical-align: baseline;
    }

    .km-assistant-mascot:hover,
    .km-assistant-mascot:focus {
        animation-play-state: paused;
        transform: translateY(-4px) scale(1);
    }

    .km-assistant-mascot:hover .km-assistant-bubble,
    .km-assistant-mascot:focus .km-assistant-bubble {
        opacity: 1;
        max-width: min(226px, calc(100vw - 112px));
        animation-play-state: paused;
    }
}

/* Mobile performance: avoid always-on GPU animations while scrolling. */
@media (max-width: 720px) {
    .km-assistant-mascot,
    body.km-widget-context .km-assistant-mascot,
    body.km-widget-at-location .km-assistant-mascot,
    body.km-widget-at-intro .km-assistant-mascot,
    body.km-widget-at-hero .km-assistant-mascot {
        width: 86px;
        height: 82px;
        right: 4px;
        bottom: 52px;
        filter: none;
        transform: none;
    }

    .km-assistant-bubble,
    body.km-widget-context .km-assistant-bubble,
    body.km-widget-at-location .km-assistant-bubble,
    body.km-widget-at-intro .km-assistant-bubble,
    body.km-widget-at-hero .km-assistant-bubble {
        display: none;
    }

    .km-chat-btn {
        box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
    }

    .km-chat.is-open .km-assistant-mascot {
        display: none;
    }
}

@media (max-width: 720px) {
    .km-mascot-sticker img,
    .km-mascot-sticker:not(.has-image) .km-mascot-fallback {
        animation-duration: 4.4s;
    }

    .km-chat-btn {
        animation-duration: 2.4s;
    }
}
