/* src/styles.css */
.codex-chat-app .codex-chat-app {
  box-sizing: border-box;
}
.codex-chat-app *,
.codex-chat-app *:before,
.codex-chat-app *:after {
  box-sizing: border-box;
}
.codex-chat-app {
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px minmax(0, 900px);
  justify-content: center;
  background: #08121f;
  color: #edf4ff;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  border-radius: 12px;
  position: relative;
  text-align: left;
}
.codex-chat-sidebar {
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  border-right: 1px solid #20344e;
  background: #0a1625;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}
.codex-chat-app .new,
.codex-chat-app .settingsBtn,
.codex-chat-save {
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background: #236fc1;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.codex-chat-sessionList {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  overflow-y: auto;
}
.codex-chat-settingsBtn {
  width: 100%;
  align-self: end;
}
.codex-chat-session {
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 9px;
  text-align: left;
  color: #bfcede;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-chat-app .session small {
  display: block;
  color: #7189a2;
  margin-top: 3px;
  font-size: 10px;
}
.codex-chat-activeSession {
  background: #173859;
  color: #fff;
}
.codex-chat-settingsBtn {
  margin-top: auto;
  background: #142943;
  color: #cce1f7;
}
.codex-chat-shell {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0d1a2b;
}
.codex-chat-app header {
  padding: 14px 18px;
  border-bottom: 1px solid #20344e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.codex-chat-app header b {
  display: block;
  font-size: 16px;
}
.codex-chat-app header span {
  font-size: 12px;
  color: #9db1c8;
}
.codex-chat-headerActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.codex-chat-app .modelBtn,
.codex-chat-sessionsBtn {
  border: 1px solid #35658f;
  border-radius: 7px;
  background: #122b45;
  color: #dceeff;
  padding: 7px 10px;
  font: 700 12px ui-sans-serif, system-ui;
  cursor: pointer;
  white-space: nowrap;
}
.codex-chat-sessionsBtn {
  display: none;
}
.codex-chat-sessionRow {
  display: flex;
  gap: 4px;
  min-width: 0;
}
.codex-chat-app .sessionRow .codex-chat-session {
  flex: 1;
  min-width: 0;
}
.codex-chat-sessionActions {
  display: flex;
  align-items: center;
}
.codex-chat-app .sessionActions button {
  border: 0;
  background: transparent;
  color: #9db1c8;
  padding: 5px;
  cursor: pointer;
}
.codex-chat-sessionDrawer {
  display: none;
}
.codex-chat-status {
  color: #5ee0a1 !important;
}
.codex-chat-messages {
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.codex-chat-welcome {
  margin: auto;
  max-width: 530px;
  text-align: center;
  color: #b6c8db;
}
.codex-chat-app .welcome h1 {
  color: #fff;
  font-size: 26px;
}
.codex-chat-app .welcome code,
.codex-chat-app pre {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.codex-chat-app article {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #29415e;
}
.codex-chat-user {
  align-self: flex-end;
  background: #15477f;
}
.codex-chat-assistant {
  align-self: flex-start;
  background: #13243a;
}
.codex-chat-app label {
  display: block;
  margin-bottom: 8px;
  color: #9db1c8;
  font-size: 12px;
}
.codex-chat-app pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
}
.codex-chat-markdown {
  color: #edf4ff;
  font-size: 15px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.codex-chat-app .markdown > *:first-child {
  margin-top: 0;
}
.codex-chat-app .markdown > *:last-child {
  margin-bottom: 0;
}
.codex-chat-app .markdown h1,
.codex-chat-app .markdown h2,
.codex-chat-app .markdown h3 {
  color: #fff;
  line-height: 1.25;
  margin: 1.2em 0 .45em;
}
.codex-chat-app .markdown h1 {
  font-size: 1.35em;
}
.codex-chat-app .markdown h2 {
  font-size: 1.18em;
}
.codex-chat-app .markdown h3 {
  font-size: 1.05em;
}
.codex-chat-app .markdown p {
  margin: .65em 0;
}
.codex-chat-app .markdown ul,
.codex-chat-app .markdown ol {
  padding-left: 1.35em;
}
.codex-chat-app .markdown strong {
  color: #fff;
}
.codex-chat-app .markdown code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: .88em;
  background: #091523;
  border: 1px solid #2b4666;
  padding: .12em .32em;
  border-radius: 4px;
}
.codex-chat-app .markdown pre {
  background: #07111d;
  border: 1px solid #2b4666;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
}
.codex-chat-progress {
  border-color: #3b618d;
}
.codex-chat-app .progress ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.codex-chat-app .progress li {
  color: #91a9c2;
  font-size: 13px;
}
.codex-chat-app .progress li:before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
  background: #274761;
  color: #b9d6ee;
  font-size: 11px;
}
.codex-chat-app .progress li.active {
  color: #eaf5ff;
}
.codex-chat-app .progress li.active:before {
  content: "\2026";
  background: #2d86d1;
  color: white;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  50% {
    opacity: .5;
  }
}
.codex-chat-composer {
  border-top: 1px solid #20344e;
  background: #0b1727;
}
.codex-chat-modelFooter {
  padding: 5px 14px 0;
  color: #89a3be;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-chat-systemMessage {
  align-self: center;
  max-width: 90%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #172d45;
  color: #9fc4e5;
  font-size: 12px;
}
.codex-chat-app form {
  display: flex;
  gap: 10px;
  padding: 10px 14px 14px;
  background: #0b1727;
}
.codex-chat-app textarea {
  resize: vertical;
  flex: 1;
  border: 1px solid #2b4666;
  background: #07111d;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.codex-chat-app form button {
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #3b89dc;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.codex-chat-app form button:disabled {
  background: #39516b;
  color: #a5b5c5;
  cursor: wait;
}
.codex-chat-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000a;
  padding: 16px;
  overflow: auto;
}
.codex-chat-settings {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  min-width: 0;
  overflow-y: auto;
  border: 1px solid #2b4666;
  background: #102035;
  border-radius: 12px;
  padding: 16px;
}
.codex-chat-app .settings header {
  padding: 0 0 12px;
  margin-bottom: 12px;
}
.codex-chat-app .settings header button {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 24px;
}
.codex-chat-app .settings label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  min-width: 0;
}
.codex-chat-app .settings input,
.codex-chat-app .settings select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #08121f;
  color: #fff;
  border: 1px solid #2b4666;
  border-radius: 7px;
  padding: 9px;
}
.codex-chat-app .settings select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-chat-app .settings p {
  font-size: 12px;
  color: #9db1c8;
}
.codex-chat-catalogStatus {
  display: block;
  color: #89a3be;
  font-size: 11px;
  margin-top: 4px;
}
@media (max-width:640px) {
  .codex-chat-app {
    grid-template-columns: 1fr;
  }
  .codex-chat-sidebar {
    display: none;
  }
  .codex-chat-sessionsBtn {
    display: inline-flex;
  }
  .codex-chat-status {
    display: none;
  }
  .codex-chat-messages {
    padding: 12px;
  }
  .codex-chat-app article {
    max-width: 96%;
  }
  .codex-chat-modal {
    align-items: end;
    padding: 0;
  }
  .codex-chat-settings {
    width: 100%;
    max-height: 82dvh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding: 18px 16px 28px;
  }
  .codex-chat-sessionDrawer {
    display: block;
    position: fixed;
    inset: 0;
    background: #000a;
    z-index: 20;
  }
  .codex-chat-sessionDrawer section {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    padding: 16px;
    background: #0a1625;
    border-right: 1px solid #29415e;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
  }
  .codex-chat-sessionDrawer header {
    padding: 0 0 12px;
  }
  .codex-chat-sessionDrawer header button {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 24px;
  }
}
/*# sourceMappingURL=index.css.map */
