@charset "UTF-8";
/* ============================================================================
   config.scss  —  똑똑수학 공통 디자인 토큰 (Single Source of Truth)
   ----------------------------------------------------------------------------
   · 색상 / 버튼 치수 / 폰트 / breakpoint 등 "여러 파일에서 공통으로 쓰이는 값"을
     이 파일 한 곳에서만 정의합니다.
   · 각 scss 파일 최상단에서  @import 'config';  로 불러와 사용합니다.
   ※ 색상 토큰 접두사는 $c- 로 통일 (각 파일의 로컬 변수명과 충돌 방지)
   ============================================================================ */
/* ── 브랜드 · 퍼플 (2025 기존) ──────────────────────────────────────────── */
/* ── 브랜드 · 인디고 (버튼/포인트) ──────────────────────────────────────── */
/* ── 브랜드 · 바이올렛 (2026 리뉴얼 메인) ───────────────────────────────── */
/* ── 브랜드 · 보라 틴트(보조) ───────────────────────────────────────────── */
/* ── 액센트 ────────────────────────────────────────────────────────────── */
/* ── gray ────────────────────────────────────────────────────────────── */
/* ── 버튼 치수 · 폰트 토큰 ─────────────────────────────────────────────── */
/* ── 공통 믹스인 ───────────────────────────────────────────────────────── */
/* ── 반응형 breakpoint (신규 작업용 표준값) ────────────────────────────────
   ※ 기존 미디어쿼리는 값이 제각각(1200/1440/770/768/500/640…)이라 자동 치환하지
      않았습니다. 앞으로 새로 작성하는 반응형은 아래 믹스인 사용을 권장합니다.
      예)  @include respond-to($bp-sm) { ... }   또는   @include respond-to(600px) { ... }
   ------------------------------------------------------------------------- */
/* =================================================================
   똑똑 수학탐험대 챗봇 — Cosmos Glass Edition (2026.05)
   ▸ index-guest.jsp 의 3D 입체 캐릭터 + 파스텔 라벤더/핑크 톤
   ▸ 헤더 바 제거, 떠다니는 글래스 버튼
   ▸ Glassmorphism + 별 반짝이 애니메이션 + 그라데이션 액센트
   ================================================================= */
/* 디자인 토큰 + 컨테이너 */
.device {
  --brand: $c-violet;
  --brand-2: $c-purple-bright;
  --pink: $c-pink;
  --gold: $c-amber;
  --text: $c-purple-text-dark;
  --muted: $c-purple-gray;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  width: 100%;
  height: 100%;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  color: var(--text);
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 85, 247, 0.25) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 110% 100%, rgba(236, 72, 153, 0.22) 0%, transparent 60%), radial-gradient(ellipse 50% 30% at -10% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 60%), -webkit-gradient(linear, left top, left bottom, from(#f5efff), color-stop(60%, #fef0f9), to(#f0e7ff));
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 85, 247, 0.25) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 110% 100%, rgba(236, 72, 153, 0.22) 0%, transparent 60%), radial-gradient(ellipse 50% 30% at -10% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 60%), linear-gradient(180deg, #f5efff 0%, #fef0f9 60%, #f0e7ff 100%);
  /* 별 반짝이 배경 */
}
.device::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 12% 10%, rgba(124, 58, 237, 0.55), transparent 50%), radial-gradient(1.5px 1.5px at 78% 8%, rgba(236, 72, 153, 0.5), transparent 50%), radial-gradient(2.5px 2.5px at 40% 22%, rgba(245, 158, 11, 0.45), transparent 50%), radial-gradient(1.5px 1.5px at 90% 32%, rgba(124, 58, 237, 0.45), transparent 50%), radial-gradient(2px 2px at 22% 58%, rgba(236, 72, 153, 0.4), transparent 50%), radial-gradient(1.5px 1.5px at 88% 75%, rgba(124, 58, 237, 0.5), transparent 50%), radial-gradient(2px 2px at 8% 88%, rgba(245, 158, 11, 0.4), transparent 50%), radial-gradient(1.5px 1.5px at 55% 42%, rgba(236, 72, 153, 0.35), transparent 50%), radial-gradient(2px 2px at 70% 60%, rgba(124, 58, 237, 0.35), transparent 50%);
  -webkit-animation: starsTwinkle 4s ease-in-out infinite alternate;
          animation: starsTwinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.device {
  /* 우상단 떠다니는 광원 블롭 */
}
.device::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
  -webkit-filter: blur(20px);
          filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  -webkit-animation: blobDrift 12s ease-in-out infinite alternate;
          animation: blobDrift 12s ease-in-out infinite alternate;
}

@-webkit-keyframes starsTwinkle {
  0% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0.45;
    -webkit-transform: scale(1.04);
            transform: scale(1.04);
  }
}

@keyframes starsTwinkle {
  0% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0.45;
    -webkit-transform: scale(1.04);
            transform: scale(1.04);
  }
}
@-webkit-keyframes blobDrift {
  0% {
    -webkit-transform: translate(0, 0) scale(1);
            transform: translate(0, 0) scale(1);
  }
  100% {
    -webkit-transform: translate(-30px, 30px) scale(1.15);
            transform: translate(-30px, 30px) scale(1.15);
  }
}
@keyframes blobDrift {
  0% {
    -webkit-transform: translate(0, 0) scale(1);
            transform: translate(0, 0) scale(1);
  }
  100% {
    -webkit-transform: translate(-30px, 30px) scale(1.15);
            transform: translate(-30px, 30px) scale(1.15);
  }
}
/* 플로팅 헤더 (바 없음, 떠다니는 글래스 버튼만) */
.topbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  height: auto;
  pointer-events: none;
}
.topbar > button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(180%);
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  -webkit-box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
          box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  -webkit-transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.topbar > button:hover {
  background: #fff;
  -webkit-transform: translateY(-2px) scale(1.06);
          transform: translateY(-2px) scale(1.06);
  -webkit-box-shadow: 0 10px 26px rgba(124, 58, 237, 0.28), inset 0 0 0 1px rgb(255, 255, 255);
          box-shadow: 0 10px 26px rgba(124, 58, 237, 0.28), inset 0 0 0 1px rgb(255, 255, 255);
}
.topbar > button:active {
  -webkit-transform: translateY(0) scale(0.98);
          transform: translateY(0) scale(0.98);
}
.topbar > button i {
  display: block;
  width: 22px;
  height: 22px;
}
.topbar {
  /* 아이콘을 보라색 톤으로 변환 */
}
.topbar .icon-home i {
  background: url("/resources/toctocmath/images/chatbot/ico_home-82e97feeaf7359a754cfe283a62916aa.png") no-repeat center/contain;
  -webkit-filter: brightness(0) saturate(100%) invert(22%) sepia(86%) saturate(3215%) hue-rotate(258deg) brightness(91%) contrast(96%);
          filter: brightness(0) saturate(100%) invert(22%) sepia(86%) saturate(3215%) hue-rotate(258deg) brightness(91%) contrast(96%);
}
.topbar .icon-close i {
  background: url("/resources/toctocmath/images/chatbot/ico_close-897d34e9d666d1aee280233ab4d3bad6.png") no-repeat center/contain;
  -webkit-filter: brightness(0) saturate(100%) invert(22%) sepia(86%) saturate(3215%) hue-rotate(258deg) brightness(91%) contrast(96%);
          filter: brightness(0) saturate(100%) invert(22%) sepia(86%) saturate(3215%) hue-rotate(258deg) brightness(91%) contrast(96%);
}
.topbar {
  /* 타이틀 - 가운데 떠다니는 글래스 pill */
}
.topbar .title {
  pointer-events: auto;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(180%);
  border-radius: var(--radius-pill);
  background-clip: padding-box;
  color: var(--brand);
  -webkit-box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
          box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  position: relative;
}
.topbar .title::before {
  content: "✦";
  margin-right: 6px;
  color: var(--pink);
  font-size: 14px;
}

/* 콘텐츠 영역 */ /*20260629 클래스 겹침으로 !important 추가*/
.content {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 1;
  padding: 92px 18px 18px !important;
  overflow-y: auto;
  background: transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 56px, #000 84px, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0, transparent 56px, #000 84px, #000 100%);
}
.content::-webkit-scrollbar {
  width: 6px;
}
.content::-webkit-scrollbar-track {
  background: transparent;
}
.content::-webkit-scrollbar-thumb {
  background: -webkit-gradient(linear, left top, left bottom, from(#a855f7), to(#ec4899));
  background: linear-gradient(180deg, #a855f7, #ec4899);
  border-radius: 999px;
}

/* 메시지 등장 애니메이션 */
@-webkit-keyframes msgFloatIn {
  0% {
    opacity: 0;
    -webkit-transform: translateY(16px) scale(0.96);
            transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
            transform: translateY(0) scale(1);
  }
}
@keyframes msgFloatIn {
  0% {
    opacity: 0;
    -webkit-transform: translateY(16px) scale(0.96);
            transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
            transform: translateY(0) scale(1);
  }
}
.left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 14px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin: 16px 0;
  -webkit-animation: msgFloatIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
          animation: msgFloatIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  margin: 20px 0;
  -webkit-animation: msgFloatIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
          animation: msgFloatIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 봇 아바타 — 숨쉬는 글로우 + 그라데이션 ring + 온라인 점 */
.avatar {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  position: relative;
  margin: 2px 0 0 0;
  -webkit-animation: avatarBreathe 3.5s ease-in-out infinite;
          animation: avatarBreathe 3.5s ease-in-out infinite;
}
.avatar::before {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: #ffffff url("/resources/toctocmath/images/main-guest/icon-bot-peek-954b54750988a5d4e410997b0a96b58e.png") no-repeat center/76% auto;
}
.avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2.5px solid #fff;
  z-index: 1;
  -webkit-animation: onlinePulse 2s ease-in-out infinite;
          animation: onlinePulse 2s ease-in-out infinite;
}

@-webkit-keyframes avatarBreathe {
  0%, 100% {
    -webkit-box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25), 0 0 0 0 rgba(124, 58, 237, 0.4);
            box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25), 0 0 0 0 rgba(124, 58, 237, 0.4);
  }
  50% {
    -webkit-box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35), 0 0 0 8px rgba(124, 58, 237, 0);
            box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35), 0 0 0 8px rgba(124, 58, 237, 0);
  }
}

@keyframes avatarBreathe {
  0%, 100% {
    -webkit-box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25), 0 0 0 0 rgba(124, 58, 237, 0.4);
            box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25), 0 0 0 0 rgba(124, 58, 237, 0.4);
  }
  50% {
    -webkit-box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35), 0 0 0 8px rgba(124, 58, 237, 0);
            box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35), 0 0 0 8px rgba(124, 58, 237, 0);
  }
}
@-webkit-keyframes onlinePulse {
  0%, 100% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  50% {
    -webkit-box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
            box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}
@keyframes onlinePulse {
  0%, 100% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  50% {
    -webkit-box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
            box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}
/* 봇 말풍선 — 글래스 + 좌측 그라데이션 액센트 바 */
.bubble-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  width: calc(100% - 64px);
}

.bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(160%);
  border-radius: 8px var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 16px 18px 16px 22px;
  -webkit-box-shadow: 0 10px 28px rgba(124, 58, 237, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
          box-shadow: 0 10px 28px rgba(124, 58, 237, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  max-width: 100%;
  min-width: 50%;
  color: var(--text);
  /* 좌측 그라데이션 액센트 바 */
}
.bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 3px;
  border-radius: 999px;
  background: -webkit-gradient(linear, left top, left bottom, from(#7c3aed), to(#ec4899));
  background: linear-gradient(180deg, #7c3aed 0%, #ec4899 100%);
  opacity: 0.85;
}
.bubble:after {
  display: none;
}
.bubble p {
  margin: 4px 0;
  white-space: pre-wrap;
  color: #2d2247;
}

/* 메뉴 패널 (선택지 카드) */
.panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: 8px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-shadow: 0 4px 14px rgba(124, 58, 237, 0.06);
          box-shadow: 0 4px 14px rgba(124, 58, 237, 0.06);
}
.panel.row {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.panel.row .menu-btn {
  width: calc(50% - 4px);
}
.panel.row .menu-btn:only-child {
  width: 100%;
}

/* 공통 Focus 스타일 */
.menu-btn:focus, .send:focus, .input:focus {
  -webkit-box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
          box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.menu-btn {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #4a3d8a;
  text-align: center;
  cursor: pointer;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-box-shadow: 0 4px 14px rgba(124, 58, 237, 0.1), inset 0 0 0 1.5px rgba(124, 58, 237, 0.15);
          box-shadow: 0 4px 14px rgba(124, 58, 237, 0.1), inset 0 0 0 1.5px rgba(124, 58, 237, 0.15);
  -webkit-transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.menu-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
  -webkit-box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
          box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.menu-btn:active {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

/* 유저 메시지 */
.quick {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 8px var(--radius-lg);
  padding: 14px 18px;
  font-weight: 500;
  -webkit-box-shadow: 0 10px 26px rgba(236, 72, 153, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
          box-shadow: 0 10px 26px rgba(236, 72, 153, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  max-width: 78%;
}

/* 하단 입력 영역 (composer) — 글래스 플로팅 */
.composer {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  padding: 14px 18px 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}

/* 액션 칩들 — 가로 스크롤 */
.circle-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  background: transparent !important;
  min-height: auto !important;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}
.circle-actions::-webkit-scrollbar {
  display: none;
}

.circle-btn {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  height: 38px;
  min-width: 64px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  white-space: nowrap;
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  background: #ffffff;
  color: #5b4fa8;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  -webkit-box-shadow: 0 2px 4px rgba(124, 58, 237, 0.08);
          box-shadow: 0 2px 4px rgba(124, 58, 237, 0.08);
  -webkit-transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.circle-btn:hover {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 2px 6px rgba(124, 58, 237, 0.28);
          box-shadow: 0 2px 6px rgba(124, 58, 237, 0.28);
}
.circle-btn:hover > img {
  -webkit-filter: brightness(0) invert(1);
          filter: brightness(0) invert(1);
}
.circle-btn > img {
  height: 15px;
  -webkit-transition: -webkit-filter 0.2s ease;
  transition: -webkit-filter 0.2s ease;
  transition: filter 0.2s ease;
  transition: filter 0.2s ease, -webkit-filter 0.2s ease;
}

/* 입력창 */
.input {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  width: 100%;
  min-height: 52px;
  max-height: 120px;
  background: #ffffff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 15px 60px 15px 22px;
  font-size: 14px;
  color: var(--text);
  resize: none;
  -webkit-box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1), inset 0 0 0 1.5px rgba(124, 58, 237, 0.12);
          box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1), inset 0 0 0 1.5px rgba(124, 58, 237, 0.12);
  -webkit-transition: -webkit-box-shadow 0.25s ease;
  transition: -webkit-box-shadow 0.25s ease;
  transition: box-shadow 0.25s ease;
  transition: box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.input::-webkit-input-placeholder {
  color: #9990bd;
}
.input::-moz-placeholder {
  color: #9990bd;
}
.input:-ms-input-placeholder {
  color: #9990bd;
}
.input::-ms-input-placeholder {
  color: #9990bd;
}
.input::placeholder {
  color: #9990bd;
}
.input:focus {
  -webkit-box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18), inset 0 0 0 2px #a855f7;
          box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18), inset 0 0 0 2px #a855f7;
}

/* 글로우 전송 오브 */
.send {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%), linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
          box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-transition: -webkit-transform 0.15s ease, -webkit-box-shadow 0.25s ease, -webkit-filter 0.25s ease;
  transition: -webkit-transform 0.15s ease, -webkit-box-shadow 0.25s ease, -webkit-filter 0.25s ease;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.25s ease;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.25s ease, -webkit-transform 0.15s ease, -webkit-box-shadow 0.25s ease, -webkit-filter 0.25s ease;
  -webkit-animation: sendOrbPulse 2.5s ease-in-out infinite;
          animation: sendOrbPulse 2.5s ease-in-out infinite;
}
.send:hover {
  -webkit-transform: translateY(-2px) scale(1.08);
          transform: translateY(-2px) scale(1.08);
  -webkit-filter: brightness(1.06);
          filter: brightness(1.06);
}
.send:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
.send i {
  display: block;
  width: 20px;
  height: 20px;
  background: url("/resources/toctocmath/images/chatbot/ico_send-8002c7d794ecbd5e4aeee63e1b52a44e.png") no-repeat center/100% auto;
  -webkit-filter: brightness(0) invert(1);
          filter: brightness(0) invert(1);
}

@-webkit-keyframes sendOrbPulse {
  0%, 100% {
    -webkit-box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
            box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    -webkit-box-shadow: 0 12px 30px rgba(236, 72, 153, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
            box-shadow: 0 12px 30px rgba(236, 72, 153, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

@keyframes sendOrbPulse {
  0%, 100% {
    -webkit-box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
            box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    -webkit-box-shadow: 0 12px 30px rgba(236, 72, 153, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
            box-shadow: 0 12px 30px rgba(236, 72, 153, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}
/* black-button */
.black-button {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: #fff;
}
.black-button:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--pink) 100%);
  color: #fff;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
          box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

/* 피드백 모달 */
.modal {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 40, 0.55);
  backdrop-filter: blur(6px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 1000;
  -webkit-animation: msgFloatIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
          animation: msgFloatIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: rgba(255, 255, 255, 0.98);
  width: 90%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-shadow: 0 24px 60px rgba(124, 58, 237, 0.35), 0 8px 20px rgba(0, 0, 0, 0.1);
          box-shadow: 0 24px 60px rgba(124, 58, 237, 0.35), 0 8px 20px rgba(0, 0, 0, 0.1);
}
.modal-header {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  padding: 16px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.modal-title {
  font-weight: 700;
}
.modal-close {
  width: 24px;
  height: 24px;
  background: url("/resources/toctocmath/images/chatbot/ico_close-897d34e9d666d1aee280233ab4d3bad6.png") no-repeat center/20px auto;
  -webkit-filter: brightness(0) invert(1);
          filter: brightness(0) invert(1);
  cursor: pointer;
}
.modal-close:hover {
  opacity: 0.8;
}

.rating-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  padding: 16px 20px 8px;
}

.rating-btn {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 10px 0;
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-pill);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #4a3d8a;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.rating-btn:hover {
  border-color: var(--brand-2);
  color: var(--brand);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.rating-btn.selected {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  border-color: transparent;
  -webkit-box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
          box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

#feedbackText {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin: 12px 20px 12px;
  padding: 14px 16px;
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  border-radius: 14px;
  resize: none;
  min-height: 120px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  -webkit-transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}
#feedbackText:focus {
  border-color: var(--brand-2);
  -webkit-box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
          box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.submit-btn {
  margin: 0 20px 20px;
  padding: 14px 0;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 700;
  -webkit-box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
          box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
  -webkit-transition: -webkit-transform 0.15s ease, -webkit-box-shadow 0.25s ease, -webkit-filter 0.2s ease;
  transition: -webkit-transform 0.15s ease, -webkit-box-shadow 0.25s ease, -webkit-filter 0.2s ease;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease, -webkit-transform 0.15s ease, -webkit-box-shadow 0.25s ease, -webkit-filter 0.2s ease;
}
.submit-btn:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-filter: brightness(1.06);
          filter: brightness(1.06);
  -webkit-box-shadow: 0 14px 28px rgba(124, 58, 237, 0.4);
          box-shadow: 0 14px 28px rgba(124, 58, 237, 0.4);
}

/* 접근성 */
@media (prefers-reduced-motion: reduce) {
  .left, .right, .modal {
    -webkit-animation: none;
            animation: none;
  }
  .device::before, .device::after, .avatar, .send {
    -webkit-animation: none;
            animation: none;
  }
  .teacher-action--imgcard {
    -webkit-animation: none;
            animation: none;
  }
}
/* 반응형 */
@media (max-width: 480px) {
  .topbar {
    top: 14px;
    left: 14px;
    right: 14px;
  }
  .topbar > button {
    width: 40px;
    height: 40px;
  }
  .topbar .title {
    padding: 9px 16px;
    font-size: 14px;
  }
  .content {
    padding: 80px 14px 14px !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 48px, #000 72px, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0, transparent 48px, #000 72px, #000 100%);
  } /*20260629 클래스 겹침으로 !important 추가*/
  .composer {
    padding: 12px 14px 14px;
  }
  .circle-btn {
    font-size: 14px;
    padding: 0 14px;
    height: 34px;
  }
  .circle-btn > img {
    height: 13px;
  }
  .bubble, .bubble p {
    font-size: 14px;
  }
  .input {
    padding: 13px 54px 13px 18px;
    min-height: 48px;
  }
  .send {
    right: 18px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
  .avatar {
    width: 44px;
    height: 44px;
  }
}
/* ==========================================================================
   우측 하단 고정형 AI 말동무 챗봇 레이어
   ========================================================================== */
.ai-bot {
  position: fixed;
  bottom: 36px;
  right: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 10px;
  z-index: 100;
}
.ai-bot .bot-emoji.is-open {
  opacity: 0;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
}

.bot-bubble {
  background: white;
  padding: 18px 22px;
  border-radius: 22px 22px 4px 22px;
  -webkit-box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
          box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  color: #374151;
  font-weight: 500;
  width: 260px;
  min-height: 70px;
  position: relative;
  -webkit-animation: bubbleFloat 5s ease-in-out infinite;
          animation: bubbleFloat 5s ease-in-out infinite;
}
.bot-bubble::after {
  content: "";
  position: absolute;
  right: 125px;
  bottom: -12px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top-color: white;
  -webkit-filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
          filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}
.bot-bubble .pink {
  color: #ec4899;
  font-weight: 700;
}
.bot-bubble__text {
  display: block;
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transition: opacity 0.25s ease, transform 0.25s ease, -webkit-transform 0.25s ease;
}
.bot-bubble__text.is-out {
  opacity: 0;
  -webkit-transform: translateY(-8px);
          transform: translateY(-8px);
}
.bot-bubble__text.is-in {
  -webkit-animation: bubbleTextIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
          animation: bubbleTextIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bot-bubble__typing {
  display: none;
  gap: 6px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 24px;
}
.bot-bubble__typing.is-active {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
}
.bot-bubble__typing span {
  width: 8px;
  height: 8px;
  background: #c4b5fd;
  border-radius: 50%;
  -webkit-animation: typingDot 1s ease-in-out infinite;
          animation: typingDot 1s ease-in-out infinite;
}
.bot-bubble__typing span:nth-child(2) {
  -webkit-animation-delay: 0.15s;
          animation-delay: 0.15s;
}
.bot-bubble__typing span:nth-child(3) {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}
@media (max-width: 768px) {
  .bot-bubble {
    display: none;
  }
}

.bot-emoji {
  width: 270px;
  height: 270px;
  cursor: pointer;
  -webkit-animation: bobble 2.4s ease-in-out infinite;
          animation: bobble 2.4s ease-in-out infinite;
  -webkit-filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.32));
          filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.32));
  -ms-flex-negative: 0;
      flex-shrink: 0;
  position: relative;
}
.bot-emoji img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  pointer-events: none;
}
.bot-emoji.is-talking {
  -webkit-animation: botTalk 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
          animation: botTalk 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bot-emoji:hover {
  -webkit-animation: botHello 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
          animation: botHello 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bot-emoji.is-popping {
  -webkit-animation: botPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
          animation: botPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (max-width: 640px) {
  .bot-emoji {
    width: 76px;
    height: 76px;
  }
}

/* ==========================================================================
   챗봇 활성화 레이어 패널 (.chatbot-layer)
   ========================================================================== */
.chatbot-layer {
  position: fixed;
  right: 50px;
  bottom: 60px;
  z-index: 1000;
  width: min(640px, 100vw - 80px);
  height: min(940px, 100vh - 180px);
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(40px) scale(0.6);
          transform: translateY(40px) scale(0.6);
  -webkit-transform-origin: bottom right;
          transform-origin: bottom right;
  pointer-events: none;
  -webkit-transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.55s, -webkit-transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.55s, -webkit-transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.55s;
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.55s, -webkit-transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chatbot-layer.is-open {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0) scale(1);
          transform: translateY(0) scale(1);
  pointer-events: auto;
  -webkit-transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0s, -webkit-transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0s, -webkit-transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0s;
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0s, -webkit-transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chatbot-layer.is-open .chat-mascot {
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
          transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  -webkit-transition-delay: 0.35s, 0.35s;
          transition-delay: 0.35s, 0.35s;
  -webkit-animation: mascotBob 3.6s ease-in-out infinite 1.4s;
          animation: mascotBob 3.6s ease-in-out infinite 1.4s;
}
.chatbot-layer.is-open .chat-mascot img {
  -webkit-animation: mascotWiggle 1.4s ease 0.6s 1;
          animation: mascotWiggle 1.4s ease 0.6s 1;
}
.chatbot-layer-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 28px;
  -webkit-box-shadow: 0 22px 60px rgba(123, 97, 255, 0.28), 0 6px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
          box-shadow: 0 22px 60px rgba(123, 97, 255, 0.28), 0 6px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: visible;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.chatbot-layer-frame {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
}
.chatbot-layer .device {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 0;
}
.chatbot-layer .device .content {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
@media (max-width: 1100px) {
  .chatbot-layer {
    right: 16px;
    left: 16px;
    bottom: 60px;
    width: auto;
    height: min(820px, 100vh - 170px);
    min-height: 0;
  }
}
@media (max-width: 640px) {
  .chatbot-layer {
    right: 12px;
    left: 12px;
    bottom: 16px;
    height: calc(100vh - 110px);
    min-height: 0;
    max-height: none;
  }
}
.chatbot-layer { /*20260703 모바일때 상단 잘림현상*/ }

.chat-mascot {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 220px;
  height: 145px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  -webkit-transform: translateX(-50%) translateY(620px) scale(0.35) rotate(20deg);
          transform: translateX(-50%) translateY(620px) scale(0.35) rotate(20deg);
  -webkit-transition: opacity 0.45s ease, -webkit-transform 0.75s cubic-bezier(0.22, 1.4, 0.35, 1);
  transition: opacity 0.45s ease, -webkit-transform 0.75s cubic-bezier(0.22, 1.4, 0.35, 1);
  transition: opacity 0.45s ease, transform 0.75s cubic-bezier(0.22, 1.4, 0.35, 1);
  transition: opacity 0.45s ease, transform 0.75s cubic-bezier(0.22, 1.4, 0.35, 1), -webkit-transform 0.75s cubic-bezier(0.22, 1.4, 0.35, 1);
  -webkit-filter: drop-shadow(0 14px 24px rgba(124, 58, 237, 0.35));
          filter: drop-shadow(0 14px 24px rgba(124, 58, 237, 0.35));
}
.chat-mascot img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: bottom;
     object-position: bottom;
  -webkit-transform-origin: 50% 100%;
          transform-origin: 50% 100%;
}
@media (max-width: 1100px) {
  .chat-mascot {
    width: 180px;
    height: 118px;
    top: -93px;
  }
}
@media (max-width: 640px) {
  .chat-mascot {
    width: 150px;
    height: 98px;
    top: -79px;
  }
}

.bot-sparkle {
  position: fixed;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff 0, #ffd84d 35%, #ff8ad1 70%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1001;
  opacity: 0;
  -webkit-box-shadow: 0 0 12px 2px rgba(255, 216, 77, 0.7);
          box-shadow: 0 0 12px 2px rgba(255, 216, 77, 0.7);
  -webkit-animation: sparkleBurst 0.9s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
          animation: sparkleBurst 0.9s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}

/* ==========================================================================
   @keyframes
   ========================================================================== */
@-webkit-keyframes accentPop {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  20% {
    -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
  }
  40% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes accentPop {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  20% {
    -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
  }
  40% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes cardBob {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
  }
}
@keyframes cardBob {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
  }
}
@-webkit-keyframes ctaPulse {
  0%, 100% {
    -webkit-box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
            box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
  }
  50% {
    -webkit-box-shadow: 0 10px 28px rgba(124, 58, 237, 0.55), 0 0 0 8px rgba(124, 58, 237, 0.08);
            box-shadow: 0 10px 28px rgba(124, 58, 237, 0.55), 0 0 0 8px rgba(124, 58, 237, 0.08);
  }
}
@keyframes ctaPulse {
  0%, 100% {
    -webkit-box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
            box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
  }
  50% {
    -webkit-box-shadow: 0 10px 28px rgba(124, 58, 237, 0.55), 0 0 0 8px rgba(124, 58, 237, 0.08);
            box-shadow: 0 10px 28px rgba(124, 58, 237, 0.55), 0 0 0 8px rgba(124, 58, 237, 0.08);
  }
}
@-webkit-keyframes charBobble {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}
@keyframes charBobble {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}
@-webkit-keyframes iconFloat {
  0%, 100% {
    -webkit-transform: translateY(0) rotate(0);
            transform: translateY(0) rotate(0);
  }
  50% {
    -webkit-transform: translateY(-8px) rotate(-3deg);
            transform: translateY(-8px) rotate(-3deg);
  }
}
@keyframes iconFloat {
  0%, 100% {
    -webkit-transform: translateY(0) rotate(0);
            transform: translateY(0) rotate(0);
  }
  50% {
    -webkit-transform: translateY(-8px) rotate(-3deg);
            transform: translateY(-8px) rotate(-3deg);
  }
}
@-webkit-keyframes iconBounce {
  0% {
    -webkit-transform: translateY(0) rotate(0) scale(1);
            transform: translateY(0) rotate(0) scale(1);
  }
  40% {
    -webkit-transform: translateY(-14px) rotate(-8deg) scale(1.08);
            transform: translateY(-14px) rotate(-8deg) scale(1.08);
  }
  100% {
    -webkit-transform: translateY(0) rotate(0) scale(1.05);
            transform: translateY(0) rotate(0) scale(1.05);
  }
}
@keyframes iconBounce {
  0% {
    -webkit-transform: translateY(0) rotate(0) scale(1);
            transform: translateY(0) rotate(0) scale(1);
  }
  40% {
    -webkit-transform: translateY(-14px) rotate(-8deg) scale(1.08);
            transform: translateY(-14px) rotate(-8deg) scale(1.08);
  }
  100% {
    -webkit-transform: translateY(0) rotate(0) scale(1.05);
            transform: translateY(0) rotate(0) scale(1.05);
  }
}
@-webkit-keyframes portalSpin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes portalSpin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@-webkit-keyframes portalGlow {
  0%, 100% {
    opacity: 0.25;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    opacity: 0.55;
    -webkit-transform: scale(1.15);
            transform: scale(1.15);
  }
}
@keyframes portalGlow {
  0%, 100% {
    opacity: 0.25;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    opacity: 0.55;
    -webkit-transform: scale(1.15);
            transform: scale(1.15);
  }
}
@-webkit-keyframes bubbleFloat {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
  }
}
@keyframes bubbleFloat {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
  }
}
@-webkit-keyframes bubbleTextIn {
  0% {
    opacity: 0;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes bubbleTextIn {
  0% {
    opacity: 0;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes typingDot {
  0%, 60%, 100% {
    -webkit-transform: scale(0.6);
            transform: scale(0.6);
    opacity: 0.5;
  }
  30% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    opacity: 1;
  }
}
@keyframes typingDot {
  0%, 60%, 100% {
    -webkit-transform: scale(0.6);
            transform: scale(0.6);
    opacity: 0.5;
  }
  30% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    opacity: 1;
  }
}
@-webkit-keyframes bobble {
  0%, 100% {
    -webkit-transform: translateY(0) rotate(-3deg);
            transform: translateY(0) rotate(-3deg);
  }
  50% {
    -webkit-transform: translateY(-10px) rotate(3deg);
            transform: translateY(-10px) rotate(3deg);
  }
}
@keyframes bobble {
  0%, 100% {
    -webkit-transform: translateY(0) rotate(-3deg);
            transform: translateY(0) rotate(-3deg);
  }
  50% {
    -webkit-transform: translateY(-10px) rotate(3deg);
            transform: translateY(-10px) rotate(3deg);
  }
}
@-webkit-keyframes botTalk {
  0% {
    -webkit-transform: translateY(0) rotate(0) scale(1);
            transform: translateY(0) rotate(0) scale(1);
  }
  30% {
    -webkit-transform: translateY(-12px) rotate(-8deg) scale(1.08);
            transform: translateY(-12px) rotate(-8deg) scale(1.08);
  }
  60% {
    -webkit-transform: translateY(-4px) rotate(6deg) scale(1.04);
            transform: translateY(-4px) rotate(6deg) scale(1.04);
  }
  100% {
    -webkit-transform: translateY(0) rotate(0) scale(1);
            transform: translateY(0) rotate(0) scale(1);
  }
}
@keyframes botTalk {
  0% {
    -webkit-transform: translateY(0) rotate(0) scale(1);
            transform: translateY(0) rotate(0) scale(1);
  }
  30% {
    -webkit-transform: translateY(-12px) rotate(-8deg) scale(1.08);
            transform: translateY(-12px) rotate(-8deg) scale(1.08);
  }
  60% {
    -webkit-transform: translateY(-4px) rotate(6deg) scale(1.04);
            transform: translateY(-4px) rotate(6deg) scale(1.04);
  }
  100% {
    -webkit-transform: translateY(0) rotate(0) scale(1);
            transform: translateY(0) rotate(0) scale(1);
  }
}
@-webkit-keyframes botHello {
  0% {
    -webkit-transform: translateY(0) rotate(0);
            transform: translateY(0) rotate(0);
  }
  50% {
    -webkit-transform: translateY(-16px) rotate(-12deg);
            transform: translateY(-16px) rotate(-12deg);
  }
  100% {
    -webkit-transform: translateY(-4px) rotate(0);
            transform: translateY(-4px) rotate(0);
  }
}
@keyframes botHello {
  0% {
    -webkit-transform: translateY(0) rotate(0);
            transform: translateY(0) rotate(0);
  }
  50% {
    -webkit-transform: translateY(-16px) rotate(-12deg);
            transform: translateY(-16px) rotate(-12deg);
  }
  100% {
    -webkit-transform: translateY(-4px) rotate(0);
            transform: translateY(-4px) rotate(0);
  }
}
@-webkit-keyframes mascotWiggle {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  20% {
    -webkit-transform: rotate(-8deg);
            transform: rotate(-8deg);
  }
  45% {
    -webkit-transform: rotate(7deg);
            transform: rotate(7deg);
  }
  70% {
    -webkit-transform: rotate(-5deg);
            transform: rotate(-5deg);
  }
  100% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
}
@keyframes mascotWiggle {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  20% {
    -webkit-transform: rotate(-8deg);
            transform: rotate(-8deg);
  }
  45% {
    -webkit-transform: rotate(7deg);
            transform: rotate(7deg);
  }
  70% {
    -webkit-transform: rotate(-5deg);
            transform: rotate(-5deg);
  }
  100% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
}
@-webkit-keyframes mascotBob {
  0%, 100% {
    -webkit-transform: translateX(-50%) translateY(0) rotate(-1.5deg);
            transform: translateX(-50%) translateY(0) rotate(-1.5deg);
  }
  50% {
    -webkit-transform: translateX(-50%) translateY(-8px) rotate(1.5deg);
            transform: translateX(-50%) translateY(-8px) rotate(1.5deg);
  }
}
@keyframes mascotBob {
  0%, 100% {
    -webkit-transform: translateX(-50%) translateY(0) rotate(-1.5deg);
            transform: translateX(-50%) translateY(0) rotate(-1.5deg);
  }
  50% {
    -webkit-transform: translateX(-50%) translateY(-8px) rotate(1.5deg);
            transform: translateX(-50%) translateY(-8px) rotate(1.5deg);
  }
}
@-webkit-keyframes sparkleBurst {
  0% {
    -webkit-transform: translate(0, 0) scale(0);
            transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  15% {
    -webkit-transform: translate(calc(var(--dx) * 0.25), calc(var(--dy) * 0.25)) scale(1.2);
            transform: translate(calc(var(--dx) * 0.25), calc(var(--dy) * 0.25)) scale(1.2);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(var(--dx), var(--dy)) scale(0.3);
            transform: translate(var(--dx), var(--dy)) scale(0.3);
    opacity: 0;
  }
}
@keyframes sparkleBurst {
  0% {
    -webkit-transform: translate(0, 0) scale(0);
            transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  15% {
    -webkit-transform: translate(calc(var(--dx) * 0.25), calc(var(--dy) * 0.25)) scale(1.2);
            transform: translate(calc(var(--dx) * 0.25), calc(var(--dy) * 0.25)) scale(1.2);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(var(--dx), var(--dy)) scale(0.3);
            transform: translate(var(--dx), var(--dy)) scale(0.3);
    opacity: 0;
  }
}
@-webkit-keyframes botPop {
  0% {
    -webkit-transform: scale(1) rotate(0);
            transform: scale(1) rotate(0);
  }
  25% {
    -webkit-transform: scale(1.18, 0.85) rotate(-6deg);
            transform: scale(1.18, 0.85) rotate(-6deg);
  }
  55% {
    -webkit-transform: scale(0.92, 1.12) rotate(6deg);
            transform: scale(0.92, 1.12) rotate(6deg);
  }
  100% {
    -webkit-transform: scale(1) rotate(0);
            transform: scale(1) rotate(0);
  }
}
@keyframes botPop {
  0% {
    -webkit-transform: scale(1) rotate(0);
            transform: scale(1) rotate(0);
  }
  25% {
    -webkit-transform: scale(1.18, 0.85) rotate(-6deg);
            transform: scale(1.18, 0.85) rotate(-6deg);
  }
  55% {
    -webkit-transform: scale(0.92, 1.12) rotate(6deg);
            transform: scale(0.92, 1.12) rotate(6deg);
  }
  100% {
    -webkit-transform: scale(1) rotate(0);
            transform: scale(1) rotate(0);
  }
}
/* ==========================================================================
   AI Bot 미디어 쿼리
   ========================================================================== */
/*20260630 쳇봇사이즈변경 */
@media (max-width: 1920px) {
  .ai-bot {
    bottom: 16px;
    right: 16px;
    gap: 0;
  }
  .ai-bot .bot-emoji {
    width: 100px;
    height: 100px;
  }
  /* 중간단계없애기
  .ai-bot { bottom: 30px; right: 16px; gap: 0;
  	.bot-emoji { width: 180px; height: 180px;
  		&.is-open   { opacity: 0; transform: translateY(20px) scale(0.85); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
  		&.is-popping { animation: botPop .55s cubic-bezier(.34, 1.56, .64, 1); }
  	}
  	.bot-bubble.is-hidden { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  }*/
}
@media (max-width: 768px) {
  .ai-bot {
    bottom: 16px;
    right: 16px;
    gap: 0;
  }
  .ai-bot .bot-emoji {
    width: 100px;
    height: 100px;
  }
}