:root {
  font-family:
    Inter,
    "Pretendard",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1e293b;
  background: #fafbfc;
  font-synthesis: none;
  --navy: #1f3551;
  --blue: #345e92;
  --muted: #65748a;
  --line: #e4e9ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  height: 100dvh;
  min-height: 420px;
}
button,
a,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #95bdf0;
  outline-offset: 3px;
}
button {
  border: 0;
}
button,
[role="button"] {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: #f0f3f7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 18px 15px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 34px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-content: center;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  font-size: 27px;
  font-weight: 650;
  position: relative;
}
.brand-mark span {
  position: absolute;
  right: 4px;
  top: -4px;
  color: #a9d3fd;
}
.brand b {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  margin-bottom: 2px;
  color: #64748b;
}
.brand strong {
  font-size: 20px;
  letter-spacing: -0.7px;
}
.new-chat {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid #d4dde8;
  border-radius: 10px;
  background: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 3px #1f355106;
  text-align: left;
}
.new-chat:hover {
  border-color: #a8bad0;
  background: #fcfdff;
}
.new-chat span {
  font-size: 21px;
  line-height: 1;
}
.sidebar-caption {
  font-size: 11px;
  font-weight: 600;
  color: #8090a3;
  margin: 29px 13px 10px;
}
#chat-list {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.empty-history {
  font-size: 12px;
  line-height: 1.8;
  margin: 6px 12px;
  color: #78869a;
}
.chat-item {
  display: block;
  width: 100%;
  background: transparent;
  color: #526075;
  text-align: left;
  font-size: 13px;
  padding: 12px;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-item:hover {
  background: #e7edf5;
}
.chat-item.active {
  background: #e0e8f2;
  color: #203e63;
  font-weight: 600;
}
.chat-item .demo-tag {
  font-size: 10px;
  color: #886a3e;
  margin-right: 5px;
}
.sidebar-footer {
  border-top: 1px solid #dce3eb;
  margin-top: 16px;
  padding-top: 10px;
}
.side-link {
  padding: 12px;
  background: none;
  color: #64748b;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bd9650;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.ready {
  background: #42876b;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 6px 1px;
  min-width: 0;
}
.avatar {
  border-radius: 50%;
  background: #dce5f0;
  color: #294465;
  width: 31px;
  height: 31px;
  display: grid;
  place-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.account > div {
  min-width: 0;
  flex: 1;
}
.account b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.account span:not(.avatar) {
  display: block;
  font-size: 10px;
  color: #78869a;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-button {
  width: 33px;
  height: 33px;
  border-radius: 7px;
  background: transparent;
  color: #718096;
  font-size: 22px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #e7ecf3;
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fcfcfd;
}
.topbar {
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 12px;
}
.header-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
#chat-title {
  font-size: 13px;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.connection-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: #f5f2eb;
  border: 1px solid #ede6d8;
  color: #876b3d;
  padding: 7px 11px;
  border-radius: 20px;
  font-size: 11px;
}
.connection-badge.ready {
  color: #39735d;
  background: #eff7f2;
  border-color: #dceee2;
}
.workspace {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.scroll-area {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scroll-behavior: smooth;
  padding: 10px 32px 25px;
}
.welcome {
  max-width: 760px;
  margin: auto;
  text-align: center;
  padding: 6vh 0 32px;
}
.welcome-symbol {
  font-size: 48px;
  line-height: 1;
  color: #446790;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #8190a3;
  margin-bottom: 17px;
}
.welcome h1 {
  font-size: 38px;
  line-height: 1.45;
  font-weight: 550;
  letter-spacing: -1.8px;
  margin: 0 0 18px;
  color: #263b55;
}
.welcome p {
  color: #7a8799;
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 40px auto 22px;
  text-align: left;
  max-width: 710px;
}
.suggestions button {
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font-size: 12px;
  color: #41546d;
  padding: 18px 15px;
  line-height: 1.7;
  position: relative;
  min-height: 103px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.suggestions button:hover {
  border-color: #a0b6cf;
  transform: translateY(-2px);
}
.suggestions span {
  display: block;
  font-size: 10px;
  color: #91a0b1;
  margin-bottom: 8px;
}
.suggestions b {
  display: block;
  text-align: right;
  color: #9eabba;
  margin-top: 5px;
  font-weight: 400;
}
.text-button {
  font-size: 11px;
  color: #7a8ba1;
  background: transparent;
  padding: 8px;
  border-radius: 6px;
}
.text-button:hover {
  background: #edf2f8;
  color: #345e92;
}
.composer-area {
  width: 100%;
  max-width: 828px;
  margin: 0 auto;
  padding: 12px 32px max(19px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.composer {
  border: 1px solid #dbe3ec;
  border-radius: 17px;
  padding: 15px 16px 10px;
  background: white;
  box-shadow: 0 5px 20px #213e5f05;
}
.composer:focus-within {
  border-color: #9ab2cd;
  box-shadow: 0 0 0 3px #e7eef540;
}
textarea {
  display: block;
  width: 100%;
  resize: none;
  min-height: 41px;
  max-height: 170px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #263b55;
  font-size: 14px;
  line-height: 1.7;
  padding: 0 2px;
}
textarea::placeholder {
  color: #99a5b5;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}
.model-labels {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #738196;
  font-size: 11px;
}
.model-labels > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.model-labels b {
  font-size: 8px;
  font-weight: 600;
  color: #8e9bb0;
  background: #f1f4f8;
  border-radius: 3px;
  padding: 2px 4px;
  text-transform: uppercase;
}
.model-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.gpt {
  background: #739f8d;
}
.claude {
  background: #c38c6a;
}
.model-plus {
  color: #b9c3d0;
  font-size: 11px;
}
.send-button {
  height: 32px;
  width: 32px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.send-button:disabled {
  background: #e9edf3;
  color: #a8b5c6;
  opacity: 1;
}
.composer-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #98a3b2;
  padding: 12px 4px 0;
}
.messages {
  max-width: 730px;
  margin: 5px auto 0;
}
.message {
  margin: 25px 0 33px;
  min-width: 0;
}
.message.user {
  display: flex;
  justify-content: flex-end;
}
.user .message-body {
  background: #eef2f7;
  border-radius: 17px 17px 4px 17px;
  padding: 14px 18px;
  max-width: 87%;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526a86;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 13px;
}
.assistant-label .mini-logo {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #e7edf5;
  font-size: 18px;
}
.assistant .message-body {
  padding-left: 32px;
  font-size: 14px;
  line-height: 1.9;
  color: #34465d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.connection .message-body {
  color: #748398;
}
.message-actions {
  margin: 13px 0 0 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.message-actions button {
  background: transparent;
  border: 1px solid #e0e6ef;
  color: #75859b;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 10px;
}
.message-actions button:hover {
  border-color: #a1b5cf;
  color: #345e92;
}
.job-progress {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 730px;
  margin: 26px auto;
  padding: 16px;
  border: 1px solid #e0e8f1;
  background: #f5f8fc;
  border-radius: 12px;
}
.working-icon {
  font-size: 26px;
  color: #6a87ad;
  animation: turn 8s linear infinite;
}
.job-progress > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.job-progress b {
  font-size: 12px;
  color: #496486;
}
.job-progress p {
  font-size: 11px;
  line-height: 1.7;
  color: #7d8fa7;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.start-saved {
  display: block;
  margin: 15px auto;
  border: 1px solid #cddbea;
  background: #eaf1f8;
  color: #345e92;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 12px;
}
.demo-banner {
  padding: 0 7px 9px;
  font-size: 10px;
  color: #9a7948;
}
.notification {
  margin: 0 30px 10px;
  padding: 12px 17px;
  background: #fff3de;
  border-radius: 9px;
  color: #8b6235;
  font-size: 12px;
  line-height: 1.7;
}
.login-view {
  padding: 12vh 30px;
  margin: auto;
  overflow: auto;
}
.login-view h1 {
  font-size: 44px;
}
.primary {
  display: block;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
.primary:hover {
  background: #2c4a6e;
}
.login-button {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  margin: 35px 0 20px;
  padding: 14px 22px;
}
.login-note {
  font-size: 10px;
  color: #8a99ad;
}
.auth-error {
  padding: 14px;
  margin-top: 20px;
  background: #fff3e8;
  color: #9b6435;
  font-size: 12px;
  border-radius: 8px;
}
dialog {
  border: 1px solid #e0e6ed;
  border-radius: 18px;
  padding: 28px;
  max-width: 490px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  color: #34465d;
  box-shadow: 0 30px 100px #0e264b25;
}
dialog::backdrop {
  background: #1e304c55;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dialog-heading h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
dialog > p {
  font-size: 12px;
  line-height: 1.8;
  color: #8190a3;
}
.connection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  margin: 12px 0;
  gap: 12px;
}
.connection-row b {
  display: block;
  font-size: 13px;
}
.connection-row div > span {
  display: block;
  font-size: 10px;
  color: #8694a7;
  margin-top: 5px;
}
.pill {
  color: #9a7948;
  background: #faf3e7;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  white-space: nowrap;
}
.dialog-note {
  font-size: 11px;
  line-height: 1.9;
  color: #8190a3;
  margin: 18px 0;
}
dialog > .primary {
  width: 100%;
  margin-top: 23px;
}
.details-dialog {
  max-width: 760px;
}
.detail-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
}
.detail-section summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #486484;
  line-height: 1.8;
}
.detail-section pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.9 inherit;
  color: #5f7189;
  margin-top: 16px;
}
.detail-section p {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mobile-only {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.scrim {
  display: none;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@media (min-height: 950px) {
  .welcome {
    padding-top: 12vh;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 230px;
  }
  .topbar {
    padding: 0 25px;
  }
  .welcome h1 {
    font-size: 33px;
  }
  .suggestions {
    gap: 8px;
  }
  .suggestions button {
    padding: 15px 12px;
  }
  .scroll-area {
    padding: 5px 24px 20px;
  }
  .composer-area {
    padding-left: 24px;
    padding-right: 24px;
  }
  .model-labels {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 270px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 19;
    background: #1e304c55;
    backdrop-filter: blur(2px);
  }
  .mobile-only {
    display: block;
  }
  .topbar {
    height: 62px;
    padding: 0 15px;
  }
  .header-left {
    max-width: 65%;
    gap: 6px;
  }
  #chat-title {
    font-size: 12px;
  }
  .connection-badge {
    padding: 6px 9px;
    font-size: 10px;
  }
  .scroll-area {
    padding: 5px 20px 15px;
  }
  .welcome {
    padding: 6vh 0 15px;
  }
  .welcome-symbol {
    font-size: 40px;
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .welcome h1 {
    font-size: 29px;
    letter-spacing: -1px;
    margin-bottom: 14px;
  }
  .welcome p {
    font-size: 12px;
  }
  .suggestions {
    grid-template-columns: 1fr;
    margin: 27px 0 12px;
    gap: 8px;
  }
  .suggestions button {
    min-height: 0;
    padding: 12px 15px;
    font-size: 11px;
  }
  .suggestions span {
    display: inline-block;
    font-size: 9px;
    width: 84px;
    margin: 0 5px 0 0;
  }
  .suggestions b {
    display: inline;
    float: right;
    margin: 0;
  }
  .text-button {
    font-size: 10px;
  }
  .composer-area {
    padding: 9px 14px max(12px, env(safe-area-inset-bottom));
  }
  .composer {
    padding: 12px 12px 9px;
    border-radius: 14px;
  }
  textarea {
    font-size: 16px;
    min-height: 36px;
  }
  .model-labels {
    gap: 5px;
    font-size: 9px;
  }
  .model-labels > span {
    gap: 4px;
  }
  .model-labels b {
    font-size: 7px;
    padding: 2px 3px;
  }
  .composer-note {
    justify-content: center;
    font-size: 8px;
    padding-top: 8px;
  }
  .keyboard-note {
    display: none;
  }
  .message {
    margin: 20px 0 27px;
  }
  .user .message-body {
    max-width: 92%;
    font-size: 13px;
    padding: 12px 15px;
  }
  .assistant .message-body {
    padding-left: 0;
    font-size: 13px;
  }
  .message-actions {
    margin-left: 0;
  }
  .job-progress {
    padding: 12px;
    gap: 9px;
  }
  .job-progress b {
    font-size: 11px;
  }
  .job-progress p {
    font-size: 10px;
  }
  .notification {
    margin: 0 15px 8px;
    font-size: 11px;
  }
  .login-view {
    padding: 8vh 24px;
  }
  .login-view h1 {
    font-size: 35px;
  }
  .login-view p {
    font-size: 13px;
  }
  dialog {
    padding: 22px;
  }
  .demo-banner {
    font-size: 9px;
  }
  .connection-row {
    padding: 12px;
  }
  .account span:not(.avatar) {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .scroll-area {
    padding-left: 15px;
    padding-right: 15px;
  }
  .welcome h1 {
    font-size: 26px;
  }
  .suggestions span {
    width: 70px;
    font-size: 8px;
  }
  .suggestions button {
    font-size: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .model-labels {
    font-size: 8px;
  }
  .model-labels b {
    display: none;
  }
  .welcome-symbol {
    margin-bottom: 18px;
  }
  .text-button {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 701px) and (max-height: 850px) {
  .welcome {
    padding-top: 16px;
    padding-bottom: 10px;
  }
  .welcome-symbol {
    display: none;
  }
  .welcome h1 {
    font-size: 32px;
    line-height: 1.35;
    margin-bottom: 13px;
  }
  .suggestions {
    margin-top: 27px;
    margin-bottom: 12px;
  }
  .suggestions button {
    min-height: 92px;
  }
}
