/* [project]/app/globals.css [app-client] (css) */
* {
  box-sizing: border-box;
}

body {
  color: #202435;
  background: #f7f8fc;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

button, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.app {
  background: #fff;
  border-left: 1px solid #e9eaf0;
  border-right: 1px solid #e9eaf0;
  flex-direction: column;
  width: 100%;
  max-width: 950px;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
}

.header {
  border-bottom: 1px solid #e9eaf0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px;
  display: flex;
}

.brand {
  align-items: center;
  gap: 12px;
  display: flex;
}

.logo {
  color: #fff;
  background: #5b5bd6;
  border-radius: 14px;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  font-weight: bold;
  display: grid;
}

h1, h2, p {
  margin-top: 0;
}

.header h1 {
  margin-bottom: 5px;
  font-size: 18px;
}

.header p {
  color: #777c8e;
  margin-bottom: 0;
  font-size: 13px;
}

.clear, .suggestions button {
  color: #444966;
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 10px;
  padding: 10px 13px;
}

.chat {
  flex: 1;
  padding: 26px 20px;
  overflow-y: auto;
}

.welcome {
  text-align: center;
  max-width: 570px;
  margin: 9vh auto 30px;
}

.welcome-icon {
  margin-bottom: 16px;
  font-size: 44px;
}

.welcome h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.welcome p {
  color: #74798c;
  line-height: 1.6;
}

.suggestions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 25px;
  display: flex;
}

.suggestions button:hover, .clear:hover {
  background: #f0f0ff;
}

.message {
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  display: flex;
}

.message.user {
  flex-direction: row-reverse;
}

.avatar {
  color: #5050c7;
  background: #ededff;
  border-radius: 12px;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 11px;
  font-weight: bold;
  display: grid;
}

.user .avatar {
  color: #217a4d;
  background: #e7f5ed;
}

.bubble {
  overflow-wrap: anywhere;
  background: #fafaff;
  border: 1px solid #e9eaf0;
  border-radius: 4px 16px 16px;
  max-width: 82%;
  padding: 15px 17px;
  line-height: 1.7;
}

.user .bubble {
  background: #efefff;
  border-color: #e4e4ff;
  border-radius: 16px 4px 16px 16px;
}

.message-text {
  white-space: pre-wrap;
}

.citations {
  color: #6668b7;
  border-top: 1px solid #e3e4f2;
  margin: 12px 0 0;
  padding-top: 8px;
  font-size: 12px;
}

.typing {
  color: #777c8e;
}

.error {
  color: #b42318;
  background: #fff1f0;
  border-radius: 9px;
  margin: 0 20px 12px;
  padding: 12px;
  font-size: 14px;
}

.composer {
  background: #fff;
  border-top: 1px solid #e9eaf0;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px 10px;
  display: flex;
  position: relative;
}

.composer textarea {
  resize: vertical;
  border: 1px solid #dfe1eb;
  border-radius: 13px;
  outline: none;
  flex: 70%;
  min-width: 0;
  min-height: 58px;
  max-height: 180px;
  padding: 15px;
}

.composer textarea:focus {
  border-color: #7777e5;
  box-shadow: 0 0 0 3px #eef;
}

.send {
  color: #fff;
  background: #5b5bd6;
  border: 0;
  border-radius: 12px;
  align-self: flex-start;
  padding: 15px 19px;
  font-weight: bold;
}

.hint {
  color: #85899a;
  width: 100%;
  margin: 0;
  font-size: 11px;
}

@media (max-width: 600px) {
  .header {
    padding: 14px;
  }

  .header h1 {
    font-size: 15px;
  }

  .header p {
    font-size: 11px;
  }

  .chat {
    padding: 16px 12px;
  }

  .welcome h2 {
    font-size: 22px;
  }

  .bubble {
    max-width: 90%;
    padding: 12px;
  }

  .composer {
    padding: 12px;
  }
}

.app {
  max-width: 1240px;
  height: 100dvh;
}

.header {
  flex: none;
}

.workspace {
  flex: 1;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 0;
  display: grid;
}

.library {
  background: #fcfcff;
  border-right: 1px solid #e9eaf0;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
}

.panel-heading {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.panel-heading h2, .chat-intro h2 {
  margin: 0;
  font-size: 16px;
}

.panel-heading span {
  color: #5050c7;
  background: #eef;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.muted, .chat-intro p {
  color: #777c8e;
  font-size: 12px;
  line-height: 1.5;
}

.upload-drop {
  text-align: center;
  cursor: pointer;
  background: #f8f8ff;
  border: 1.5px dashed #aaaaf0;
  border-radius: 13px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 14px 0;
  padding: 18px 12px;
  display: flex;
}

.upload-drop:hover {
  background: #f0f0ff;
  border-color: #5b5bd6;
}

.upload-drop.disabled {
  opacity: .65;
  cursor: wait;
}

.upload-drop input {
  display: none;
}

.upload-drop strong {
  font-size: 13px;
}

.upload-drop span:last-of-type {
  color: #777c8e;
  font-size: 11px;
}

.upload-icon {
  color: #5050c7;
  background: #e9e9ff;
  border-radius: 10px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 22px;
  font-weight: bold;
  display: grid;
}

.upload-status {
  white-space: pre-wrap;
  color: #166534;
  overflow-wrap: anywhere;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.5;
}

.document-list {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.empty-docs {
  color: #85899a;
  padding: 10px 0;
  font-size: 12px;
}

.document-item {
  background: #fff;
  border: 1px solid #e9eaf0;
  border-radius: 10px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  display: flex;
}

.document-icon {
  color: #c2413a;
  background: #fff0ef;
  border-radius: 8px;
  flex: 0 0 34px;
  place-items: center;
  height: 38px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
}

.document-info {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.document-info strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.document-info span {
  color: #777c8e;
  font-size: 10px;
}

.remove-doc {
  color: #777c8e;
  background: none;
  border: 0;
  border-radius: 7px;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  font-size: 20px;
}

.remove-doc:hover {
  color: #b42318;
  background: #fff0ef;
}

.notes-section {
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  display: flex;
}

.notes-section label {
  font-size: 13px;
  font-weight: 700;
}

.notes-section textarea {
  resize: vertical;
  border: 1px solid #dfe1eb;
  border-radius: 9px;
  width: 100%;
  min-height: 95px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.notes-count {
  color: #85899a;
  align-self: flex-end;
  font-size: 10px;
}

.temporary-note {
  color: #85899a;
  margin-top: 18px;
  font-size: 10px;
  line-height: 1.5;
}

.tutor-panel {
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.chat-intro {
  border-bottom: 1px solid #f0f0f5;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
  display: flex;
}

.tutor-avatar {
  color: #5050c7;
  background: #ededff;
  border-radius: 13px;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 22px;
  display: grid;
}

.chat-intro p {
  margin: 5px 0 0;
}

.tutor-panel .chat {
  flex: 1;
  min-height: 0;
  padding: 18px 20px;
  overflow-y: auto;
}

.tutor-panel .welcome {
  margin-top: 5vh;
}

.tutor-panel .welcome h2 {
  font-size: 23px;
}

.tutor-panel .suggestions button {
  font-size: 12px;
}

.tutor-panel .composer {
  flex: none;
}

.citations {
  color: #6668b7;
  border-top: 1px solid #e3e4f2;
  margin-top: 12px;
  padding-top: 9px;
  font-size: 12px;
}

.citations summary {
  cursor: pointer;
}

.citations ul {
  color: #626780;
  margin-bottom: 0;
  padding-left: 18px;
  font-size: 11px;
}

.cache-label {
  color: #047857;
  margin: 10px 0 0;
  font-size: 11px;
}

@media (max-width: 760px) {
  .app {
    height: auto;
    min-height: 100dvh;
  }

  .workspace {
    flex-direction: column;
    min-height: 0;
    display: flex;
  }

  .library {
    border-bottom: 1px solid #e9eaf0;
    border-right: 0;
    max-height: none;
    overflow: visible;
  }

  .tutor-panel {
    min-height: 65vh;
  }

  .tutor-panel .chat {
    min-height: 360px;
    max-height: 65vh;
  }

  .chat-intro {
    padding: 14px;
  }

  .tutor-panel .composer {
    padding: 12px;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8plh8sv.css.map*/