@font-face {
  font-family: InterFallback;
  src: local("Inter"), local("Segoe UI");
}
* {
  box-sizing: border-box;
}
html {
  font-family: InterFallback, Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  --bg: #181a19;
  --sidebar: #121413;
  --surface: #202321;
  --elevated: #272b28;
  --border: #303530;
  --text: #edf0e9;
  --muted: #929a92;
  --dim: #626c63;
  --accent: #b4edb8;
  --accent-text: #1b3722;
  --hover: #282d28;
  --danger: #f8a79e;
  --shadow: 0 18px 70px #0005;
  --input: #171b18;
}
html[data-theme="light"] body {
  color-scheme: light;
  --bg: #fafbf7;
  --sidebar: #eef1eb;
  --surface: #fff;
  --elevated: #e9eee5;
  --border: #dbe1d6;
  --text: #263228;
  --muted: #687368;
  --dim: #7e897e;
  --accent: #316e40;
  --accent-text: #fff;
  --hover: #e5ebe1;
  --danger: #a3332c;
  --shadow: 0 18px 70px #25342516;
  --input: #f7f9f3;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
input,
textarea,
select {
  color: var(--text);
}
input,
textarea {
  min-width: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    color 0.15s;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 550;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
}
.muted,
.fine {
  color: var(--muted);
}
.fine {
  font-size: 12px;
  line-height: 1.65;
}
.error {
  color: var(--danger);
  font-size: 13px;
  white-space: pre-wrap;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--muted);
}
.workspace {
  height: 100dvh;
  display: flex;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 72px;
  padding: 0 5px;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 600;
}
.tag {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 5px;
  font-weight: 600;
  color: var(--muted);
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 20px;
  border-radius: 8px;
  color: var(--muted);
}
.icon:hover {
  color: var(--text);
  background: var(--hover);
}
aside {
  width: 270px;
  flex-shrink: 0;
  background: var(--sidebar);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  transition: margin 0.2s;
}
.brand .sidebar-toggle {
  margin-left: auto;
  font-size: 17px;
}
.new-chat {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #b4edb82e;
  background: #b4edb80c;
  border-radius: 9px;
  font-weight: 550;
  margin: 9px 0 19px;
}
.new-chat:hover {
  background: var(--hover);
}
.new-chat > span {
  font-size: 23px;
  color: var(--accent);
}
kbd {
  font: 10px inherit;
  font-size: 10px;
  color: var(--dim);
  margin-left: auto;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  height: 37px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  margin-bottom: 24px;
}
.search > span {
  font-size: 24px;
}
.search input {
  background: none;
  border: 0;
  width: 100%;
  font-size: 12px;
  outline: none;
}
.nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--dim);
  padding-left: 9px;
  margin-bottom: 8px;
}
.nav-label .icon {
  font-size: 15px;
  width: 25px;
  height: 25px;
}
.history {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 20px;
}
.history-item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 3px 0;
  border-radius: 7px;
}
.history-item.active {
  background: var(--hover);
}
.history-item .history-open {
  display: block;
  text-align: left;
  padding: 11px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}
.history-item.active .history-open {
  color: var(--text);
}
.history-item:hover {
  background: var(--hover);
}
.history-menu {
  position: absolute;
  right: 3px;
  opacity: 0;
  background: var(--hover);
  font-size: 16px;
}
.history-item:hover .history-menu,
.history-menu:focus-visible {
  opacity: 1;
}
.history-empty {
  padding: 12px 9px;
  line-height: 1.7;
  font-size: 12px;
  color: var(--dim);
}
.sidebar-bottom {
  padding: 15px 0 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 9px;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  border-radius: 7px;
}
.nav-link:hover {
  background: var(--hover);
  color: var(--text);
}
.nav-link > span:first-child {
  font-size: 18px;
  width: 18px;
  text-align: center;
}
.count {
  margin-left: auto;
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.sidebar-rule {
  height: 1px;
  background: var(--border);
  margin: 15px 4px;
}
.profile {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  gap: 11px;
  padding: 6px 4px;
}
.profile > span:last-child {
  margin-left: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
}
.profile strong {
  font-weight: 550;
  font-size: 12px;
  display: block;
}
.profile small {
  font-size: 10px;
  color: var(--dim);
  display: block;
  margin-top: 4px;
}
main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.topbar {
  height: 73px;
  min-height: 73px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
}
.model-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.model-control select {
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 550;
  max-width: 180px;
  color: var(--text);
  padding: 6px 0;
}
.model-control option {
  background: var(--surface);
}
.model-control input {
  background: transparent;
  border: 0;
  font-size: 12px;
  color: var(--muted);
  width: 170px;
}
.divider {
  height: 15px;
  width: 1px;
  background: var(--border);
}
.save-status {
  margin-left: auto;
  font-size: 10px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.save-status i,
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.topbar > .icon {
  font-size: 20px;
}
#expand-sidebar {
  display: none;
}
.sidebar-collapsed aside {
  margin-left: -270px;
}
.sidebar-collapsed #expand-sidebar {
  display: inline-flex;
}
.chat-scroll {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.welcome {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(50px, 12vh, 140px) 38px 45px;
  text-align: center;
}
.welcome-symbol {
  margin-bottom: 28px;
}
.welcome-symbol img {
  border-radius: 16px;
}
.welcome .eyebrow {
  font-size: 9px;
  letter-spacing: 2.2px;
  margin-bottom: 18px;
}
.welcome h1 {
  font-size: clamp(30px, 3.2vw, 43px);
  letter-spacing: -1.8px;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 450;
}
.welcome > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 42px;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: left;
}
.suggestions button {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 17px 20px;
  position: relative;
  min-height: 130px;
}
.suggestions button:hover {
  background: var(--hover);
  border-color: var(--dim);
}
.suggestion-icon {
  display: block;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 21px;
}
.suggestions strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}
.suggestions small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.card-arrow {
  position: absolute;
  right: 15px;
  top: 18px;
  color: var(--dim);
  font-size: 17px;
}
.setup-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.text-button {
  padding: 4px 0;
  color: var(--accent);
  font-size: 12px;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.composer-area {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 36px 20px;
}
.composer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px 10px;
  box-shadow: 0 4px 20px #00000008;
}
.composer:focus-within {
  border-color: var(--dim);
}
.composer textarea {
  width: 100%;
  resize: none;
  background: none;
  border: 0;
  outline: none;
  display: block;
  min-height: 38px;
  max-height: 200px;
  padding: 3px 5px 8px;
  line-height: 1.6;
  font-size: 13px;
}
.composer textarea::placeholder {
  color: var(--dim);
}
.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.composer-toolbar > .icon {
  font-size: 22px;
}
.composer-tool {
  font-size: 11px;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.composer-tool:hover {
  background: var(--hover);
}
.composer-tool span {
  font-size: 17px;
}
.composer-spacer {
  flex: 1;
}
.composer-model {
  font-size: 10px;
  color: var(--dim);
  margin-right: 9px;
}
.send,
.stop {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 23px;
}
.stop {
  font-size: 13px;
}
.composer-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 9px;
  color: var(--dim);
  gap: 10px;
}
.keyboard-tip {
  white-space: nowrap;
}
.keyboard-tip span {
  margin: 0 7px;
}
.thread {
  max-width: 850px;
  margin: 0 auto;
  padding: 26px 36px 10px;
}
.message {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--border);
}
.message-header {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  margin-bottom: 14px;
}
.message-header img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}
.message-header strong {
  font-weight: 600;
}
.message-header small {
  color: var(--dim);
  font-size: 10px;
  margin-left: auto;
}
.message.user .message-body {
  white-space: pre-wrap;
  color: var(--text);
}
.message.user {
  padding-left: 17px;
  border-left: 2px solid var(--border);
  margin: 10px 0 5px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 0;
}
.message-body {
  line-height: 1.85;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.message-body p:last-child {
  margin-bottom: 0;
}
.message-body h1 {
  font-size: 25px;
}
.message-body h2 {
  font-size: 21px;
}
.message-body h3 {
  font-size: 17px;
}
.message-body pre {
  overflow: auto;
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 17px 0;
  padding: 35px 16px 15px;
  position: relative;
  font-size: 12px;
  line-height: 1.7;
}
.message-body pre code.hljs {
  padding: 0;
  background: none;
}
.message-body code:not(pre code) {
  background: var(--elevated);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}
.copy-code {
  position: absolute;
  top: 7px;
  right: 10px;
  font-size: 10px;
  color: var(--muted);
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.message-body table {
  border-collapse: collapse;
  max-width: 100%;
  display: block;
  overflow: auto;
  font-size: 12px;
}
.message-body td,
.message-body th {
  border: 1px solid var(--border);
  padding: 8px 12px;
}
.message-body blockquote {
  border-left: 3px solid var(--dim);
  margin-left: 0;
  padding-left: 17px;
  color: var(--muted);
}
.message-actions {
  display: flex;
  gap: 4px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.message-actions button {
  color: var(--dim);
  font-size: 10px;
  padding: 5px 7px;
  border-radius: 5px;
}
.message-actions button:hover {
  background: var(--hover);
  color: var(--text);
}
.message-actions .usage {
  margin-left: auto;
  font-size: 10px;
  color: var(--dim);
  align-self: center;
}
.message-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 12px;
}
.generating::after {
  content: " ▋";
  color: var(--accent);
}
.message-files {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.file-preview {
  display: block;
  max-width: 100%;
  max-height: 400px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.file-link {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 11px;
}
.attachment-tray {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  max-width: 100%;
}
.attachment-chip span {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-chip img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
}
.attachment-chip button {
  font-size: 17px;
  color: var(--muted);
}
.context-note {
  font-size: 10px;
  color: var(--muted);
  padding: 0 4px 10px;
}
.offline {
  padding: 10px 24px;
  background: var(--elevated);
  font-size: 12px;
  color: var(--danger);
}
dialog {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow);
  width: min(660px, calc(100% - 28px));
  padding: 27px;
  max-height: 87dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #050b08a8;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-heading .eyebrow {
  margin-bottom: 9px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading .icon {
  font-size: 27px;
}
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
label input:not([type="checkbox"]),
label select,
label textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 7px;
  color: var(--text);
  font-size: 13px;
}
label textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.7;
}
label select {
  appearance: auto;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.check input {
  accent-color: var(--accent);
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 550;
  min-height: 38px;
}
.primary {
  background: var(--accent);
  color: var(--accent-text);
}
.primary:hover {
  filter: brightness(0.94);
}
.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.secondary:hover {
  background: var(--hover);
}
.danger {
  background: var(--danger);
  color: var(--bg);
}
.button-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}
.button-row .push {
  margin-left: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 17px;
  border-radius: 10px;
  margin: 12px 0;
}
.section-card h3 {
  margin-bottom: 7px;
}
.section-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.section-card .button-row {
  margin-top: 10px;
}
.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.pill {
  font-size: 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--muted);
}
.section-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 25px 0;
}
.empty-state {
  padding: 25px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--elevated);
  color: var(--text);
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: min(580px, 90vw);
  line-height: 1.6;
}
.auth-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 40px;
}
.auth-card {
  max-width: 360px;
  width: 100%;
}
.auth-card h1 {
  font-size: 36px;
  letter-spacing: -1.5px;
  line-height: 1.23;
  margin: 18px 0;
}
.auth-card > p.muted {
  font-size: 12px;
  margin-bottom: 30px;
}
.last-login-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 14px;
}
.last-login-row[hidden] {
  display: none;
}
.last-login-fill {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}
.last-login-fill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.last-login-forget {
  flex: none;
  padding: 7px 2px;
  color: var(--dim);
  font-size: 11px;
}
.last-login-forget:hover {
  color: var(--text);
}
.auth-card > .auth-hello-note {
  margin: 10px 0;
  font-size: 11px;
  text-align: left;
}
.auth-card .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 5px;
}
.auth-card > .fine {
  margin-top: 20px;
  text-align: center;
}
.auth-card > .text-button {
  display: block;
  margin: 15px auto;
}
.auth-footer {
  font-size: 10px;
  letter-spacing: 0.7px;
  color: var(--dim);
  margin-top: 45px;
}
.drag-over .composer {
  border: 2px dashed var(--accent);
}
.loading-state {
  font-size: 12px;
  color: var(--muted);
  padding: 35px 0;
  text-align: center;
}
@media (min-width: 1450px) {
  .welcome {
    padding-top: 15vh;
  }
  .composer-area {
    padding-bottom: 27px;
  }
  .suggestions {
    gap: 15px;
  }
  .suggestions button {
    min-height: 144px;
  }
}
@media (max-width: 1050px) {
  aside {
    width: 240px;
  }
  .sidebar-collapsed aside {
    margin-left: -240px;
  }
  .topbar {
    padding: 0 18px;
    gap: 7px;
  }
  .model-control {
    gap: 8px;
  }
  .model-control input {
    width: 130px;
  }
  .save-status {
    display: none;
  }
  .topbar .model-control {
    margin-right: auto;
  }
  .composer-model {
    display: none;
  }
  .keyboard-tip {
    display: none;
  }
  .composer-caption {
    justify-content: center;
  }
  .welcome {
    padding-left: 28px;
    padding-right: 28px;
  }
  .suggestions button {
    padding: 15px 12px;
  }
  .suggestions small {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  aside {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    width: 270px;
    margin-left: -270px !important;
    box-shadow: var(--shadow);
  }
  .mobile-sidebar-open aside {
    margin-left: 0 !important;
  }
  .mobile-sidebar-open #shade {
    display: block !important;
    position: fixed;
    inset: 0;
    background: #0008;
    z-index: 25;
  }
  #expand-sidebar {
    display: inline-flex;
  }
  .topbar {
    height: 61px;
    min-height: 61px;
    padding: 0 10px;
    gap: 5px;
  }
  .model-control select {
    max-width: 110px;
    font-size: 12px;
  }
  .model-control input {
    width: 110px;
    font-size: 11px;
  }
  .model-control .divider {
    display: none;
  }
  .topbar > .icon:last-child {
    display: none;
  }
  .welcome {
    padding: 65px 20px 28px;
  }
  .welcome h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
  }
  .welcome > p {
    font-size: 12px;
    margin-bottom: 30px;
  }
  .suggestions {
    gap: 8px;
  }
  .suggestions button {
    padding: 14px 11px;
    min-height: 128px;
    border-radius: 10px;
  }
  .suggestions strong {
    font-size: 11px;
  }
  .suggestions small {
    font-size: 9px;
    line-height: 1.6;
  }
  .suggestion-icon {
    font-size: 20px;
    margin-bottom: 17px;
  }
  .card-arrow {
    display: none;
  }
  .setup-hint {
    flex-wrap: wrap;
    font-size: 10px;
  }
  .composer-area {
    padding: 10px 12px 12px;
  }
  .composer-caption {
    font-size: 8px;
    text-align: center;
  }
  .thread {
    padding: 15px 20px;
  }
  .message-body {
    font-size: 13px;
  }
  .composer textarea {
    font-size: 14px;
  }
  .composer {
    border-radius: 13px;
  }
  .auth-screen {
    padding: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 21px;
  }
  .message-actions button {
    font-size: 11px;
    padding: 7px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.model-catalog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.model-catalog-item strong {
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.model-catalog-item p {
  flex-basis: 100%;
}

.workspace-title {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}
.composer-toolbar {
  flex-wrap: wrap;
}
.composer-controls {
  display: grid;
  grid-template-columns: minmax(75px, 1fr) minmax(90px, 1.4fr) minmax(
      70px,
      1fr
    ) auto;
  align-items: end;
  gap: 6px;
  flex: 1 1 360px;
  min-width: 0;
}
.composer-controls label {
  min-width: 0;
  margin: 0;
  font-size: 9px;
  color: var(--muted);
}
.composer-controls select,
.composer-controls input {
  min-width: 0;
  width: 100%;
  font-size: 11px;
  padding: 7px 5px;
  border-radius: 7px;
  background: var(--input);
  border: 1px solid var(--border);
  color: var(--text);
}
.composer-controls input {
  grid-column: 1 / -1;
}
.composer-controls > .icon {
  grid-column: 4;
}
.composer-toolbar .send,
.composer-toolbar .stop {
  flex-shrink: 0;
  align-self: end;
}
@media (max-width: 650px) {
  .composer-spacer {
    display: none;
  }
  .composer-controls {
    order: 2;
    flex-basis: calc(100% - 42px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) auto;
  }
  .composer-toolbar .send,
  .composer-toolbar .stop {
    order: 3;
  }
}
