/* KYNOVARA K ASSISTANT UX V10 */
/* KYNOVARA K ASSISTANT UX V12 */
.kynovara-mascot-stage .k-cinematic-video{transition:opacity .65s ease!important}
.kynovara-mascot-stage.video-ready .k-cinematic-video{opacity:0!important;visibility:visible!important}
.kynovara-mascot-stage.video-ready .k-cinematic-video.k-video-active{opacity:1!important;visibility:visible!important}
.k-spontaneous-bubble{position:absolute;z-index:40;right:68%;top:18%;max-width:240px;padding:11px 14px;border:1px solid rgba(91,205,255,.24);border-radius:15px 15px 4px 15px;background:rgba(4,13,23,.9);color:#eafaff;box-shadow:0 18px 50px rgba(0,0,0,.35),0 0 24px rgba(45,177,255,.08);font:650 12px/1.35 var(--body);opacity:0;transform:translateY(6px) scale(.97);pointer-events:none;backdrop-filter:blur(16px);transition:.22s ease}
.k-spontaneous-bubble.show{opacity:1;transform:none}
.k-chat-backdrop{position:fixed;z-index:180;inset:0;background:rgba(0,6,13,.54);backdrop-filter:blur(7px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
body.k-guide-open{overflow:hidden!important}
body.k-guide-open .k-chat-backdrop{opacity:1;visibility:visible;pointer-events:auto}
.k-chat-card.k-guide-card{position:fixed!important;z-index:190!important;top:50%!important;right:52vw!important;left:auto!important;bottom:auto!important;width:min(470px,calc(100vw - 48px))!important;max-width:none!important;max-height:min(76vh,760px)!important;display:flex!important;flex-direction:column!important;padding:0!important;margin:0!important;overflow:hidden!important;border:1px solid rgba(91,205,255,.23)!important;border-radius:22px!important;background:linear-gradient(160deg,rgba(5,16,27,.985),rgba(2,9,16,.995))!important;box-shadow:0 36px 130px rgba(0,0,0,.62),0 0 70px rgba(33,151,255,.08),inset 0 1px rgba(255,255,255,.035)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(calc(-50% + 14px)) scale(.985)!important;transition:opacity .2s ease,transform .2s ease,visibility .2s ease!important}
.k-chat-card.k-guide-card.open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(-50%) scale(1)!important}
.k-chat-card::before,.k-chat-card::after{display:none!important}
.k-chat-head{display:grid;grid-template-columns:42px minmax(0,1fr) 38px;align-items:center;gap:11px;min-height:70px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.065);background:rgba(8,21,34,.72)}
.k-chat-avatar{display:grid;width:40px;height:40px;place-items:center;border:1px solid rgba(81,204,255,.3);border-radius:12px;background:linear-gradient(145deg,rgba(27,140,236,.18),rgba(74,211,255,.07));color:#6edcff;font:750 15px var(--mono)}
.k-chat-identity{display:flex;min-width:0;flex-direction:column;gap:4px}.k-chat-identity b{overflow:hidden;color:#eefaff;font-size:14px;white-space:nowrap;text-overflow:ellipsis}.k-chat-identity small{display:flex;align-items:center;gap:6px;color:#78909d;font:650 8px var(--mono);letter-spacing:.08em}.k-chat-identity small i{width:6px;height:6px;border-radius:50%;background:#6fe3b5;box-shadow:0 0 13px rgba(111,227,181,.45)}
.k-chat-close{display:grid!important;width:36px!important;height:36px!important;place-items:center!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:10px!important;background:rgba(255,255,255,.035)!important;color:#9fb0b9!important;font:400 22px/1 Arial,sans-serif!important;cursor:pointer!important}
.k-chat-thread{display:flex;min-height:180px;max-height:min(45vh,420px);flex:1;flex-direction:column;gap:11px;padding:18px 16px 8px;overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(100,146,170,.24) transparent;overscroll-behavior:contain}.k-chat-thread::-webkit-scrollbar{width:5px}.k-chat-thread::-webkit-scrollbar-thumb{border-radius:999px;background:rgba(100,146,170,.24)}
.k-chat-message{display:flex}.k-chat-message>div{max-width:86%;padding:10px 12px;border-radius:14px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.k-chat-message.is-user{justify-content:flex-end}.k-chat-message.is-user>div{border:1px solid rgba(84,204,255,.19);border-bottom-right-radius:5px;background:linear-gradient(135deg,rgba(29,137,240,.24),rgba(70,202,255,.11));color:#effbff}.k-chat-message.is-k{justify-content:flex-start}.k-chat-message.is-k>div{border:1px solid rgba(255,255,255,.07);border-bottom-left-radius:5px;background:rgba(255,255,255,.045);color:#cdd9df}.k-chat-message.is-pending>div{opacity:.62;font-style:italic}
.k-chat-suggestions{display:flex;gap:7px;padding:10px 16px 4px;overflow-x:auto;scrollbar-width:none}.k-chat-suggestions::-webkit-scrollbar{display:none}.k-chat-suggestions button{flex:0 0 auto;min-height:34px;padding:0 11px;border:1px solid rgba(83,194,244,.14);border-radius:999px;background:rgba(7,22,35,.74);color:#92a8b4;font:650 9px var(--mono);white-space:nowrap;cursor:pointer}
.k-chat-compose{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;gap:8px!important;margin:10px 16px 0!important;padding:7px!important;border:1px solid rgba(93,198,247,.16)!important;border-radius:14px!important;background:#07131f!important;box-shadow:0 10px 34px rgba(0,0,0,.2)!important}.k-chat-compose input{min-width:0!important;height:42px!important;padding:0 10px!important;border:0!important;outline:0!important;background:transparent!important;color:#eefaff!important;font:500 13px var(--body)!important;box-shadow:none!important}.k-chat-compose input::placeholder{color:#667d89!important}.k-chat-compose button{display:grid!important;width:42px!important;height:42px!important;place-items:center!important;padding:0!important;border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#147ff0,#39c4ff)!important;color:#fff!important;font:700 18px/1 Arial,sans-serif!important;cursor:pointer!important}
.k-chat-status{padding:9px 17px 13px;color:#5f7682;font:650 7px var(--mono);letter-spacing:.07em}
@media(max-width:900px){.k-chat-card.k-guide-card{top:auto!important;right:10px!important;bottom:calc(82px + env(safe-area-inset-bottom))!important;left:10px!important;width:auto!important;max-height:calc(100dvh - 100px)!important;border-radius:20px!important;transform:translateY(18px) scale(.99)!important}.k-chat-card.k-guide-card.open{transform:none!important}.k-chat-thread{min-height:180px;max-height:42vh;padding:16px 14px 8px}.k-chat-head{min-height:66px;padding:12px 14px}.k-chat-suggestions{padding-inline:14px}.k-chat-compose{margin-inline:14px!important}.k-chat-status{padding-inline:15px}.k-spontaneous-bubble{right:43%;top:6%;max-width:190px;font-size:11px}}
@media(max-width:430px){.k-chat-card.k-guide-card{right:6px!important;left:6px!important;bottom:calc(72px + env(safe-area-inset-bottom))!important}.k-chat-thread{max-height:38vh}}
/* K_WAIT_V1: decor only. Never delays a completed answer. */
.k-wait{--kw-blue:#70ddff;--kw-light:#e7f8ff;--kw-dim:#a4c4d9;position:relative;box-sizing:border-box;width:100%;max-width:430px;min-width:0;display:grid;grid-template-columns:94px minmax(0,1fr);align-items:center;gap:14px;padding:20px 18px;border:1px solid #294858;border-radius:20px;background:linear-gradient(120deg,#0d2131,#071722 75%);box-shadow:inset 0 1px #c1ecff0d,0 10px 32px #0000001a;overflow:hidden;font:14px/1.55 system-ui,sans-serif;color:var(--kw-light)}
.k-wait[hidden]{display:none!important}.k-wait *{box-sizing:border-box}.kw-scene{position:relative;width:90px;height:90px;display:grid;place-items:center;isolation:isolate;contain:layout}.kw-core{position:absolute;display:grid;place-items:center;width:46px;height:46px;border:1px solid #64ceef99;border-radius:15px;background:linear-gradient(150deg,#183e56,#0d2535);box-shadow:0 0 28px #5bceff30,inset 0 1px #d4f8ff33;color:#dbfaff;font:800 27px/1 system-ui,sans-serif;transform:rotate(-6deg);z-index:3;animation:kw-breathe 2.8s ease-in-out infinite}.kw-core span{transform:rotate(6deg)}.kw-glow{position:absolute;inset:7px;border-radius:50%;background:radial-gradient(circle,#31b8ec25 0,#279fd710 48%,transparent 72%);animation:kw-halo 5s ease-in-out infinite}.kw-orbit{position:absolute;inset:3px;border:1px solid #55c6ec24;border-top-color:#8ee8ff;border-bottom-color:#339ecd70;border-radius:50%;animation:kw-orbit 3.7s linear infinite}.kw-orbit:after{content:"";position:absolute;top:7px;right:9px;width:5px;height:5px;background:#b9f2ff;border-radius:50%;box-shadow:0 0 8px #6bddff}.kw-orbit.o2{inset:12px;border-color:#3fa6d02b;border-right-color:#8ddeff9e;animation-duration:5.8s;animation-direction:reverse;transform:rotate(32deg)}.kw-orbit.o2:after{width:3px;height:3px;top:5px;right:8px}.kw-spark{position:absolute;width:3px;height:3px;left:3px;top:45px;border-radius:50%;background:#adeeff;animation:kw-spark 5.8s ease-in-out infinite}.kw-spark.s2{left:76px;top:69px;animation-delay:-2.4s}.kw-spark.s3{left:44px;top:2px;animation-delay:-4s}.kw-copy{position:relative;min-width:0;z-index:1}.kw-eyebrow{margin:0 0 4px;color:#8ac0d9;letter-spacing:.12em;text-transform:uppercase;font-size:10px;font-weight:650}.kw-title{margin:0;font-size:15px;line-height:1.5;font-weight:650;color:var(--kw-light);overflow-wrap:anywhere}.kw-detail{margin:5px 0 0;color:var(--kw-dim);font-size:12px;line-height:1.6;overflow-wrap:anywhere}.kw-dots{display:inline-flex;gap:4px;margin-left:7px;vertical-align:middle}.kw-dots i{width:4px;height:4px;background:#7bd9f7;border-radius:50%;animation:kw-dot 1.6s ease-in-out infinite}.kw-dots i:nth-child(2){animation-delay:.2s}.kw-dots i:nth-child(3){animation-delay:.4s}.kw-motion{display:block;padding:5px 0;margin-top:8px;border:0;background:transparent;color:#96b8cc;font:11px/1.5 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:28px}.kw-motion:focus-visible{outline:2px solid #a9edff;outline-offset:3px;border-radius:3px}.k-wait[data-state="queued"] .kw-core{animation-duration:3.8s}.k-wait[data-state="working"] .kw-orbit{animation-duration:2.7s}.k-wait[data-slow="true"] .kw-orbit{animation-duration:6s}.k-wait[data-state="uncertain"] .kw-orbit,.k-wait[data-state="offline"] .kw-orbit{opacity:.45}.k-wait[data-state="error"]{border-color:#796150}.k-wait[data-state="error"] .kw-orbit{border-top-color:#d8ae8d}.k-wait[data-paused="true"] *,.k-wait[data-state="error"] *{animation-play-state:paused!important}.kw-paused-document .k-wait *{animation-play-state:paused!important}
@keyframes kw-orbit{to{transform:rotate(360deg)}}@keyframes kw-breathe{0%,100%{transform:rotate(-6deg) translateY(1px) scale(.98);box-shadow:0 0 18px #5bceff22,inset 0 1px #d4f8ff33}50%{transform:rotate(-3deg) translateY(-1px) scale(1.025);box-shadow:0 0 32px #5bceff40,inset 0 1px #d4f8ff33}}@keyframes kw-halo{0%,100%{opacity:.65;transform:scale(.94)}50%{opacity:1;transform:scale(1.06)}}@keyframes kw-spark{0%,100%{transform:translateY(0);opacity:.2}45%{transform:translateY(-6px);opacity:.85}}@keyframes kw-dot{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.k-wait *{animation:none!important;transition:none!important}.kw-motion{display:none}.kw-orbit.o2{transform:rotate(40deg)}}
@media(max-width:380px){.k-wait{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:16px 12px}.kw-scene{width:70px;height:70px}.kw-core{width:38px;height:38px;border-radius:12px;font-size:23px}.kw-orbit.o2{inset:9px}.kw-title{font-size:14px}.kw-detail{font-size:12px}}

/* KYNOVARA_K_PUBLIC_WAIT_V1 — preserve chat layout and readable motion status. */
.k-chat-message.is-pending>div{width:100%;max-width:100%;padding:0;border:0;background:none;opacity:1;font-style:normal;white-space:normal}
.k-chat-card .k-wait{max-width:100%;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:14px 12px;border-radius:16px;flex-shrink:0}
.k-chat-card .kw-scene{width:72px;height:72px}.k-chat-card .kw-core{width:38px;height:38px;border-radius:12px;font-size:23px}
.k-chat-card .kw-title{font-size:14px!important;line-height:1.5!important;color:#e7f8ff!important;margin:0!important}
.k-chat-card .kw-detail{font-size:12px!important;line-height:1.6!important;color:#a4c4d9!important;margin:5px 0 0!important}
.k-chat-card .kw-eyebrow{font-size:10px!important;line-height:1.4!important;color:#8ac0d9!important;margin:0 0 4px!important}
.k-chat-card .kw-motion{min-height:32px!important;margin:6px 0 0!important;padding:3px 0!important;white-space:normal}
.k-chat-card:not(.open) .k-wait *{animation-play-state:paused!important}
.k-chat-compose button:disabled,.k-chat-suggestions button:disabled{cursor:wait!important;opacity:.5}
.k-chat-status{font-size:10px;line-height:1.5;color:#9db8ca;min-height:30px;letter-spacing:.035em}
@media(max-width:360px){.k-chat-card .k-wait{grid-template-columns:60px minmax(0,1fr);gap:8px;padding:12px 10px}.k-chat-card .kw-scene{width:58px;height:66px}.k-chat-card .kw-orbit.o2{inset:10px}.k-chat-card .kw-title{font-size:13px!important}}


/* K_CHAT_READABILITY_V13 — accessible body/control typography across desktop/mobile. */
.k-chat-identity b{font-size:15px!important;line-height:1.4}
.k-chat-identity small{font-size:10px!important;line-height:1.4;letter-spacing:.045em}
.k-chat-message>div{font-size:14px!important;line-height:1.65!important}
.k-chat-suggestions button{min-height:40px!important;padding:7px 13px!important;font-size:11px!important;line-height:1.45!important;font-weight:650!important}
.k-chat-status{font-size:12px!important;line-height:1.45!important;letter-spacing:.025em!important}
.k-chat-compose input{font-size:14px!important;line-height:1.45!important}
.k-chat-suggestions button:focus-visible,.k-chat-close:focus-visible,.k-chat-compose button:focus-visible,.k-chat-compose input:focus-visible{outline:2px solid #91e5ff!important;outline-offset:2px!important}
.k-chat-message.is-k>div{color:#dfebf2!important}
@media(max-width:430px){.k-chat-suggestions button{font-size:11px!important}.k-chat-message>div{max-width:92%;font-size:14px!important}.k-chat-status{padding-top:8px!important;padding-bottom:10px!important}}
