:root {
  color-scheme: dark;
  --bg: #101311;
  --bg-panel: #171c18;
  --bg-elevated: #202821;
  --text: #edf1e8;
  --muted: #9fa89b;
  --line: rgba(237, 241, 232, 0.12);
  --green: #7bc7a1;
  --green-deep: #2e6b57;
  --amber: #c58a51;
  --coral: #d27a68;
  --ink: #0b0d0c;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(123, 199, 161, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(197, 138, 81, 0.1), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 42px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: none;
}

@media (pointer: coarse) {
  button {
    cursor: pointer;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 160ms ease,
    width 160ms ease,
    height 160ms ease,
    border-color 160ms ease;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(123, 199, 161, 0.5);
  border-radius: 999px;
  mix-blend-mode: screen;
}

body.cursor-ready {
  cursor: none;
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
  opacity: 1;
}

body.cursor-quiet {
  cursor: auto;
}

body.cursor-quiet button {
  cursor: pointer;
}

body.cursor-quiet .cursor-dot,
body.cursor-quiet .cursor-ring {
  display: none;
}

body.cursor-active .cursor-ring {
  width: 42px;
  height: 42px;
  border-color: rgba(197, 138, 81, 0.72);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  width: min(1440px, 100vw);
  height: 100vh;
  margin: 0 auto;
  padding: 14px;
}

.model-panel,
.conversation-wrap {
  min-height: 0;
  border: 1px solid var(--line);
  background: rgba(16, 19, 17, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.model-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(123, 199, 161, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(123, 199, 161, 0.2), rgba(197, 138, 81, 0.16)),
    #121714;
}

.brand-mark span {
  position: absolute;
  width: 21px;
  height: 2px;
  border-radius: 4px;
  background: var(--text);
  transform-origin: center;
}

.brand-mark span:nth-child(1) {
  transform: rotate(0deg);
}

.brand-mark span:nth-child(2) {
  transform: rotate(60deg);
}

.brand-mark span:nth-child(3) {
  transform: rotate(120deg);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  font-weight: 720;
  line-height: 1.1;
}

.brand-block p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.provider-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.provider-button {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  transition:
    color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.provider-button.is-active {
  background: rgba(123, 199, 161, 0.16);
  color: var(--text);
}

.provider-button.is-missing::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--coral);
}

.provider-button:hover {
  transform: translateY(-1px);
}

.panel-section {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.model-list {
  display: flex;
  min-height: 0;
  max-height: 42vh;
  flex-direction: column;
  gap: 9px;
  overflow: auto;
  padding-right: 2px;
}

.model-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  width: 100%;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(123, 199, 161, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 199, 161, 0.42);
}

.model-card.is-active {
  border-color: rgba(123, 199, 161, 0.72);
  background-color: rgba(123, 199, 161, 0.11);
}

.model-card-inner {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.model-name {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(237, 241, 232, 0.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.chip.good {
  border-color: rgba(123, 199, 161, 0.22);
  color: #b9e5cf;
}

.chip.warn {
  border-color: rgba(210, 122, 104, 0.25);
  color: #efb8ad;
}

.controls {
  margin-top: auto;
}

.range-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.icon-button,
.soft-button,
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
}

.icon-button svg,
.soft-button svg,
.send-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.soft-button {
  min-height: 42px;
  gap: 9px;
  padding: 0 12px;
  font-size: 13px;
}

.soft-button.is-off {
  color: var(--muted);
}

.soft-button.danger:hover {
  border-color: rgba(210, 122, 104, 0.45);
  color: #ffd2cb;
}

.icon-button:hover,
.soft-button:hover,
.send-button:hover {
  border-color: rgba(123, 199, 161, 0.45);
  background: rgba(123, 199, 161, 0.1);
  transform: translateY(-1px);
}

.conversation-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.conversation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 28, 24, 0.84);
}

.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(123, 199, 161, 0.22);
  border-radius: 999px;
  color: #c4ead6;
  background: rgba(123, 199, 161, 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.status-pill.is-muted {
  border-color: rgba(237, 241, 232, 0.1);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(123, 199, 161, 0.08);
}

.chat-surface {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

.welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.welcome-lines {
  display: grid;
  gap: 5px;
  width: 46px;
  flex: 0 0 46px;
}

.welcome-lines span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(123, 199, 161, 0.46);
}

.welcome-lines span:nth-child(2) {
  width: 64%;
  background: rgba(197, 138, 81, 0.55);
}

.welcome-lines span:nth-child(3) {
  width: 82%;
  background: rgba(210, 122, 104, 0.45);
}

.welcome-title {
  font-size: 16px;
  font-weight: 720;
}

.welcome-copy {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: min(760px, 100%);
}

.message.user {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 34px;
}

.message.user .avatar {
  grid-column: 2;
}

.message.user .bubble {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  background: rgba(123, 199, 161, 0.14);
}

.message.assistant .bubble {
  background: rgba(255, 255, 255, 0.048);
}

.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(123, 199, 161, 0.28), rgba(197, 138, 81, 0.2)),
    #171c18;
}

.message.user .avatar {
  background:
    linear-gradient(135deg, rgba(197, 138, 81, 0.36), rgba(210, 122, 104, 0.22)),
    #171c18;
}

.bubble {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.message-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.68;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-text.markdown-body {
  white-space: normal;
}

.markdown-body > *:first-child {
  margin-top: 0;
}

.markdown-body > *:last-child {
  margin-bottom: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre,
.markdown-body .table-scroll {
  margin: 0 0 12px;
}

.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 14px 0 8px;
  color: var(--text);
  font-weight: 760;
  line-height: 1.35;
}

.markdown-body h3 {
  font-size: 17px;
}

.markdown-body h4 {
  font-size: 15px;
}

.markdown-body h5,
.markdown-body h6 {
  font-size: 14px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 22px;
}

.markdown-body li {
  margin: 4px 0;
}

.markdown-body blockquote {
  border-left: 3px solid rgba(123, 199, 161, 0.46);
  padding: 8px 11px;
  border-radius: 0 6px 6px 0;
  background: rgba(123, 199, 161, 0.06);
  color: #d9e4d6;
}

.markdown-body code {
  border: 1px solid rgba(237, 241, 232, 0.1);
  border-radius: 5px;
  padding: 1px 5px;
  background: rgba(11, 13, 12, 0.42);
  color: #d9f2e4;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.markdown-body pre {
  overflow: auto;
  border: 1px solid rgba(237, 241, 232, 0.11);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(11, 13, 12, 0.6);
}

.markdown-body pre code {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: #e8f3ec;
  white-space: pre;
}

.markdown-body pre code[data-language]::before {
  content: attr(data-language);
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.markdown-body .table-scroll {
  overflow-x: auto;
}

.markdown-body table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: 13px;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid rgba(237, 241, 232, 0.1);
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.markdown-body th {
  background: rgba(123, 199, 161, 0.08);
  color: #dff2e7;
  font-weight: 720;
}

.message-text a {
  color: #a9d8bf;
}

.message-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.message-images:empty {
  display: none;
}

.message-images img {
  width: 118px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.message-meta {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--muted);
  animation: typing 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 120ms;
}

.typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes typing {
  0%,
  80%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.composer {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(23, 28, 24, 0.9);
}

.drop-hint {
  position: absolute;
  inset: 12px;
  z-index: 4;
  display: none;
  place-items: center;
  border: 1px dashed rgba(123, 199, 161, 0.58);
  border-radius: var(--radius);
  background: rgba(16, 19, 17, 0.86);
  color: #cfebdc;
  font-weight: 720;
}

.composer.is-dropping .drop-hint {
  display: grid;
}

.preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.preview-card {
  position: relative;
  width: 112px;
  height: 78px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-preview {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 13, 12, 0.78);
  color: var(--text);
}

.input-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

textarea {
  display: block;
  width: 100%;
  max-height: 180px;
  min-height: 42px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  line-height: 1.5;
  transition:
    border-color 170ms ease,
    background 170ms ease;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  transition:
    border-color 170ms ease,
    background 170ms ease;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 12px) 18px / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.045);
}

select option {
  background: var(--bg-elevated);
  color: var(--text);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: rgba(123, 199, 161, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #7f887e;
}

textarea:focus {
  border-color: rgba(123, 199, 161, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

textarea::placeholder {
  color: #7f887e;
}

.send-button {
  min-width: 92px;
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  background: rgba(123, 199, 161, 0.18);
  color: #f5fff8;
}

.send-button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(210, 122, 104, 0.28);
  border-radius: var(--radius);
  background: rgba(32, 40, 33, 0.96);
  color: #ffe4de;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.45;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 13, 12, 0.68);
  backdrop-filter: blur(14px);
}

.settings-modal[hidden] {
  display: none;
}

.settings-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 28, 24, 0.98);
  box-shadow: var(--shadow);
}

.settings-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

h3 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.settings-form {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 16px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.field textarea {
  min-height: 116px;
  max-height: 260px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.config-providers {
  display: grid;
  gap: 12px;
}

.config-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.config-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.config-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
}

.config-card textarea {
  min-height: 96px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    color 170ms ease;
}

.mini-button:hover {
  border-color: rgba(210, 122, 104, 0.45);
  color: #ffd2cb;
  transform: translateY(-1px);
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
}

.toggle-field input {
  width: 44px;
  height: 24px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: none;
  transition:
    border-color 170ms ease,
    background 170ms ease;
}

.toggle-field input::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px;
  border-radius: 999px;
  background: var(--muted);
  transition:
    transform 170ms ease,
    background 170ms ease;
}

.toggle-field input:checked {
  border-color: rgba(123, 199, 161, 0.42);
  background: rgba(123, 199, 161, 0.14);
}

.toggle-field input:checked::before {
  transform: translateX(20px);
  background: var(--green);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(237, 241, 232, 0.2);
  background-clip: padding-box;
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .model-panel {
    gap: 14px;
  }

  .model-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .conversation-wrap {
    min-height: 72vh;
  }

  .conversation-top {
    align-items: flex-start;
  }

  .input-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .send-button {
    grid-column: 1 / -1;
  }

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

  .settings-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .app-shell {
    gap: 10px;
    padding: 10px;
  }

  .model-panel,
  .chat-surface,
  .composer {
    padding: 12px;
  }

  .model-list {
    grid-template-columns: 1fr;
  }

  .conversation-top {
    flex-direction: column;
  }

  .welcome {
    align-items: flex-start;
  }

  .message,
  .message.user {
    grid-template-columns: 1fr;
  }

  .avatar {
    display: none;
  }

  .message.user .bubble {
    grid-column: 1;
  }

  .settings-modal {
    padding: 10px;
  }

  .settings-panel {
    max-height: calc(100vh - 20px);
  }

  .key-row {
    grid-template-columns: 1fr;
  }
}
