/* [project]/nextjs/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --ink: #21242d;
  --muted: #858b99;
  --soft-muted: #a7acb6;
  --violet: #6d63e8;
  --violet-dark: #574dd4;
  --violet-soft: #f0efff;
  --line: #e9eaf0;
  --panel: #fff;
  --sidebar: #f8f8fb;
  --canvas: #fcfcfe;
  --danger: #db5969;
  --logo-accent: #f0c94f;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background: #eef0f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

button, textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  --chat-accent: var(--violet);
  --chat-accent-dark: var(--violet-dark);
  --chat-accent-soft: var(--violet-soft);
  --chat-accent-contrast: #fff;
  --chat-line: var(--line);
  --chat-muted: var(--muted);
  --chat-surface: var(--panel);
  --chat-text: var(--ink);
  --chat-danger: var(--danger);
  background: var(--canvas);
  grid-template-columns: 272px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  display: grid;
  overflow: hidden;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  z-index: 20;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 28px 20px 20px;
  display: flex;
  position: relative;
}

.brand-row {
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 8px;
  display: flex;
}

.wordmark {
  text-transform: uppercase;
  letter-spacing: -.035em;
  flex-direction: column;
  line-height: .9;
  display: flex;
}

.wordmark strong {
  font-size: 17px;
  font-weight: 850;
}

.wordmark small {
  color: var(--violet);
  letter-spacing: .16em;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 850;
}

.brand-mark, .mini-mark {
  color: #fff;
  background: linear-gradient(145deg, #8179ff, #5d50dc);
  border-radius: 11px;
  place-items: center;
  display: grid;
  box-shadow: 0 8px 18px #5f53dc3d;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.mini-mark {
  width: 25px;
  height: 25px;
  box-shadow: none;
  border-radius: 8px;
}

.sidebar-close {
  color: var(--muted);
  background: none;
  border: 0;
  margin-left: auto;
  padding: 6px;
  display: none;
}

.new-chat {
  cursor: pointer;
  border: 0;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  transition: transform .18s, box-shadow .18s, background .18s;
  display: inline-flex;
}

.new-chat:hover {
  transform: translateY(-1px);
}

.sidebar-new-chat {
  background: var(--violet-soft);
  width: 100%;
  color: var(--violet-dark);
  margin: 27px 0 16px;
  padding: 11px 14px;
}

.sidebar-new-chat:hover {
  background: #e8e6ff;
}

.primary-nav {
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}

.nav-item {
  color: #606572;
  border-radius: 10px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  font-size: 14px;
  display: flex;
}

.nav-item.active {
  color: var(--ink);
  background: #fff;
  font-weight: 600;
  box-shadow: 0 3px 12px #2024310a;
}

.history-block {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 24px 3px;
  display: flex;
  overflow: hidden;
}

.section-label {
  color: var(--soft-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.history-list {
  overscroll-behavior: contain;
  scrollbar-color: #d4d3dc transparent;
  scrollbar-width: thin;
  flex-direction: column;
  flex: 1;
  gap: 3px;
  min-height: 0;
  padding-right: 3px;
  display: flex;
  overflow: hidden auto;
}

.history-list button {
  color: #737986;
  cursor: pointer;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 9px;
  flex: none;
  width: 100%;
  padding: 9px 8px;
  font-size: 13px;
  overflow: hidden;
}

.history-list button:hover {
  color: var(--ink);
  background: #fff;
}

.history-list button.active {
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-weight: 600;
}

.history-empty {
  color: var(--soft-muted);
  margin: 2px 8px;
  font-size: 12px;
  line-height: 1.55;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  padding: 13px 9px 4px;
  display: flex;
}

.avatar, .top-avatar {
  background: none;
  place-items: center;
  display: grid;
}

.avatar {
  width: 35px;
  height: 40px;
}

.avatar .midtown-mark, .top-avatar .midtown-mark {
  width: 100%;
  height: 100%;
}

.sidebar-footer > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.sidebar-footer strong, .sidebar-footer span {
  display: block;
}

.sidebar-footer strong {
  font-size: 12px;
}

.sidebar-footer span {
  color: var(--soft-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 10px;
  overflow: hidden;
}

.workspace {
  background: var(--canvas);
  grid-template-rows: 80px auto minmax(0, 1fr) auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  position: relative;
  overflow: hidden;
}

.workspace:before {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 58% 48%, #c9c4ff2e, #0000 18rem), radial-gradient(circle at 78% 75%, #bce9e124, #0000 20rem);
  position: absolute;
  inset: 80px 0 0;
}

.topbar {
  z-index: 2;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 34px;
  display: flex;
  position: relative;
}

.model-pill {
  border: 1px solid var(--line);
  background: #ffffffe6;
  border-radius: 12px;
  align-items: center;
  gap: 9px;
  padding: 6px 11px 6px 7px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  box-shadow: 0 4px 14px #1c202d0f;
}

.connection-dot {
  background: #c1c4cd;
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
}

.connection-dot.online {
  background: #42b883;
  box-shadow: 0 0 0 3px #42b8831f;
}

.topbar-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.database-status {
  color: var(--muted);
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  font-size: 11px;
  display: inline-flex;
}

.database-status.postgresql {
  color: #747990;
}

.database-status.memory {
  color: #b07c36;
}

.topbar-new-chat {
  color: #fff;
  background: #22242b;
  padding: 10px 16px;
  font-size: 12px;
  box-shadow: 0 6px 16px #191b2221;
}

.topbar-new-chat:hover {
  background: #0f1014;
  box-shadow: 0 8px 20px #191b222e;
}

.top-avatar {
  width: 34px;
  height: 39px;
}

.mobile-menu {
  color: var(--ink);
  background: none;
  border: 0;
  padding: 6px;
  display: none;
}

.support-state {
  z-index: 2;
  color: #737986;
  background: #ffffffe6;
  border: 1px solid #e2e1ef;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 0 auto 2px;
  padding: 6px 12px;
  font-size: 10px;
  display: flex;
  box-shadow: 0 4px 14px #1c202d0a;
}

.support-state.agent_queue, .support-state.handoff_pending {
  color: var(--violet-dark);
  background: #f6f4ff;
  border-color: #d8d4fa;
}

.support-state.agent_active {
  color: #2d7f5f;
  background: #f0faf5;
  border-color: #cde8dc;
}

.support-state.sync-failed {
  color: #665bb8;
  background: #f7f5ff;
  border-color: #e2d8fa;
}

.handoff-notice {
  color: #383272;
  background: #f6f4ff;
  border: 1px solid #d8d4fa;
  border-radius: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(680px, 100% - 96px);
  margin: 22px auto 8px;
  padding: 13px 15px;
  display: grid;
  box-shadow: 0 7px 24px #463d9612;
}

.handoff-notice-icon {
  color: #fff;
  background: var(--violet);
  border-radius: 11px;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}

.handoff-notice > span:last-child {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.handoff-notice strong {
  font-size: 12px;
  line-height: 1.4;
}

.handoff-notice small {
  color: #6c688d;
  font-size: 11px;
  line-height: 1.45;
}

.conversation {
  z-index: 1;
  scroll-behavior: smooth;
  min-height: 0;
  position: relative;
  overflow-y: auto;
}

.conversation.is-empty {
  place-items: center;
  display: grid;
  overflow: visible;
}

.welcome {
  text-align: center;
  width: min(720px, 100% - 48px);
  margin: -20px auto 8px;
}

.orb {
  filter: blur(.1px);
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  display: grid;
}

.orb:before, .orb:after, .orb span {
  content: "";
  border-radius: 50%;
  grid-area: 1 / 1;
}

.orb:before {
  filter: blur(10px);
  opacity: .78;
  background: conic-gradient(from 200deg, #a9edee, #9f94ff, #f4d9f7, #a9edee);
  width: 72px;
  height: 72px;
  animation: 5s ease-in-out infinite breathe;
}

.orb:after {
  filter: blur(7px);
  background: #ffffffc2;
  width: 48px;
  height: 48px;
}

.orb span {
  border: 1px solid #8277f014;
  width: 78px;
  height: 78px;
  box-shadow: 0 12px 45px #685de221;
}

@keyframes breathe {
  50% {
    opacity: .92;
    transform: scale(1.08)rotate(8deg);
  }
}

.welcome h1 {
  color: #353842;
  letter-spacing: -.048em;
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.14;
}

.welcome h1 span {
  color: var(--violet);
}

.welcome > p {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 14px;
}

.starter-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
  display: grid;
}

.starter-grid button {
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  background: #ffffffb8;
  border-radius: 13px;
  padding: 13px 15px;
  transition: border .18s, transform .18s, box-shadow .18s;
}

.starter-grid button:hover {
  border-color: #d9d5ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #48437d12;
}

.starter-grid span, .starter-grid small {
  display: block;
}

.starter-grid span {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
}

.starter-grid small {
  color: var(--muted);
  font-size: 10px;
}

.message-list {
  width: min(820px, 100% - 48px);
  margin: 0 auto;
  padding: 28px 0 42px;
}

.message {
  gap: 13px;
  margin: 0 0 25px;
  scroll-margin-top: 90px;
  display: flex;
}

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

.message-avatar {
  border: 1px solid var(--line);
  width: 30px;
  height: 30px;
  color: var(--violet);
  background: #fff;
  border-radius: 10px;
  flex: none;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
  display: grid;
}

.message-avatar .midtown-mark {
  width: 28px;
  height: 30px;
}

.message.user .message-avatar {
  background: var(--violet-soft);
  color: var(--violet-dark);
  border-color: #dedbf8;
}

.message-body {
  min-width: 0;
  max-width: 78%;
}

.message.user .message-body {
  flex-direction: column;
  align-items: flex-end;
  display: flex;
}

.message-label {
  color: #6f7480;
  gap: 9px;
  margin: 0 2px 6px;
  font-size: 11px;
  font-weight: 650;
  display: flex;
}

.message-label span {
  color: var(--violet);
  font-weight: 500;
}

.bubble {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px 17px 17px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.62;
  box-shadow: 0 5px 18px #1f222d09;
}

.message.user .bubble {
  background: var(--violet-soft);
  box-shadow: none;
  border-color: #dfdcfb;
  border-radius: 17px 6px 17px 17px;
}

.message.system {
  justify-content: center;
}

.message.system .message-avatar {
  display: none;
}

.message.system .message-body {
  max-width: min(680px, 100%);
}

.message.system .message-label {
  justify-content: center;
}

.message.system .bubble {
  color: #5d6270;
  text-align: center;
  background: #f7f7fc;
  border-radius: 13px;
}

.message.error .bubble {
  color: #a93a49;
  background: #fff9fa;
  border-color: #db59694d;
}

.message-images {
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 8px;
  margin-bottom: 10px;
  display: grid;
}

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

.message-image-button {
  cursor: zoom-in;
  background: #eef0f4;
  border: 0;
  border-radius: 10px;
  min-width: 0;
  padding: 0;
  transition: transform .2s, box-shadow .2s;
  display: block;
  overflow: hidden;
}

.message-image-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #20243124;
}

.message-image-button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #6d63e859;
}

.message-images img {
  object-fit: cover;
  width: 100%;
  height: 160px;
  display: block;
}

.image-lightbox {
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #14151cc7;
  place-items: center;
  padding: 32px;
  animation: .22s both lightbox-fade-in;
  display: grid;
  position: fixed;
  inset: 0;
}

.image-lightbox-content {
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  animation: .28s cubic-bezier(.2, .8, .2, 1) both lightbox-scale-in;
  display: flex;
  position: relative;
}

.image-lightbox-content img {
  object-fit: contain;
  border-radius: 14px;
  max-width: 100%;
  max-height: calc(90vh - 34px);
  display: block;
  box-shadow: 0 26px 80px #0000006b;
}

.image-lightbox-content p {
  color: #ffffffd1;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80vw;
  margin: 10px 0 0;
  font-size: 12px;
  overflow: hidden;
}

.image-lightbox-content button {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #14151ca3;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  place-items: center;
  width: 40px;
  height: 40px;
  transition: background .18s, transform .18s;
  display: grid;
  position: absolute;
  top: 12px;
  right: 12px;
}

.image-lightbox-content button:hover {
  background: #14151cdb;
  transform: scale(1.05);
}

.image-lightbox.closing {
  animation: .18s both lightbox-fade-out;
}

.image-lightbox.closing .image-lightbox-content {
  animation: .18s both lightbox-scale-out;
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes lightbox-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes lightbox-scale-in {
  from {
    opacity: 0;
    transform: scale(.92);
  }
}

@keyframes lightbox-scale-out {
  to {
    opacity: 0;
    transform: scale(.96);
  }
}

.bubble.tool-only {
  box-shadow: none;
  background: none;
  border: 0;
  padding: 2px 1px;
}

.bubble.tool-only .chat-progress-list {
  margin-bottom: 0;
}

.message-files {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  display: flex;
}

.message-files button {
  max-width: 280px;
  color: var(--violet-dark);
  cursor: pointer;
  text-align: left;
  background: #faf9ff;
  border: 1px solid #dedcf4;
  border-radius: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 7px;
  padding: 7px 9px;
  display: inline-grid;
}

.message-files button:disabled {
  cursor: wait;
  opacity: .65;
}

.message-files button svg {
  grid-row: 1 / 3;
}

.message-files button span {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 650;
  overflow: hidden;
}

.message-files button small {
  color: var(--soft-muted);
  text-transform: capitalize;
  font-size: 8px;
}

.message-retry {
  color: var(--danger);
  cursor: pointer;
  background: none;
  border: 0;
  margin-top: 9px;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
}

.message-delivery {
  color: #999dac;
  text-transform: capitalize;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin: 5px 3px 0;
  font-size: 8px;
  display: flex;
}

.message-delivery svg {
  color: var(--violet);
}

.activity-message {
  animation: none;
}

.composer-wrap {
  z-index: 2;
  background: linear-gradient(to bottom, #fcfcfe00, var(--canvas) 12px);
  width: min(820px, 100% - 48px);
  margin: 0 auto;
  padding: 10px 0 15px;
  position: relative;
}

.composer {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #ffffffeb;
  border: 1px solid #e2e1ef;
  border-radius: 19px;
  flex-direction: column;
  min-height: 116px;
  padding: 14px 14px 12px 17px;
  transition: border .2s, box-shadow .2s;
  display: flex;
  box-shadow: 0 14px 42px #463e9b17, 0 0 0 4px #6d63e806;
}

.composer:focus-within {
  border-color: #c8c3f8;
  box-shadow: 0 16px 48px #463e9b1f, 0 0 0 4px #6d63e80e;
}

.composer textarea {
  resize: none;
  width: 100%;
  min-height: 52px;
  max-height: 150px;
  color: var(--ink);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  padding: 3px 3px 8px;
  font-size: 14px;
  line-height: 1.5;
}

.composer textarea::placeholder {
  color: #999eaa;
}

.composer textarea:disabled {
  cursor: wait;
}

.image-input {
  display: none;
}

.attachment-preview-list {
  gap: 8px;
  padding: 0 2px 10px;
  display: flex;
  overflow-x: auto;
}

.attachment-preview {
  background: #fafaff;
  border: 1px solid #e2e1ef;
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 190px;
  padding: 5px 6px;
  display: flex;
}

.attachment-preview img {
  object-fit: cover;
  border-radius: 7px;
  flex: none;
  width: 31px;
  height: 31px;
}

.attachment-preview span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.attachment-preview > small {
  color: var(--soft-muted);
  text-transform: capitalize;
  font-size: 8px;
}

.attachment-preview-icon {
  background: var(--violet-soft);
  border-radius: 7px;
  flex: none;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
  color: var(--violet-dark) !important;
}

.attachment-preview button {
  width: 23px;
  height: 23px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  flex: none;
  place-items: center;
  display: grid;
}

.attachment-preview button:hover {
  color: var(--violet-dark);
  background: #eeecff;
}

.upload-error {
  color: var(--danger);
  align-items: center;
  gap: 10px;
  margin: -3px 3px 7px;
  font-size: 10px;
  display: flex;
}

.upload-error span {
  margin-right: auto;
}

.upload-error a, .upload-error button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 750;
  text-decoration: underline;
}

.composer-footer {
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  display: flex;
}

.composer-tools {
  align-items: center;
  gap: 8px;
  display: flex;
}

.composer-tools > span {
  color: var(--soft-muted);
  font-size: 10px;
}

.attach-button {
  width: 34px;
  height: 34px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 9px;
  place-items: center;
  display: grid;
}

.attach-button:hover:not(:disabled) {
  color: var(--violet-dark);
  background: var(--violet-soft);
}

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

.send-button {
  color: #fff;
  cursor: pointer;
  background: linear-gradient(145deg, #8178ff, #6256e1);
  border: 0;
  border-radius: 11px;
  flex: none;
  place-items: center;
  width: 37px;
  height: 37px;
  transition: transform .18s, opacity .18s;
  display: grid;
  box-shadow: 0 5px 13px #6356e147;
}

.send-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.send-button:disabled {
  opacity: .32;
  cursor: not-allowed;
  box-shadow: none;
}

.send-button.stop {
  color: var(--danger);
  box-shadow: none;
  background: #fff0f2;
  border: 1px solid #f1d4d8;
}

.disclaimer {
  color: #afb2bb;
  text-align: center;
  margin: 8px 0 0;
  font-size: 9px;
}

.sidebar-scrim {
  display: none;
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: min(300px, 88vw);
    transition: transform .22s;
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-105%);
    box-shadow: 20px 0 60px #20243124;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close, .mobile-menu {
    cursor: pointer;
    place-items: center;
    display: grid;
  }

  .sidebar-scrim {
    z-index: 19;
    opacity: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: #191b2438;
    transition: opacity .22s;
    display: block;
    position: fixed;
    inset: 0;
  }

  .sidebar-scrim.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .workspace {
    grid-template-rows: 68px auto minmax(0, 1fr) auto;
    height: 100dvh;
  }

  .topbar {
    padding: 0 18px;
  }

  .model-pill {
    margin-right: auto;
  }

  .topbar-new-chat, .database-status {
    display: none;
  }

  .welcome {
    margin-top: -5px;
  }
}

@media (max-width: 560px) {
  .top-avatar {
    display: none;
  }

  .welcome {
    width: calc(100% - 32px);
  }

  .welcome h1 {
    font-size: 30px;
  }

  .welcome > p {
    font-size: 13px;
  }

  .starter-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .starter-grid button {
    padding: 11px 13px;
  }

  .message-list, .composer-wrap {
    width: calc(100% - 24px);
  }

  .message-list {
    padding-top: 18px;
  }

  .handoff-notice {
    width: 100%;
  }

  .message-body {
    max-width: calc(100% - 43px);
  }

  .composer-wrap {
    padding-bottom: 8px;
  }

  .composer {
    border-radius: 16px;
    min-height: 104px;
  }

  .composer-tools > span {
    display: none;
  }

  .composer-footer {
    justify-content: flex-end;
  }

  .disclaimer {
    display: none;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox-content {
    max-width: 100%;
    max-height: 94vh;
  }

  .image-lightbox-content img {
    border-radius: 11px;
    max-height: calc(94vh - 34px);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.evaluation-loading, .evaluation-login {
  width: 100%;
  height: 100dvh;
  color: var(--ink);
  background: #f6f6fb;
  place-items: center;
  display: grid;
}

.evaluation-loading {
  color: var(--muted);
  font-size: 13px;
}

.evaluation-login {
  padding: 24px;
}

.evaluation-login form {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  gap: 14px;
  width: min(430px, 100%);
  padding: 34px;
  display: grid;
  box-shadow: 0 24px 70px #312b6b1a;
}

.evaluation-login-mark, .evaluation-panel-mark {
  color: #fff;
  background: linear-gradient(145deg, #8179ff, #5d50dc);
  place-items: center;
  font-weight: 850;
  display: grid;
}

.evaluation-login-mark {
  border-radius: 14px;
  width: 46px;
  height: 46px;
}

.evaluation-login p {
  color: var(--violet);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 3px 0 -10px;
  font-size: 9px;
  font-weight: 850;
}

.evaluation-login h1 {
  letter-spacing: -.035em;
  margin: 0 0 7px;
  font-size: 24px;
}

.evaluation-login label {
  color: var(--muted);
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.evaluation-login input {
  border: 1px solid var(--line);
  font: inherit;
  border-radius: 9px;
  outline: 0;
  padding: 11px 12px;
}

.evaluation-login input:focus {
  border-color: #8b82ed;
  box-shadow: 0 0 0 3px #6d63e81a;
}

.evaluation-login button {
  background: var(--violet);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 11px;
  font-weight: 750;
}

.evaluation-login a {
  color: var(--violet-dark);
  text-align: center;
  font-size: 11px;
}

.evaluation-error {
  color: #a93a49;
  background: #fff6f7;
  border: 1px solid #f0d0d5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  display: block;
}

.evaluation-shell {
  background: var(--canvas);
  grid-template-columns: 300px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  display: grid;
  overflow: hidden;
}

.evaluation-panel {
  z-index: 3;
  border-right: 1px solid var(--line);
  background: #f7f7fb;
  flex-direction: column;
  min-height: 0;
  padding: 18px 13px 13px;
  display: flex;
}

.evaluation-panel > header {
  align-items: center;
  gap: 10px;
  padding: 0 7px 15px;
  display: flex;
}

.evaluation-panel-mark {
  border-radius: 10px;
  width: 35px;
  height: 35px;
}

.evaluation-panel header strong, .evaluation-panel header span {
  display: block;
}

.evaluation-panel header strong {
  font-size: 12px;
}

.evaluation-panel header span {
  color: var(--soft-muted);
  margin-top: 2px;
  font-size: 9px;
}

.evaluation-overview {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 9px;
  display: grid;
}

.evaluation-overview div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
}

.evaluation-overview strong, .evaluation-overview span {
  display: block;
}

.evaluation-overview strong {
  font-size: 16px;
}

.evaluation-overview span {
  color: var(--soft-muted);
  font-size: 8px;
}

.evaluation-run-state {
  color: var(--muted);
  text-transform: uppercase;
  align-items: center;
  gap: 7px;
  margin: 3px 4px 10px;
  font-size: 9px;
  font-weight: 750;
  display: flex;
}

.state-dot {
  background: #8e93a0;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.state-dot.running {
  background: #42b883;
  box-shadow: 0 0 0 3px #42b8831f;
}

.state-dot.paused, .state-dot.pause_requested {
  background: #d4983f;
}

.state-dot.completed_with_failures, .state-dot.failed {
  background: var(--danger);
  box-shadow: 0 0 0 3px #d94d611f;
}

.evaluation-case-list {
  flex: 1;
  align-content: start;
  gap: 4px;
  min-height: 0;
  display: grid;
  overflow-y: auto;
}

.evaluation-case-list button {
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  display: grid;
}

.evaluation-case-list button:hover {
  background: #fff;
}

.evaluation-case-list button.selected {
  background: var(--violet-soft);
  border-color: #dad6fa;
}

.evaluation-case-list button > span {
  color: #747987;
  background: #ebeaf2;
  border-radius: 7px;
  place-items: center;
  width: 21px;
  height: 21px;
  font-size: 8px;
  font-weight: 800;
  display: grid;
}

.evaluation-case-list strong, .evaluation-case-list small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.evaluation-case-list strong {
  font-size: 10px;
}

.evaluation-case-list small {
  color: #9296a1;
  margin-top: 3px;
  font-size: 8px;
}

.evaluation-case-list em {
  color: var(--violet-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.evaluation-controls {
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 10px;
  display: grid;
}

.evaluation-controls button {
  color: #575d69;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dedde8;
  border-radius: 8px;
  padding: 8px;
  font-size: 9px;
  font-weight: 800;
}

.evaluation-controls button:first-child {
  color: var(--violet-dark);
  background: #efedff;
  border-color: #d8d4fa;
  grid-column: 1 / -1;
}

.evaluation-controls .danger {
  color: var(--danger);
  background: #fff5f6;
  border-color: #f0d7db;
}

.evaluation-panel > footer {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding: 12px 6px 2px;
}

.evaluation-panel > footer a {
  color: var(--violet-dark);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.evaluation-workspace {
  grid-template-rows: 80px minmax(0, 1fr);
}

.evaluation-topbar {
  z-index: 2;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 34px;
  display: flex;
}

.evaluation-topbar p {
  color: var(--violet);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 3px;
  font-size: 8px;
  font-weight: 850;
}

.evaluation-topbar h1 {
  letter-spacing: -.03em;
  margin: 0;
  font-size: 18px;
}

.evaluation-identity {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 7px 11px;
}

.evaluation-identity span, .evaluation-identity strong {
  display: block;
}

.evaluation-identity span {
  color: var(--soft-muted);
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
}

.evaluation-identity strong {
  margin-top: 2px;
  font-size: 10px;
}

.evaluation-message-list {
  padding-top: 22px;
}

.evaluation-waiting {
  min-height: 180px;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  display: flex;
}

.evaluation-waiting span {
  border: 2px solid #cfccf5;
  border-top-color: var(--violet);
  border-radius: 50%;
  width: 13px;
  height: 13px;
  animation: .8s linear infinite spin;
}

.evaluation-score-card {
  background: linear-gradient(135deg, #f3f1ff, #fff);
  border: 1px solid #d9d5fa;
  border-radius: 18px;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding: 22px;
  display: grid;
}

.evaluation-score-number {
  justify-content: center;
  align-items: baseline;
  display: flex;
}

.evaluation-score-number strong {
  color: var(--violet-dark);
  letter-spacing: -.06em;
  font-size: 43px;
}

.evaluation-score-number span {
  color: var(--soft-muted);
  font-size: 11px;
}

.evaluation-score-card p {
  color: var(--violet);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 8px;
  font-weight: 850;
}

.evaluation-score-card h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.evaluation-score-card small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 9px;
  display: block;
}

.evaluation-findings {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  display: grid;
}

.evaluation-findings section {
  background: #ffffffbd;
  border-radius: 10px;
  align-content: start;
  gap: 5px;
  padding: 10px;
  display: grid;
}

.evaluation-findings strong {
  font-size: 9px;
}

.evaluation-findings span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.evaluation-score-card button {
  background: var(--violet);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 800;
}

.evaluation-terminal {
  background: #fffdfa;
  border: 1px solid #eee0c9;
  border-radius: 12px;
  gap: 4px;
  margin-top: 25px;
  padding: 14px;
  display: grid;
}

.evaluation-terminal strong {
  text-transform: capitalize;
  font-size: 11px;
}

.evaluation-terminal span {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 820px) {
  .evaluation-shell {
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .evaluation-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 260px;
  }

  .evaluation-case-list {
    display: flex;
    overflow-x: auto;
  }

  .evaluation-case-list button {
    min-width: 230px;
  }

  .evaluation-panel > footer {
    display: none;
  }

  .evaluation-workspace {
    min-height: 650px;
  }

  .evaluation-topbar {
    padding: 0 18px;
  }

  .evaluation-score-card, .evaluation-findings {
    grid-template-columns: 1fr;
  }
}

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