:root {
  color-scheme: dark;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #05070f;
  color: #f5f7ff;
  accent-color: #ff8b3d;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  /* margin: 0; */
  /* min-height: 100vh; */
  /* background: radial-gradient(circle at top, #1a2337 0%, #0c101d 55%, #05070f 100%); */
  /* display: flex; */
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  color: var(--black);
  letter-spacing: 0;
  background-color: var(--white);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: 100%;
}

#root {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;

  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  background-color: #be5692;
}

.app-shell {
  display: flex;
  flex: 1;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.chatHome {
  position: relative;
  background: #2C292D;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  max-width: 960px;
  max-height: 784px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.Header_header {
position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 24px;
    background-color: #2C292D;
}

.Header_logo {
    padding: 8px 24px;
    text-align: left;
    height: 40px;
}

.Header_logo svg {
  height: 24px;;
}

.sidebar {
  width: 280px;
  /* padding: 2.5rem 2rem; */
  /* background: linear-gradient(180deg, rgba(20, 27, 43, 0.95), rgba(12, 16, 28, 0.95)); */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.home_pageBackgroundWrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.your-class {
  width: 100%;
}

.your-class .slick-dots {
  display: none !important;
    position: absolute;
    bottom: 0;
    display: flex!important;
    justify-content: center;
    width: 100%;
    padding: 0
}

.your-class .slick-dots li {
    box-sizing: border-box;
    padding: 8px 4px;
    list-style: none;
    cursor: pointer
}

.your-class .slick-dots li button {
    position: relative;
    display: block;
    width: 24px;
    height: 4px;
    font-size: 0;
    cursor: pointer;
    background: var(--white-4-white-border,hsla(0,0%,100%,.2));
    border: none;
    border-radius: 4px;
    outline: none;
    box-shadow: none
}

.your-class .slick-dots li button:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    content: "";
    background: var(--white-8-white-primary,#fff);
    border-radius: 4px;
    transition: all .3s ease
}

.your-class .slick-dots li button:hover:after {
    width: 100%;
    background: var(--white-6-white-tertiary,hsla(0,0%,100%,.65))
}

.your-class .slick-dots li.slick-active button {
    background: var(--white-8-white-primary,#fff)
}

.slick-next,.slick-prev {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    transform: translateY(-50%);
    cursor: pointer;
    border: none
}

.your-class .slick-arrow {
    z-index: 99;
    display: flex!important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--black-20,rgba(0,0,0,.2));
    border-radius: var(--radius-rounded,999px);
    opacity: 0;
    transition: all .3s ease
}

.your-class .slick-arrow:before {
    display: none
}

.your-class .slick-arrow.slick-prev {
    left: 0
}

.your-class .slick-arrow.slick-next {
    right: 0
}

.your-class .slick-arrow:hover {
    background: var(--black-opacity-30,rgba(0,0,0,.3))
}

.your-class .slick-arrow:active {
    background: var(--black-opacity-40,rgba(0,0,0,.4))
}

.your-class:hover .slick-arrow {
    opacity: 1
}

.your-class:hover .slick-arrow.slick-prev {
    left: 12px
}

.your-class:hover .slick-arrow.slick-next {
    right: 12px
}

.your-class .slick-slide img {
  width: 100%;
  height: auto;
}

.sidebar__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar__header .logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8b3d, #ffcb3b);
  font-size: 1.6rem;
}

.sidebar__header h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.sidebar__header p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.sidebar__hint {
    display: none;
    padding: 0 24px 24px;
}

.sidebar__hint h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar__hint ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.sidebar__hint li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.sidebar__hint li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ff9d4d;
}

.sidebar__history {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 0 24px 24px;
  gap: 0.75rem;
  overflow: hidden;
}

.sidebar__history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar__history-header h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  display: grid;
  gap: 0.6rem;
}

.history-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
  color: rgba(255, 255, 255, 0.82);
}

.history-list li:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.history-list li.active,
.history-list li:focus-visible {
  outline: none;
  border-color: #ff9d4d;
  box-shadow: 0 0 0 2px rgba(255, 157, 77, 0.35);
}

.history-list li .question {
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
  color: inherit;
}

.history-list li .answer-preview {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.history-list li.empty {
  text-align: center;
  border-style: dashed;
  cursor: default;
  color: rgba(255, 255, 255, 0.4);
}

.history-list li.empty:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.ghost.small {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.highlight {
  animation: highlightFade 2.6s ease-in-out;
}

@keyframes highlightFade {
  0% { box-shadow: 0 0 0 2px rgba(255, 157, 77, 0.6); }
  40% { box-shadow: 0 0 0 4px rgba(255, 157, 77, 0.35); }
  100% { box-shadow: none; }
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: rgb(0 0 0 / 15%);
}

.chat-header {
  padding: 2rem 3rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 12, 24, 0.2));
  backdrop-filter: blur(24px);
}

.chat-header h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.chat-header p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.conversation {
  flex: 1;
  overflow-y: auto;
  /* padding: 2rem 3rem 6rem; */
  padding: 16px 24px 16px;
  display: grid;
  gap: 1.5rem;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.message {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.message .avatar {
  margin-left: 16px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  padding: .2em;
}

.message .avatar img {
  width: 100%;
  object-fit: contain;
}

.message.user .avatar {
  background: linear-gradient(135deg, #4f89ff, #63d9ff);
}

.bubble {
  /* max-width: min(640px, 90vw); */
  max-width: min(100% - 64px, 440px);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: -0.01em;
  background: #2C292D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.bubble p {
  margin: 0;
}

.message.user .bubble {
  background: linear-gradient(135deg, rgba(79, 137, 255, 0.95), rgba(118, 201, 255, 0.9));
  color: #ffffff;
  border-color: transparent;
}

.message .content p {
  margin: 0 0 0.8rem;
}

.message .content p:last-child {
  margin-bottom: 0;
}

.message .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}

.message .content th,
.message .content td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.message .content th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.message .content tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

.message .sources-block {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.message .sources-block .sources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.message .sources-block h4 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.toggle-sources {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.toggle-sources:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffb347;
}

.message .sources-block ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.message .sources-block.collapsed ul {
  display: none;
}

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.message.assistant.waiting .typing-indicator span {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: blink 1.2s infinite ease-in-out;
}

.message.assistant.waiting .typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.message.assistant.waiting .typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.input-dock {
  position: sticky;
  bottom: 0;
  padding: 16px 24px 24px;
  background: linear-gradient(180deg, rgba(44, 41, 45, 0.65) 0%, rgba(44, 41, 45, 0.95) 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 0.6rem;
  z-index: 1;
}

.input-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 15, 0.35);
  padding: 12px 16px;
}

textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: inherit;
  resize: none;
  font-size: 1rem;
  min-height: 52px;
  max-height: 200px;
  line-height: 1.6;
  padding: 10px 12px;
  /* padding: 0.6rem 0; */
}

textarea:focus {
  outline: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

button {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

#submit-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8b3d, #ffb347);
  color: #fff;
  font-size: 1.05rem;
}

#submit-btn::before {
  content: '➤';
  transform: translateX(1px);
}

#submit-btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

#submit-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 139, 61, 0.35);
}

button.ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.45rem 0.9rem;
}

button.ghost:hover {
  color: #ff9d4d;
}

.policy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 1.8rem 1.6rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .sidebar__history {
    max-height: 260px;
  }

  .chat-header,
  .conversation,
  .input-dock {
    padding-left: clamp(1.4rem, 4vw, 2.4rem);
    padding-right: clamp(1.4rem, 4vw, 2.4rem);
  }
}

@media (max-width: 640px) {
  .sidebar {
    gap: 1.6rem;
  }

  .conversation {
  }

  .input-box {
    align-items: stretch;
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
  }

  .actions {
    justify-content: flex-end;
  }

  #submit-btn {
    width: 40px;
    height: 40px;
  }
}

.GuessYouWant_container__kzRE9 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: flex-start;
    text-align: left;
}

.GuessYouWant_container__kzRE9 .GuessYouWant_questionContainer__rMQ6F {
    box-sizing: border-box;
    width: 100%;
    max-width: min(100% - 16px,440px);
    padding-bottom: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.1)
}

.GuessYouWant_container__kzRE9 .GuessYouWant_questionContainer__rMQ6F .GuessYouWant_title__0rC6j {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 16px 0;
    margin-bottom: 8px;
    line-height: 24px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    color: #fff;
}

.GuessYouWant_container__kzRE9 .GuessYouWant_questionContainer__rMQ6F .GuessYouWant_title__0rC6j .GuessYouWant_textContainer__8O3Al {
    display: flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0;
}

.GuessYouWant_container__kzRE9 .GuessYouWant_questionContainer__rMQ6F .GuessYouWant_title__0rC6j .GuessYouWant_refresh__HODfG {
    cursor: pointer
}

@media(any-pointer: fine)and (hover:hover) {
    .GuessYouWant_container__kzRE9 .GuessYouWant_questionContainer__rMQ6F .GuessYouWant_title__0rC6j .GuessYouWant_refresh__HODfG:hover:not(html.mobileDevice) path {
        fill:#0070d5
    }
}

.GuessYouWant_container__kzRE9 .GuessYouWant_questionContainer__rMQ6F .GuessYouWant_title__0rC6j svg {
  font: #fff;
}

.GuessYouWant_container__kzRE9 .GuessYouWant_questionContainer__rMQ6F .GuessYouWant_title__0rC6j span {
    width: -moz-fit-content;
    width: fit-content;
    margin-left: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

@media(min-width: 768px) {
    .GuessYouWant_container__kzRE9 .GuessYouWant_questionContainer__rMQ6F {
        width:440px;
        max-width: calc(100% - 16px)
    }
}


.Tab_tabContent__r0VUB {
    box-sizing: border-box;
    width: 100%;
    padding: 0 16px 8px;
    margin: 0;
    overflow-y: hidden;
    list-style: none;
    transition: all .1s ease-in-out
}

.Tab_tabContent__r0VUB .Tab_contentItem__ML93E {
    flex: 1 0;
    width: 100%;
    padding: 8px 0;
    font-size: 14px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border-radius: 0;;
}

.Tab_tabContent__r0VUB .Tab_contentItem__ML93E>span {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    width: 100%
}

.Tab_tabContent__r0VUB .Tab_contentItem__ML93E .Tab_text__FdGUF {
    display: flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content
}

.Tab_tabContent__r0VUB .Tab_contentItem__ML93E .Tab_text__FdGUF svg {
    margin-right: 12px
}

.Tab_tabContent__r0VUB .Tab_contentItem__ML93E .Tab_text__FdGUF .Tab_name__UWp2D {
    width: -moz-fit-content;
    width: fit-content;
    font-style: normal;
    text-align: left
}

.Tab_tabContent__r0VUB .Tab_contentItem__ML93E .Tab_text__FdGUF + svg path {
  fill: #fff;
}

@media(any-pointer: fine)and (hover:hover) {
    .Tab_tabContent__r0VUB .Tab_contentItem__ML93E:hover:not(html.mobileDevice) {
        background-color: hsla(0, 0%, 0%, 0.052);
    }
}


.Divider_divider__UnNVz {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 8px
}

.Divider_divider__UnNVz:before {
    display: block;
    width: 100%;
    height: 1px;
    content: "";
    background: var(--border,rgba(28,28,28,.08));
    transform: scaleY(.5);
    transform-origin: 0 0
}


@media (max-width: 640px) {
  #root {
    padding: 0;
  }

  .sidebar {
    display: none !important;
  }

  .chatHome {
    border-radius: 0;
    max-width: 100%;
    max-height: 100%;
  }

  .conversation {
    padding-left: 0; 
  }
}
/* 언어 선택 (헤더 우측) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.lang-switch button {
  background: transparent;
  border: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lang-switch button:hover {
  color: #ff9d4d;
}

.lang-switch button.is-active {
  color: #2C292D;
  background: #ff9d4d;
  font-weight: 600;
}

@media (max-width: 640px) {
  .Header_header {
    padding-right: 8px;
  }
  .lang-switch button {
    padding: 0.3rem 0.4rem;
    font-size: 0.72rem;
  }
}
