/* AI_LAUNCHER_V28_16 — AI 보안 도우미 버튼 '눈 봇'
   - 테마 주색의 둥근 사각형에 하얀 두 눈만 있는 미니멀 캐릭터 (다른 서비스 아이콘을 흉내 내지 않음)
   - 평소: 가끔 눈을 깜박이고 두리번거림 / 마우스 올림: 웃는 눈 + 'AI 보안 도우미 · Ctrl K' 펼침
   - 답변 생성 중: 눈이 통통 튀는 점으로 바뀜 / 창이 열리면 닫기(×)
   - 움직임 줄이기 설정이면 애니메이션 없음 */
@property --ai-a{syntax:'<angle>';inherits:true;initial-value:0deg}
html body #aiFloatLauncher.ai-x{
  --p:var(--theme-primary,#0969da); --pa:var(--theme-accent,#8250df); --ps:var(--theme-success,#1a7f37);
  --surf:var(--theme-surface,#fff); --ink:var(--theme-heading,#1f2328); --sub:var(--theme-muted,#59636e); --line:var(--theme-line,#d0d7de);
  position:fixed!important;right:24px!important;bottom:24px!important;left:auto;top:auto;z-index:560!important;
  width:auto!important;height:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;
  background:none!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;
  overflow:visible!important;transform:none!important;opacity:1!important;visibility:visible!important;cursor:pointer;
  font:inherit;-webkit-tap-highlight-color:transparent;touch-action:none;isolation:isolate;
}
html body #aiFloatLauncher.ai-x::before,html body #aiFloatLauncher.ai-x::after{content:none!important;display:none!important}
html body #aiFloatLauncher.ai-x .x-shell{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;
  transition:padding .35s cubic-bezier(.2,.8,.2,1),background-color .3s ease,box-shadow .3s ease,border-color .3s ease,transform .3s cubic-bezier(.2,.8,.2,1),border-radius .35s ease}
html body #aiFloatLauncher.ai-x .x-label,html body #aiFloatLauncher.ai-x .x-kbd{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;margin-left:0;
  transition:max-width .35s cubic-bezier(.2,.8,.2,1),margin .35s cubic-bezier(.2,.8,.2,1),opacity .2s ease,padding .35s ease}
html body #aiFloatLauncher.ai-x .x-label{font-size:14px;font-weight:650;letter-spacing:-.01em;color:var(--ink)!important;text-shadow:none}
html body #aiFloatLauncher.ai-x .x-kbd{height:22px;border-radius:6px;font:600 11px/22px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--sub)!important;
  background:color-mix(in srgb,var(--ink) 7%,transparent);padding:0}
html body #aiFloatLauncher.ai-x:is(:hover,:focus-visible):not(.is-dragging):not([aria-expanded="true"]) .x-label{max-width:150px;opacity:1;margin-left:12px}
html body #aiFloatLauncher.ai-x:is(:hover,:focus-visible):not(.is-dragging):not([aria-expanded="true"]) .x-kbd{max-width:70px;opacity:1;margin-left:10px;padding:0 7px}
html body #aiFloatLauncher.ai-x .x-close{position:absolute;inset:0;margin:auto;width:22px;height:22px;opacity:0;transform:rotate(-90deg) scale(.5);transition:opacity .25s ease,transform .35s cubic-bezier(.2,.8,.2,1);pointer-events:none}
html body #aiFloatLauncher.ai-x[aria-expanded="true"] .x-close{opacity:1;transform:none}
html body #aiFloatLauncher.ai-x[aria-expanded="true"] .x-face{opacity:0;transform:scale(.6)}
html body #aiFloatLauncher.ai-x .x-face{transition:opacity .25s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
html body #aiFloatLauncher.ai-x:focus-visible{outline:none!important}
html body #aiFloatLauncher.ai-x:focus-visible .x-shell{outline:3px solid color-mix(in srgb,var(--p) 45%,transparent);outline-offset:3px}

/* ===== F. 눈 봇 ===== */
html body #aiFloatLauncher.ai-x--eyes .x-shell{height:58px;min-width:58px;padding:0;justify-content:flex-start;border-radius:20px;
  background:linear-gradient(160deg,color-mix(in srgb,var(--p) 88%,#ffffff),var(--p) 55%,color-mix(in srgb,var(--p) 80%,#000000));
  box-shadow:0 14px 30px -10px color-mix(in srgb,var(--p) 70%,transparent),inset 0 1px 0 rgba(255,255,255,.35),inset 0 -3px 8px rgba(0,0,0,.15)}
html body #aiFloatLauncher.ai-x--eyes:is(:hover,:focus-visible):not([aria-expanded="true"]) .x-shell{padding-right:16px;transform:translateY(-2px)}
html body #aiFloatLauncher.ai-x--eyes .x-face{position:relative;flex:0 0 58px;width:58px;height:58px;display:flex;align-items:center;justify-content:center;gap:9px}
html body #aiFloatLauncher.ai-x--eyes .x-eye{width:8px;height:14px;border-radius:5px;background:#fff;box-shadow:0 0 6px rgba(255,255,255,.55);
  animation:x-blinkeye 5s ease-in-out infinite,x-look 9s ease-in-out infinite;transform-origin:center}
@keyframes x-blinkeye{0%,46%,52%,100%{height:14px}49%{height:2px}}
@keyframes x-look{0%,30%,100%{translate:0 0}38%,48%{translate:-2.5px 0}62%,72%{translate:2.5px -1px}}
html body #aiFloatLauncher.ai-x--eyes:is(:hover,:focus-visible) .x-eye{height:9px;border-radius:5px 5px 2px 2px;animation:none}
html body #aiFloatLauncher.ai-x--eyes .x-label{color:#fff!important}
html body #aiFloatLauncher.ai-x--eyes .x-kbd{color:rgba(255,255,255,.88)!important;background:rgba(255,255,255,.18)}
html body #aiFloatLauncher.ai-x--eyes .x-close{color:#fff}
html body #aiFloatLauncher.ai-x--eyes.is-thinking .x-eye{width:7px;height:7px;border-radius:50%;animation:x-dots 1s ease-in-out infinite}
html body #aiFloatLauncher.ai-x--eyes.is-thinking .x-eye:nth-child(2){animation-delay:.15s}
@keyframes x-dots{0%,100%{translate:0 0}50%{translate:0 -4px}}


/* 말풍선 (AI_LAUNCHER_V28_17): 가끔 10자 안팎의 짧은 말 */
html body #aiFloatLauncher.ai-x .x-speech{position:absolute;right:0;bottom:calc(100% + 12px);z-index:3;display:block;
  padding:8px 13px;border-radius:12px;white-space:nowrap;pointer-events:none;
  background:var(--surf);color:var(--ink)!important;border:1px solid var(--line);
  font-size:12.5px!important;font-weight:650;line-height:1.3;letter-spacing:-.01em;text-shadow:none;
  box-shadow:0 12px 26px -12px rgba(15,23,42,.35),0 2px 6px rgba(15,23,42,.08);
  opacity:0;visibility:hidden;transform:translateY(6px) scale(.94);transform-origin:bottom right;
  transition:opacity .2s ease,transform .32s cubic-bezier(.2,.8,.2,1),visibility 0s linear .32s}
html body #aiFloatLauncher.ai-x .x-speech::after{content:"";position:absolute;right:22px;bottom:-6px;width:10px;height:10px;
  background:var(--surf);border-right:1px solid var(--line);border-bottom:1px solid var(--line);transform:rotate(45deg);border-bottom-right-radius:2px}
html body #aiFloatLauncher.ai-x .x-speech.is-visible{opacity:1;visibility:visible;transform:none;transition:opacity .2s ease,transform .32s cubic-bezier(.2,.8,.2,1),visibility 0s}
html body #aiFloatLauncher.ai-x.speech-below .x-speech{bottom:auto;top:calc(100% + 12px);transform-origin:top right}
html body #aiFloatLauncher.ai-x.speech-below .x-speech::after{bottom:auto;top:-6px;transform:rotate(225deg)}
html body #aiFloatLauncher.ai-x.speech-left .x-speech{right:auto;left:0;transform-origin:bottom left}
html body #aiFloatLauncher.ai-x.speech-left .x-speech::after{right:auto;left:22px}
html body #aiFloatLauncher.ai-x[aria-expanded="true"] .x-speech{display:none}
html[data-theme-mode="dark"] body #aiFloatLauncher.ai-x .x-speech{box-shadow:0 12px 26px -12px rgba(0,0,0,.7),0 2px 6px rgba(0,0,0,.3)}
/* 말하는 동안 웃는 눈 */
html body #aiFloatLauncher.ai-x--eyes.is-talking .x-eye{height:9px;border-radius:5px 5px 2px 2px;animation:none}

/* 끌어서 옮기는 중 */
html body #aiFloatLauncher.ai-x.is-dragging{cursor:grabbing}
html body #aiFloatLauncher.ai-x.is-dragging .x-shell{transform:scale(1.05)}
/* 작은 화면 */
@media(max-width:760px){
  html body #aiFloatLauncher.ai-x{right:16px!important;bottom:16px!important}
  html body #aiFloatLauncher.ai-x .x-kbd{display:none}
}
@media(prefers-reduced-motion:reduce){html body #aiFloatLauncher.ai-x *{animation:none!important;transition:none!important}}
