/* Chatbot launcher - sky blue bubble + white robot character loop */
.chatbot-button {
  position: fixed;
  right: 8px;
  bottom: 24px;
  z-index: 9999;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chatbot-launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Small because the tail reaches the bottom of the bubble box and the video
     frame carries ~16px of empty headroom above the robot. */
  gap: 4px;
  will-change: transform;
}

/* 6px of lead-in for the rim, then a 68px panel and an 18px tail below it. The
   extra height over the old pill grows upwards, because the launcher is pinned
   at the bottom, so the tip stays where it was against the robot's head. That
   is also why the panel can be made taller without moving the tail: add to this
   height and to the panel's own depth in the path by the same amount, and every
   coordinate below the panel keeps the screen position it already had. */
.chatbot-bubble {
  position: relative;
  /* Fits the longest line of either message ("홈페이지 제작", ~87px at 16px/800)
     with room to spare, and no more: the panel has to hold the widest thing it
     will ever show, so anything past that is dead space on the other message. */
  width: 116px;
  height: 92px;
  flex-shrink: 0;
}

/* The body itself paints nothing: it only carries the chained drop-shadows
   around the single clipped fill in ::before. Drawing the rim this way instead
   of with a border keeps a white line from cutting straight across the tail. */
.chatbot-bubble__body {
  position: absolute;
  z-index: 1;
  inset: 6px 0 0 0;
  filter:
    drop-shadow(0 1.4px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 -1.4px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(1.4px 0 0 rgba(255, 255, 255, 0.95))
    drop-shadow(-1.4px 0 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 9px 16px rgba(37, 99, 235, 0.3));
}

/* One path for the panel and the tail so the fill, gloss and rim never meet at
   a seam. Traced clockwise over the 116x86 box: a 16px-cornered panel down to
   y=68, then the tail hanging off the bottom left. Its right side drops almost
   straight while the left sweeps in, so the point leans back towards the middle
   of the bubble instead of away from it; that asymmetry is what makes it read
   as a spoken tail rather than a wedge, and the short curve at the bottom
   rounds the point off.

   The tail's x values are scaled about the point itself (x=45.1), so narrowing
   it leaves the tip aiming at exactly the same spot on the robot's head. The
   panel keeps the x it had when it was wider: the launcher centres the bubble
   over the robot, so trimming width off the right walks the tail towards the
   middle of the head rather than off the side of it. */
.chatbot-bubble__body::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  clip-path: path(
    "M 16,0 H 100 A 16,16 0 0 1 116,16 V 52 A 16,16 0 0 1 100,68 H 49.3 Q 48.3,75 46.8,82.5 Q 46.1,87.5 43.2,84.5 Q 37.1,78.5 31.3,68 H 16 A 16,16 0 0 1 0,52 V 16 A 16,16 0 0 1 16,0 Z"
  );
  background:
    radial-gradient(78% 62% at 48% 6%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 44%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(160deg, #ffffff 0%, #f0f9ff 46%, #dbeafe 100%);
  box-shadow: inset 0 -5px 12px rgba(96, 165, 250, 0.28);
  pointer-events: none;
}

/* Spans the bubble rather than centring on its midpoint: anchoring at left 50%
   would cap the text at half the width and wrap the messages past their own
   line breaks. Vertically it centres on the panel (6px inset + 68px tall), not
   on the bubble, which is taller by the length of the tail. */
.chatbot-bubble__text {
  position: absolute;
  z-index: 2;
  top: 40px;
  left: 8px;
  right: 8px;
  transform: translateY(-50%);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 52%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
  transition: opacity 320ms ease;
}

/* Held while the script swaps in the next message, so the text never changes
   in plain sight. Keep the duration in step with BUBBLE_FADE_MS. */
.chatbot-bubble__text.is-fading {
  opacity: 0;
}

.chatbot-character {
  margin-top: 0;
}

/* Sized against the 352px canvas, not the robot: the frame carries empty side
   margins so the raised waving arm has somewhere to go. The robot itself still
   lands at ~141px, the same as before the canvas widened. */
.chatbot-character__video,
.chatbot-character__still {
  width: 158px;
  height: auto;
  display: block;
  pointer-events: none;
}

.chatbot-character__still,
.chatbot-character.is-image .chatbot-character__video {
  display: none;
}

.chatbot-character.is-image .chatbot-character__still {
  display: block;
}

/* Tucked: the script adds .is-tucked only where hover exists, so touch screens
   and no-JS keep the launcher fully out. The whole button slides, not just the
   character, so its hit area leaves the page along with it.
   bottom: the frame has ~7px of empty space under the feet, so 54px lines
   them up with the bottom of the hero promo card (61px off the bottom). The
   out state keeps this height: dropping back down under the pointer would
   fire mouseleave and tuck it again. */
.chatbot-button.is-tucked {
  bottom: 54px;
  transition:
    opacity 0.4s var(--ease, ease),
    visibility 0.4s,
    translate 0.4s var(--ease, ease),
    transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* 92px puts the neck (x=79 of the 158px frame) just past the screen edge, so
   the body stays behind it and only the tilted head leans out. */
.chatbot-button.is-tucked:not(.is-out) {
  transform: translateX(92px);
}

.chatbot-launcher {
  position: relative;
}

.chatbot-character {
  position: relative;
}

/* While tucked, the still is drawn twice and cut at the neck (the narrowest
   row, 51.4% down the 352x416 frame) so the head can tilt on its own. The
   head copy keeps a few px of the neck to cover the seam as it turns.
   The layers stay up through the slide out, so the head straightens and the
   body fades in on the way; the script then adds .is-waving to hand over to
   the wave video. */
.chatbot-peek {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.chatbot-peek img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
}

/* Starts at the top of the head's fade so the chin stays solid while the
   body fades back in under the straightening head. */
.chatbot-peek__body {
  clip-path: inset(43% 0 0 0);
  transition: opacity 0.35s ease;
}

/* Faded rather than clipped: with the body hidden, a hard cut at the neck
   shows as a straight slice once the head turns. */
.chatbot-peek__head {
  -webkit-mask-image: linear-gradient(to bottom, #000 43%, transparent 51%);
  mask-image: linear-gradient(to bottom, #000 43%, transparent 51%);
  transform-origin: 50% 51.4%;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.chatbot-button.is-tucked:not(.is-waving) .chatbot-peek {
  display: block;
}

.chatbot-button.is-tucked:not(.is-waving) .chatbot-character__video,
.chatbot-button.is-tucked:not(.is-waving) .chatbot-character__still {
  visibility: hidden;
}

.chatbot-button.is-tucked:not(.is-out) .chatbot-peek__body {
  opacity: 0;
}

.chatbot-button.is-tucked:not(.is-out) .chatbot-peek__head {
  transform: rotate(-56deg);
  animation: chatbot-head-idle 3.2s ease-in-out infinite alternate;
}

.chatbot-button.is-tucked.is-peek:not(.is-out) .chatbot-peek__head {
  animation: chatbot-head-peek 1.6s ease-in-out;
}

@keyframes chatbot-head-idle {
  from { transform: rotate(-52deg); }
  to { transform: rotate(-60deg); }
}

/* Leans further out, tilts back as if looking around, leans again and
   settles. Keep the length in step with PEEK_HOLD_MS. */
@keyframes chatbot-head-peek {
  0% { transform: rotate(-56deg); }
  25% { transform: translateX(-8px) rotate(-70deg); }
  45% { transform: translateX(-4px) rotate(-46deg); }
  65% { transform: translateX(-8px) rotate(-66deg); }
  100% { transform: rotate(-56deg); }
}

/* Sits off the left of the head, outside the button's own box, so it shows
   while the rest of the launcher is still pushed off the edge. */
.chatbot-hi {
  position: absolute;
  z-index: 3;
  top: 118px;
  right: calc(100% + 4px);
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--brand, #1a86da);
  opacity: 0;
  scale: 0.6;
  transform-origin: right center;
  transition: opacity 0.3s ease, scale 0.45s cubic-bezier(0.34, 1.6, 0.64, 1);
  pointer-events: none;
}

.chatbot-hi::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  margin-top: -6px;
  border-left: 8px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.chatbot-button.is-tucked:not(.is-out) .chatbot-hi {
  opacity: 1;
  scale: 1;
}

.chatbot-button.is-tucked.is-peek:not(.is-out) .chatbot-hi {
  scale: 1.12;
}

.chatbot-button.is-tucked .chatbot-bubble {
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.chatbot-button.is-tucked:not(.is-out) .chatbot-bubble {
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-bubble__text {
    transition: none;
  }

  .chatbot-button.is-tucked,
  .chatbot-button.is-tucked .chatbot-bubble,
  .chatbot-hi {
    transition: opacity 0.3s ease;
  }

  .chatbot-peek__head,
  .chatbot-button.is-tucked.is-peek:not(.is-out) .chatbot-peek__head {
    animation: none;
  }
}

/* 모바일: 말풍선 없이, 오른쪽 가장자리에 머리만 내밀고 숨긴다 */
@media (max-width: 768px) {
  .chatbot-bubble,
  .chatbot-hi {
    display: none;
  }

  .chatbot-character__video,
  .chatbot-character__still {
    width: 92px;
  }

  .chatbot-button,
  .chatbot-button.is-tucked {
    right: 0;
    bottom: 16px;
  }

  .chatbot-button.is-tucked:not(.is-out) {
    transform: translateX(54px);
  }
}

/* Chatbot panel - floating widget anchored bottom right, no page dim */
.chatbot-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-height: min(640px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 20px;
  background: #f5f9fd;
  box-shadow: 0 24px 60px rgba(15, 111, 189, 0.24), 0 4px 14px rgba(17, 19, 24, 0.1);
  font-family: Pretendard, "Malgun Gothic", sans-serif;
  transform-origin: right bottom;
  animation: chatbot-panel-in 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.chatbot-panel[hidden] {
  display: none;
}

@keyframes chatbot-panel-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* Opacity rather than visibility: the launcher has a visibility transition, so
   it would still be unfocusable at the moment close() hands focus back to it. */
body.chatbot-panel-open .chatbot-button {
  opacity: 0;
  pointer-events: none;
}

/* header */
.chatbot-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 16px;
  background: linear-gradient(120deg, #36a2ef 0%, var(--brand, #1a86da) 60%, var(--brand-deep, #0f6fbd) 100%);
  color: #fff;
}

.chatbot-panel__avatar {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

/* Frames the head (rows 32-215 of the 352x416 still) in the circle. */
.chatbot-panel__avatar img {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 128%;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.chatbot-panel__brand {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.3;
}

.chatbot-panel__brand strong {
  font-size: 16px;
  font-weight: 800;
}

.chatbot-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.chatbot-panel__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
}

.chatbot-panel__close {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.25s;
}

.chatbot-panel__close:hover {
  background: rgba(255, 255, 255, 0.36);
}

.chatbot-panel__close::before,
.chatbot-panel__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.chatbot-panel__close::after {
  transform: rotate(-45deg);
}

.chatbot-panel__close:focus-visible {
  outline-color: #fff;
}

/* window-style header: traffic-light dots, centred title, menu bars */
.chatbot-panel__header--window {
  position: relative;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
  background: #fff;
  color: var(--ink, #111318);
}

.chatbot-panel__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-panel__header--window .chatbot-panel__close,
.chatbot-panel__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.chatbot-panel__header--window .chatbot-panel__close {
  background: #ff5f57;
}

.chatbot-panel__header--window .chatbot-panel__close:hover {
  background: #ff5f57;
}

.chatbot-panel__header--window .chatbot-panel__close::before,
.chatbot-panel__header--window .chatbot-panel__close::after {
  width: 6px;
  height: 1.4px;
  margin: -0.7px 0 0 -3px;
  background: rgba(80, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.2s;
}

.chatbot-panel__header--window .chatbot-panel__close:hover::before,
.chatbot-panel__header--window .chatbot-panel__close:hover::after,
.chatbot-panel__header--window .chatbot-panel__close:focus-visible::before,
.chatbot-panel__header--window .chatbot-panel__close:focus-visible::after {
  opacity: 1;
}

.chatbot-panel__header--window .chatbot-panel__close:focus-visible {
  outline-color: var(--brand, #1a86da);
}

.chatbot-panel__dot--min { background: #febc2e; }
.chatbot-panel__dot--max { background: #28c840; }

.chatbot-panel__header--window .chatbot-panel__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  flex: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.chatbot-panel__header--window .chatbot-panel__brand strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chatbot-panel__mark {
  display: block;
  width: 22px;
  height: auto;
}

.chatbot-panel__menu {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.chatbot-panel__menu:hover {
  background: rgba(17, 19, 24, 0.06);
}

.chatbot-panel__menu span,
.chatbot-panel__menu span::before,
.chatbot-panel__menu span::after {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink, #111318);
}

.chatbot-panel__menu span {
  position: relative;
}

.chatbot-panel__menu span::before,
.chatbot-panel__menu span::after {
  content: "";
  position: absolute;
  left: 0;
}

.chatbot-panel__menu span::before { top: -6px; }
.chatbot-panel__menu span::after { top: 6px; }

/* body */
.chatbot-panel__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 14px 16px 16px;
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(150, 196, 255, 0.85) 0%, rgba(150, 196, 255, 0) 72%),
    radial-gradient(100% 60% at 0% 100%, rgba(170, 226, 255, 0.85) 0%, rgba(170, 226, 255, 0) 72%),
    linear-gradient(180deg, #f2f7fd 0%, #f1f8fc 100%);
}

/* Thin, arrowless bar inset from the panel edge. Chrome 121+ drops every
   ::-webkit-scrollbar rule once scrollbar-width/color is set, so the standard
   properties are kept to browsers without the pseudo-elements. */
.chatbot-panel__body::-webkit-scrollbar {
  width: 10px;
}

.chatbot-panel__body::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-panel__body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(15, 111, 189, 0.22) padding-box;
}

.chatbot-panel__body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(15, 111, 189, 0.4);
}

.chatbot-panel__body::-webkit-scrollbar-button {
  display: none;
}

@supports not selector(::-webkit-scrollbar) {
  .chatbot-panel__body {
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 111, 189, 0.25) transparent;
  }
}

.chatbot-panel__greet {
  text-align: center;
}

/* The wave video shares the still's 352x416 canvas, so it lays straight over
   it and takes over only once frames are actually playing. */
.chatbot-panel__mascot {
  position: relative;
  display: block;
  width: 80px;
  margin: 0 auto 8px;
}

.chatbot-panel__mascot-still {
  display: block;
  width: 100%;
  height: auto;
}

.chatbot-panel__mascot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.chatbot-panel__mascot.is-video .chatbot-panel__mascot-video {
  opacity: 1;
}

.chatbot-panel__mascot.is-video .chatbot-panel__mascot-still {
  visibility: hidden;
}

.chatbot-panel__greet p {
  font-size: 14px;
  color: var(--ink-2, #2d3139);
}

.chatbot-panel__greet strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink, #111318);
}

.chatbot-panel__composer {
  position: relative;
  margin-top: 18px;
}

.chatbot-panel__composer input {
  width: 100%;
  height: 48px;
  padding: 0 54px 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 134, 218, 0.12);
  font-size: 14px;
  text-overflow: ellipsis;
  transition: border-color 0.25s;
}

.chatbot-panel__composer input::placeholder {
  color: #8a919c;
}

.chatbot-panel__composer input:focus {
  outline: 0;
  border-color: var(--brand, #1a86da);
}

.chatbot-panel__send {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--brand-soft, #e7f2fb);
  transition: background 0.25s;
}

.chatbot-panel__send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand, #1a86da);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}

.chatbot-panel__send:hover {
  background: var(--brand, #1a86da);
}

.chatbot-panel__send:hover svg {
  stroke: #fff;
}

/* hero variant: greeting left, mascot right, composer below on the brand blue */
.chatbot-panel__hero {
  position: relative;
  margin: -20px -14px 0 -16px;
  padding: 24px 16px 8px;
}

.chatbot-panel__hero .chatbot-panel__greet {
  position: relative;
  min-height: 104px;
  text-align: left;
}

.chatbot-panel__hero .chatbot-panel__mascot {
  position: absolute;
  right: -6px;
  top: -10px;
  width: 116px;
  margin: 0;
  pointer-events: none;
}

.chatbot-panel__hero .chatbot-panel__greet p {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #111318);
}

.chatbot-panel__hero .chatbot-panel__greet strong {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

.chatbot-panel__hero .chatbot-panel__greet .chatbot-panel__promo {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink, #111318);
}

.chatbot-panel__promo em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink, #111318);
}

.chatbot-panel__hero .chatbot-panel__composer {
  z-index: 1;
  margin-top: 16px;
}

.chatbot-panel__hero .chatbot-panel__composer input {
  box-shadow: 0 8px 24px rgba(15, 111, 189, 0.3);
}

.chatbot-panel__hero + .chatbot-panel__msg,
.chatbot-panel__hero ~ .chatbot-panel__note {
  margin-top: 12px;
}

.chatbot-panel__msg:empty {
  display: none;
}

.chatbot-panel__msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, #2d3139);
}

.chatbot-panel__note {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  color: var(--mute, #6a717c);
}

/* shortcut cards */
.chatbot-panel__cards {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.chatbot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 146px;
  overflow: hidden;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: linear-gradient(150deg, #4fb0f0 0%, var(--brand, #1a86da) 100%);
  color: #fff;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.chatbot-card--sub {
  background: linear-gradient(150deg, #8fd3ee 0%, #3ea8e0 100%);
}

.chatbot-card:hover {
  background: var(--brand-deep, #0f6fbd);
  transform: translateY(-2px);
}

.chatbot-card__label {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

.chatbot-card__title {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.chatbot-card__title strong {
  font-weight: 800;
}

.chatbot-card__desc {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.9;
}

.chatbot-card__img {
  position: absolute;
  right: -14px;
  bottom: -16px;
  width: 96px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.chatbot-card:hover .chatbot-card__img {
  transform: translateY(-6px) rotate(-4deg);
}

/* quick questions + shortcut list */
.chatbot-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brand-soft, #e7f2fb);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brand, #1a86da);
}

.chatbot-panel__asks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.chatbot-ask {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 16px 14px;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: box-shadow 0.3s;
}

.chatbot-ask:hover {
  box-shadow: 0 8px 22px rgba(26, 134, 218, 0.16);
}

.chatbot-ask__icon {
  font-size: 26px;
  line-height: 1;
}

.chatbot-ask__text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink, #111318);
}

/* slide variant: one row, dragged or swiped sideways, bleeding to the panel edges */
.chatbot-panel__asks--slide {
  display: flex;
  gap: 10px;
  margin: 20px -14px 0 -16px;
  padding: 2px 14px 10px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
  cursor: grab;
}

.chatbot-panel__asks--slide::-webkit-scrollbar {
  display: none;
}

.chatbot-panel__asks--slide li {
  flex: 0 0 148px;
  scroll-snap-align: start;
}

.chatbot-panel__asks--slide.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.chatbot-panel__asks--slide.is-dragging a {
  pointer-events: none;
}

.chatbot-panel__asks--slide a {
  -webkit-user-drag: none;
  user-select: none;
}

.chatbot-panel__asks--slide .chatbot-ask__text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.chatbot-panel__asks--slide .chatbot-ask {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.chatbot-panel__asks--slide .chatbot-ask,
.chatbot-panel__asks--slide .chatbot-ask:hover {
  box-shadow: none;
}

.chatbot-panel__asks--slide .chatbot-ask__text {
  color: #000;
}

.chatbot-panel__hero ~ .chatbot-panel__subtitle {
  font-weight: 600;
  color: #000;
}

.chatbot-panel__subtitle.chatbot-panel__subtitle--keywords {
  margin-top: 8px;
}

.chatbot-panel__asks--slide .chatbot-tag {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-2, #2d3139);
}

.chatbot-panel__asks--slide .chatbot-ask::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111318' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.2s ease;
}

.chatbot-panel__asks--slide .chatbot-ask:hover::after {
  transform: translate(2px, -2px);
}

.chatbot-ask__icon--tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f3f6fb 0%, #e6ecf5 100%);
}

/* glass icons: solid gradient shape, frosted pane over it, round badge */
.chatbot-ask__icon--tile svg {
  width: 40px;
  height: 40px;
  overflow: visible;
}

.chatbot-ask__icon--tile .is-glass {
  fill: rgba(255, 255, 255, 0.42);
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1;
}

.chatbot-ask__icon--tile .is-line {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.chatbot-ask__icon--tile .is-badge {
  fill: #2f7468;
  stroke: #fff;
  stroke-width: 2;
}

.chatbot-ask__icon--tile .is-glyph {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-ask__icon--tile .is-glyph-fill {
  fill: #fff;
}

.chatbot-panel__subtitle {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #111318);
}

/* keyword chips: two staggered rows that scroll sideways together */
.chatbot-panel__keywords {
  margin: 10px -14px 0 -16px;
  padding: 0 14px 4px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.chatbot-panel__keywords::-webkit-scrollbar {
  display: none;
}

.chatbot-panel__keywords.is-dragging {
  cursor: grabbing;
}

.chatbot-panel__keywords.is-dragging button {
  pointer-events: none;
}

.chatbot-panel__keywords ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 440px;
}

.chatbot-keyword {
  padding: 9px 14px;
  border: 1px solid rgba(26, 134, 218, 0.14);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink-2, #2d3139);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chatbot-keyword:hover,
.chatbot-keyword:focus-visible {
  border-color: var(--brand, #1a86da);
  color: var(--brand, #1a86da);
}

.chatbot-keyword.is-active {
  border-color: var(--brand, #1a86da);
  background: var(--brand, #1a86da);
  color: #fff;
}

.chatbot-panel__reply:empty {
  display: none;
}

.chatbot-panel__reply {
  margin-top: 18px;
}

.chatbot-reply__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chatbot-reply__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(26, 134, 218, 0.25);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand, #1a86da);
  transition: background-color 0.2s, color 0.2s;
}

.chatbot-reply__link::after {
  content: "";
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / contain;
}

.chatbot-reply__link:hover,
.chatbot-reply__link:focus-visible {
  background: var(--brand, #1a86da);
  color: #fff;
}

.chatbot-panel__links {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.chatbot-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 0.3s;
}

.chatbot-link:hover {
  box-shadow: 0 8px 22px rgba(26, 134, 218, 0.16);
}

.chatbot-link__icon {
  flex-shrink: 0;
  width: 32px;
  font-size: 26px;
  line-height: 1;
  text-align: center;
}

.chatbot-link__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.chatbot-link__body b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111318);
}

.chatbot-link__go {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft, #e7f2fb);
  transition: background 0.25s;
}

.chatbot-link__go svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--brand, #1a86da);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-link:hover .chatbot-link__go {
  background: var(--brand, #1a86da);
}

.chatbot-link:hover .chatbot-link__go svg {
  stroke: #fff;
}

/* stacked shortcut cards: each card tucks under the next, the last one opens its description */
.chatbot-panel__links--stack {
  gap: 0;
}

.chatbot-panel__links--stack li + li {
  margin-top: -18px;
}

.chatbot-panel__links--stack .chatbot-link {
  flex-wrap: wrap;
  padding: 14px 14px 32px;
  border-radius: 20px;
  background: linear-gradient(100deg, #9fd0f6 0%, #c9e4fa 100%);
  box-shadow: 0 -4px 14px rgba(15, 111, 189, 0.08);
}

.chatbot-panel__links--stack li:nth-child(2) .chatbot-link {
  background: linear-gradient(100deg, #c4e2fa 0%, #e3f1fc 100%);
}

.chatbot-panel__links--stack li:nth-child(3) .chatbot-link {
  background: linear-gradient(100deg, #e0effc 0%, #f4f9fe 100%);
}

.chatbot-panel__links--stack li:last-child .chatbot-link {
  padding-bottom: 16px;
}

.chatbot-panel__links--stack .chatbot-link:hover {
  box-shadow: 0 -4px 14px rgba(15, 111, 189, 0.08);
}

.chatbot-panel__links--stack .chatbot-link__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}

.chatbot-panel__links--stack .chatbot-link__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand, #1a86da);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-panel__links--stack .chatbot-link__body b {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.chatbot-panel__links--stack .chatbot-link__go {
  width: 40px;
  height: 40px;
  background: var(--ink, #111318);
}

.chatbot-panel__links--stack .chatbot-link__go svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.chatbot-panel__links--stack .chatbot-link:hover .chatbot-link__go {
  background: var(--brand, #1a86da);
}

.chatbot-link__desc {
  display: none;
  flex-basis: 100%;
  margin-top: 4px;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, #2d3139);
}

.chatbot-panel__links--stack li:last-child .chatbot-link__desc {
  display: block;
}

/* quote flow: replaces the home view inside the same panel body */
.chatbot-quote {
  display: none;
}

.chatbot-panel.is-quote .chatbot-panel__body > :not(.chatbot-quote) {
  display: none;
}

.chatbot-panel.is-quote .chatbot-quote {
  display: block;
}

.chatbot-quote__back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute, #6a717c);
  transition: color 0.25s;
}

.chatbot-quote__back:hover {
  color: var(--brand, #1a86da);
}

.chatbot-quote__back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-quote__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-quote__avatar {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 134, 218, 0.14);
}

.chatbot-quote__avatar img {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 128%;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.chatbot-quote__avatar::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
}

.chatbot-quote__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.chatbot-quote__meta b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #111318);
}

.chatbot-quote__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--mute, #6a717c);
}

.chatbot-quote__meta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.chatbot-quote__bubble {
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(26, 134, 218, 0.08);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #111318);
}

.chatbot-quote__bubble b {
  font-weight: 700;
}

.chatbot-panel.is-quote .chatbot-panel__body {
  position: relative;
}

.chatbot-quote__turn {
  margin-top: 22px;
  animation: chatbot-quote-in 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.chatbot-quote__turn:first-child {
  margin-top: 0;
}

.chatbot-quote__turn > :not(.chatbot-quote__who) {
  animation: chatbot-quote-in 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.chatbot-quote__turn > :nth-child(3) { animation-delay: 0.25s; }
.chatbot-quote__turn > :nth-child(n + 4) { animation-delay: 0.5s; }

.chatbot-quote__turn--me {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chatbot-quote__turn--me time {
  font-size: 12px;
  color: var(--mute, #6a717c);
}

.chatbot-quote__turn--me .chatbot-quote__bubble {
  margin-top: 6px;
  border-radius: 16px 4px 16px 16px;
  background: var(--brand, #1a86da);
  font-weight: 600;
  color: #fff;
}

.chatbot-quote__typing {
  display: flex;
  gap: 4px;
  padding: 16px 18px;
}

.chatbot-quote__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9cc6ea;
  animation: chatbot-quote-dot 1s infinite ease-in-out;
}

.chatbot-quote__typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-quote__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbot-quote-dot {
  0%, 60%, 100% { transform: none; opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-quote__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* form turn */
.chatbot-quote__form {
  margin-top: 14px;
}

.chatbot-quote__form > .chatbot-quote__field ~ *,
.chatbot-quote__visit > * + * {
  margin-top: 12px;
}

.chatbot-quote__field label,
.chatbot-quote__label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #111318);
}

.chatbot-quote__label small {
  font-size: 11px;
  font-weight: 500;
  color: var(--mute, #6a717c);
}

.chatbot-quote__field label em,
.chatbot-quote__check em {
  margin-right: auto;
  margin-left: 2px;
  font-style: normal;
  color: #e5484d;
}

.chatbot-quote__field input:not(.blind),
.chatbot-quote__field select,
.chatbot-quote__field textarea,
.chatbot-quote__file {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d6e4f1;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: var(--ink, #111318);
  transition: border-color 0.2s;
}

.chatbot-quote__field textarea {
  height: 110px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.chatbot-quote__field input::placeholder,
.chatbot-quote__field textarea::placeholder {
  color: #8a919c;
}

.chatbot-quote__field input:focus,
.chatbot-quote__field select:focus,
.chatbot-quote__field textarea:focus,
.chatbot-quote__file:focus-within {
  outline: 0;
  border-color: var(--brand, #1a86da);
}

.chatbot-quote__field [aria-invalid="true"] {
  border-color: #e5484d;
}

.chatbot-quote__field label.chatbot-quote__file {
  display: flex;
  align-items: center;
  margin: 0;
  font-weight: 400;
  color: #8a919c;
  cursor: pointer;
}

.chatbot-quote__file span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatbot-quote__file.has-file {
  color: var(--ink, #111318);
}

.chatbot-quote__file svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-quote__err:empty {
  display: none;
}

.chatbot-quote__err {
  margin-top: 6px;
  font-size: 12px;
  color: #e5484d;
}

.chatbot-quote__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111318);
  cursor: pointer;
}

.chatbot-quote__check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand, #1a86da);
}

.chatbot-quote__agree details {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--mute, #6a717c);
}

.chatbot-quote__agree summary {
  width: fit-content;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.chatbot-quote__agree details p,
.chatbot-quote__agree details ol {
  margin-top: 6px;
}

.chatbot-quote__agree details ol {
  padding-left: 16px;
  list-style: decimal;
}

.chatbot-quote__form .chatbot-quote__who {
  margin-top: 22px;
}

.chatbot-quote__submit {
  width: 100%;
  height: 64px;
  margin-top: 12px;
  border-radius: 16px;
  background: var(--brand, #1a86da);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  transition: background 0.25s;
}

.chatbot-quote__submit:hover {
  background: var(--brand-deep, #0f6fbd);
}

.chatbot-quote__form.is-sent {
  opacity: 0.6;
}

.chatbot-quote__form.is-sent .chatbot-quote__submit {
  display: none;
}

.chatbot-quote__note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--mute, #6a717c);
}

.chatbot-chip {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d6e4f1;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2, #2d3139);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chatbot-chip:hover {
  border-color: var(--brand, #1a86da);
}

.chatbot-chip:focus-visible {
  border-color: var(--brand, #1a86da);
}

@keyframes chatbot-quote-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-panel {
    animation-name: chatbot-panel-fade;
  }

  .chatbot-quote__turn,
  .chatbot-quote__turn > *,
  .chatbot-quote__typing span {
    animation: none;
  }

  .chatbot-card,
  .chatbot-card__img {
    transition: background 0.3s;
  }

  .chatbot-card:hover,
  .chatbot-card:hover .chatbot-card__img {
    transform: none;
  }
}

@keyframes chatbot-panel-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 시작 화면에서 바로가기까지 한 화면에 보이도록 */
@media (min-width: 481px) {
  .chatbot-panel { max-height: min(960px, calc(100vh - 48px)); max-height: min(960px, calc(100dvh - 48px)); }
}

/* 헤더 우측 창 키우기: 가로는 그대로, 위아래만 화면 끝에 붙임 */
.chatbot-panel__grow { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-left: auto; border-radius: 6px; color: var(--ink, #111318); }
.chatbot-panel__grow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chatbot-panel__grow:hover, .chatbot-panel__grow[aria-pressed="true"] { background: rgba(17, 19, 24, 0.06); }
.chatbot-panel.is-snap { top: 0; bottom: 0; height: auto; max-height: none; }

@media (max-width: 480px) {
  .chatbot-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .chatbot-card__img {
    width: 84px;
  }
}

/* 질문 입력창: 스크롤 본문과 분리해 창 맨 아래에 고정 */
.chatbot-panel__body { min-height: 0; }
.chatbot-panel__dock { flex: none; position: relative; z-index: 3; padding: 4px 16px 16px; background: linear-gradient(180deg, rgba(241, 248, 252, 0) 0%, #f1f8fc 42%); }
.chatbot-panel__dock .chatbot-panel__composer { margin-top: 0; }
.chatbot-panel__dock .chatbot-panel__composer input { box-shadow: 0 8px 24px rgba(15, 111, 189, 0.18); }
/* 입력한 대화는 안내 화면 위를 덮는 레이어에서 이어 간다 */
.chatbot-panel__body { position: relative; }
.chatbot-panel.is-talk .chatbot-panel__body { overflow: hidden; }
.chatbot-panel__talk { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; padding: 12px 16px 16px; background: #f1f8fc; }
.chatbot-panel__talk[hidden] { display: none; }
.chatbot-panel__talk-back { display: inline-flex; align-items: center; gap: 2px; flex: none; align-self: flex-start; margin: 0 0 14px; padding: 0; font-size: 13px; font-weight: 600; color: var(--mute, #6a717c); }
.chatbot-panel__talk-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chatbot-panel__talk-back:hover { color: var(--brand, #1a86da); }
.chatbot-panel__talk-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* 처음 열리는 창 높이는 안내 화면 캡처(709px)에 맞춘다. 창 키우기는 그대로 */
@media (min-width: 481px) {
  .chatbot-panel:not(.is-snap) { height: min(709px, calc(100vh - 48px)); height: min(709px, calc(100dvh - 48px)); max-height: min(709px, calc(100vh - 48px)); max-height: min(709px, calc(100dvh - 48px)); }
}
/* 기본 창: 짧은 안내 화면(496px) 아래에 입력창(68px). 화면이 더 작으면 그 안에 맞춘다 */
@media (min-width: 481px) {
  .chatbot-panel:not(.is-snap) { height: min(564px, calc(100vh - 48px)); height: min(564px, calc(100dvh - 48px)); max-height: min(564px, calc(100vh - 48px)); max-height: min(564px, calc(100dvh - 48px)); }
}
@media (max-width: 480px) {
  .chatbot-panel:not(.is-snap) { height: min(564px, calc(100vh - 24px)); height: min(564px, calc(100dvh - 24px)); max-height: min(564px, calc(100vh - 24px)); max-height: min(564px, calc(100dvh - 24px)); }
}
.chatbot-panel__x { position: relative; display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: #e10600; }
.chatbot-panel__x::before, .chatbot-panel__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin-top: -0.75px; margin-left: -4.5px; border-radius: 1px; background: #fff; }
.chatbot-panel__x::before { transform: rotate(45deg); }
.chatbot-panel__x::after { transform: rotate(-45deg); }
.chatbot-panel__x:hover { background: #c10500; }
.chatbot-panel__x:focus-visible { outline: 2px solid var(--brand, #1a86da); outline-offset: 2px; }
/* 상단: 로고 · AI 상담 · 크게 · 닫기. 창 헤더의 흰 배경·신호등·빨간 닫기는 유지 */
.chatbot-panel__header--window { height: 48px; padding: 0 12px; }
.chatbot-panel__header--window .chatbot-panel__brand { gap: 8px; }
.chatbot-panel__header--window .chatbot-panel__brand strong { font-size: 16px; font-weight: 700; }
.chatbot-panel__header--window .chatbot-panel__mark { width: 26px; }
.chatbot-panel__header--window .chatbot-panel__grow { width: 28px; height: 28px; margin-left: 0; border-radius: 8px; color: #8e96a3; background: transparent; }
.chatbot-panel__header--window .chatbot-panel__grow svg { width: 16px; height: 16px; }
.chatbot-panel__header--window .chatbot-panel__grow:hover, .chatbot-panel__header--window .chatbot-panel__grow[aria-pressed="true"] { background: rgba(17, 19, 24, 0.06); color: #5c6570; }
.chatbot-panel__header--window .chatbot-panel__x { width: 20px; height: 20px; margin-left: 4px; background: #ff5f57; box-shadow: inset 0 -1px 0 rgba(120, 0, 0, 0.18); }
.chatbot-panel__header--window .chatbot-panel__x:hover { background: #ff3b30; }
/* 제목을 흐름 안에 두어 크게·닫기 위를 덮지 않게 한다 */
.chatbot-panel__header--window .chatbot-panel__brand { position: static; left: auto; top: auto; flex: 1; min-width: 0; transform: none; }
.chatbot-panel__header--window .chatbot-panel__grow { position: relative; z-index: 2; flex: none; margin-left: auto; }
.chatbot-panel__header--window .chatbot-panel__x { position: relative; z-index: 2; flex: none; }
/* 로고와 제목은 창 정중앙, 키우기·닫기는 같은 유리 버튼 */
.chatbot-panel__header--window .chatbot-panel__brand { position: absolute; left: 50%; top: 50%; flex: none; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.chatbot-panel__header--window .chatbot-panel__grow, .chatbot-panel__header--window .chatbot-panel__x { width: 28px; height: 28px; margin-left: 6px; border: 1px solid rgba(17, 19, 24, 0.08); border-radius: 50%; background: rgba(255, 255, 255, 0.72); box-shadow: 0 1px 2px rgba(17, 19, 24, 0.06); color: #5c6570; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chatbot-panel__header--window .chatbot-panel__grow { margin-left: auto; }
.chatbot-panel__header--window .chatbot-panel__grow:hover, .chatbot-panel__header--window .chatbot-panel__grow[aria-pressed="true"], .chatbot-panel__header--window .chatbot-panel__x:hover { background: rgba(17, 19, 24, 0.06); color: #3a414c; }
.chatbot-panel__header--window .chatbot-panel__x::before, .chatbot-panel__header--window .chatbot-panel__x::after { width: 11px; height: 1.6px; margin-top: -0.8px; margin-left: -5.5px; background: currentColor; }
/* AI 답변 서식: 문단·굵게·목록, 타이핑 중 커서 */
.chatbot-quote__bubble--rich > * + * { margin-top: 8px; }
.chatbot-quote__bubble--rich b { font-weight: 700; color: var(--brand-deep, #0f6fbd); }
.chatbot-quote__bubble--rich ul, .chatbot-quote__bubble--rich ol { padding-left: 18px; }
.chatbot-quote__bubble--rich ul { list-style: disc; }
.chatbot-quote__bubble--rich ol { list-style: decimal; }
.chatbot-quote__bubble--rich li + li { margin-top: 4px; }
.chatbot-quote__bubble--rich li::marker { color: var(--brand, #1a86da); }
.chatbot-quote__bubble--rich a { color: var(--brand, #1a86da); text-decoration: underline; word-break: break-all; }
.chatbot-quote__bubble--rich.is-typing .is-cursor::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--brand, #1a86da); animation: chatbot-caret 0.8s steps(1) infinite; }
@keyframes chatbot-caret { 50% { opacity: 0; } }

