:root {
  --primary: oklch(0.48 0.18 340);
  --primary-hover: oklch(0.42 0.18 340);
  --primary-soft: oklch(0.95 0.025 340);
  --primary-faint: oklch(0.98 0.01 340);
  --success: oklch(0.43 0.12 155);
  --warning: oklch(0.52 0.12 70);
  --danger: oklch(0.47 0.17 25);
  --bg: oklch(1 0 0);
  --sidebar: oklch(0.97 0.004 340);
  --surface: oklch(0.945 0.006 340);
  --border: oklch(0.86 0.01 340);
  --ink: oklch(0.2 0.02 340);
  --muted: oklch(0.43 0.02 340);
  --on-primary: oklch(0.99 0.004 340);
  --focus: 0 0 0 3px oklch(0.79 0.09 340 / 0.65);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-width: 272px;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

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

button,
summary,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--on-primary);
  background: var(--primary);
  transform: translateY(-140%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.assistant-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  color: var(--on-primary);
  background: var(--primary);
}

.assistant-mark svg,
.icon-button svg,
.new-chat-button svg,
.sidebar-footer svg,
.send-button svg,
.mode-select svg,
.message-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.assistant-mark-light {
  color: var(--primary);
  background: var(--on-primary);
}

.assistant-mark-large {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.assistant-mark-large svg {
  width: 25px;
  height: 25px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
}

.brand-lockup-dark {
  color: var(--ink);
}

.loading-view {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
}

.loading-view p {
  margin: 0;
}

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
}

.login-intro {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 72px);
  color: var(--on-primary);
  background: var(--primary);
}

.login-copy {
  max-width: 560px;
  padding-block: 64px;
}

.login-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.login-copy p {
  max-width: 30rem;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.75;
}

.privacy-note,
.sidebar-footer p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.privacy-note svg,
.sidebar-footer svg {
  width: 18px;
  height: 18px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-form {
  display: flex;
  width: min(100%, 410px);
  flex-direction: column;
  gap: 21px;
}

.login-form h2 {
  margin: 0 0 7px;
  font-size: 2rem;
  letter-spacing: -0.025em;
}

.login-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--bg);
  transition:
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 68px;
}

.text-button {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 52px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: var(--primary);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
}

.button-primary {
  color: var(--on-primary);
  background: var(--primary);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-wide {
  width: 100%;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.notice-error,
.composer-error {
  color: oklch(0.34 0.15 25);
  background: oklch(0.95 0.035 25);
}

.workspace {
  display: grid;
  width: 100vw;
  height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  padding: 15px 12px 12px;
  background: var(--sidebar);
}

.sidebar-top {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
}

.new-chat-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  background: var(--bg);
  font-weight: 700;
}

.new-chat-button:hover {
  background: var(--primary-faint);
}

.conversation-nav {
  min-height: 0;
  flex: 1;
  margin-top: 22px;
  overflow-y: auto;
}

.conversation-label {
  margin: 0 10px 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.conversation-item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  border-radius: 8px;
}

.conversation-open {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 42px 0 11px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item:hover,
.conversation-item[data-active="true"] {
  background: var(--surface);
}

.conversation-item[data-active="true"] .conversation-open {
  font-weight: 650;
}

.conversation-delete {
  position: absolute;
  right: 4px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  opacity: 0;
}

.conversation-item:hover .conversation-delete,
.conversation-delete:focus-visible {
  opacity: 1;
}

.conversation-delete:hover {
  color: var(--danger);
  background: oklch(0.94 0.03 25);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 7px 2px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.sidebar-action {
  min-height: 40px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 650;
}

.sidebar-action:hover {
  color: var(--ink);
}

.chat-shell {
  position: relative;
  display: grid;
  min-width: 0;
  height: 100vh;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  background: var(--bg);
}

.chat-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.chat-header h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-only {
  display: none;
}

.icon-button,
.send-button,
.message-action {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
}

.icon-button.mobile-only {
  display: none;
}

.icon-button:hover,
.message-action:hover {
  color: var(--ink);
  background: var(--surface);
}

.quota-details {
  position: relative;
}

.quota-details summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--sidebar);
  font-size: 0.8125rem;
  font-weight: 700;
  list-style: none;
}

.quota-details summary::-webkit-details-marker {
  display: none;
}

.quota-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--warning);
}

.quota-details[data-state="ok"] .quota-dot {
  background: var(--success);
}

.quota-details[data-state="blocked"] .quota-dot,
.quota-details[data-state="error"] .quota-dot {
  background: var(--danger);
}

.quota-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(330px, calc(100vw - 32px));
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 6px 8px oklch(0.2 0.02 340 / 0.12);
}

.quota-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
  font-weight: 700;
}

.quota-popover-head strong {
  color: var(--primary);
  font-size: 1.25rem;
}

.quota-track {
  height: 6px;
  margin: 13px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}

.quota-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 180ms var(--ease-out);
}

.quota-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.quota-popover dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.quota-popover dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
}

.quota-popover dt {
  color: var(--muted);
}

.quota-popover dd {
  margin: 0;
  font-weight: 650;
}

.message-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.welcome-state {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 20px 130px;
  text-align: center;
}

.welcome-state h2 {
  margin: 18px 0 7px;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.welcome-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.suggestion-list {
  display: flex;
  max-width: 720px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.suggestion-list button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
}

.suggestion-list button:hover {
  border-color: oklch(0.68 0.055 340);
  color: var(--primary);
  background: var(--primary-faint);
}

.messages {
  display: flex;
  max-width: 860px;
  flex-direction: column;
  gap: 34px;
  padding: 42px 24px 36px;
  margin: 0 auto;
}

.message {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 13px;
}

.message-user {
  justify-content: flex-end;
}

.message-user .message-body {
  max-width: min(78%, 620px);
  padding: 11px 15px;
  border-radius: 16px 16px 4px 16px;
  background: var(--primary-soft);
}

.message-user .message-content p {
  white-space: pre-wrap;
}

.message-assistant .message-body {
  width: min(100%, 740px);
  min-width: 0;
  padding-top: 4px;
}

.message-content {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.72;
}

.message-content > :first-child {
  margin-top: 0;
}

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

.message-content p {
  margin: 0 0 0.9em;
}

.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  margin: 1.35em 0 0.55em;
  line-height: 1.35;
  text-wrap: balance;
}

.message-content h2 {
  font-size: 1.25rem;
}

.message-content h3 {
  font-size: 1.1rem;
}

.message-content h4,
.message-content h5,
.message-content h6 {
  font-size: 1rem;
}

.message-content ul,
.message-content ol {
  padding-left: 1.4em;
  margin: 0.6em 0 1em;
}

.message-content li {
  margin: 0.35em 0;
}

.message-content blockquote {
  padding: 2px 0 2px 14px;
  margin: 1em 0;
  border-left: 1px solid var(--border);
  color: var(--muted);
}

.message-content hr {
  height: 1px;
  margin: 1.4em 0;
  border: 0;
  background: var(--border);
}

.message-content a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.markdown-table-wrap {
  max-width: 100%;
  margin: 1em 0 1.3em;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.markdown-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.markdown-table-wrap th,
.markdown-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.markdown-table-wrap th {
  background: var(--sidebar);
  font-weight: 700;
}

.markdown-table-wrap tr:last-child td {
  border-bottom: 0;
}

.markdown-table-wrap .align-center {
  text-align: center;
}

.markdown-table-wrap .align-right {
  text-align: right;
}

.math-block {
  max-width: 100%;
  padding: 8px 0;
  margin: 0.8em 0 1.1em;
  overflow-x: auto;
  overflow-y: hidden;
}

.math-inline {
  display: inline-block;
  max-width: 100%;
  vertical-align: -0.1em;
}

.math-error {
  color: var(--danger);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.message-content pre {
  padding: 14px;
  overflow-x: auto;
  border-radius: 10px;
  color: oklch(0.94 0.006 340);
  background: oklch(0.2 0.018 340);
  font-size: 0.875rem;
  line-height: 1.55;
}

.message-content code {
  padding: 0.12em 0.32em;
  border-radius: 5px;
  background: var(--sidebar);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

.message-content pre code {
  padding: 0;
  background: transparent;
}

.message-files,
.message-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 9px 0 0;
  list-style: none;
}

.message-file,
.download-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--sidebar);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
}

.download-link {
  color: var(--primary);
  background: var(--primary-soft);
}

.download-link:hover {
  background: oklch(0.92 0.04 340);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

.message-error-text {
  color: var(--danger);
}

.message-retry-actions {
  margin-top: 10px;
}

.message-retry-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid oklch(0.82 0.055 340);
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-faint);
  font-size: 0.8125rem;
  font-weight: 700;
}

.message-retry-button:hover {
  border-color: var(--primary);
}

.streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 2px;
  background: var(--primary);
  vertical-align: -0.13em;
  animation: cursor-pulse 1s steps(2, jump-none) infinite;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: var(--muted);
  font-size: 0.875rem;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.1s ease-in-out infinite;
}

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

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

.thinking-status {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
}

.composer-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 10px 20px 12px;
  background: var(--bg);
}

.message-composer {
  width: min(800px, 100%);
  padding: 10px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 6px 8px oklch(0.2 0.02 340 / 0.09);
  transition:
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.message-composer:focus-within {
  border-color: oklch(0.68 0.055 340);
  box-shadow: var(--focus);
}

.composer-input textarea {
  display: block;
  width: 100%;
  max-height: 180px;
  min-height: 42px;
  padding: 9px 9px 6px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.55;
}

.composer-input textarea::placeholder {
  color: oklch(0.46 0.018 340);
}

.composer-tools {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.composer-tools-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.mode-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mode-select select {
  min-height: 38px;
  padding: 0 31px 0 10px;
  border: 0;
  border-radius: 9px;
  outline: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 650;
  appearance: none;
}

.model-select select {
  max-width: 190px;
}

.mode-select select:hover {
  color: var(--ink);
  background: var(--sidebar);
}

.mode-select svg {
  position: absolute;
  right: 8px;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.send-button {
  color: var(--on-primary);
  background: var(--primary);
}

.send-button:hover:not(:disabled) {
  background: var(--primary-hover);
}

.send-button:disabled {
  color: oklch(0.58 0.01 340);
  background: var(--surface);
}

.selected-files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 5px 8px;
  margin: 0;
  list-style: none;
}

.selected-file {
  display: flex;
  max-width: 260px;
  min-height: 38px;
  align-items: center;
  gap: 5px;
  padding: 0 4px 0 10px;
  border-radius: 8px;
  background: var(--sidebar);
  font-size: 0.8125rem;
}

.selected-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file button {
  width: 30px;
  height: 30px;
  flex: none;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.selected-file button:hover {
  color: var(--danger);
  background: oklch(0.94 0.03 25);
}

.composer-error {
  width: min(800px, 100%);
  padding: 8px 12px;
  margin: 7px auto 0;
  border-radius: 8px;
  font-size: 0.8125rem;
}

.composer-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.sidebar-backdrop {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: min(400px, calc(100vw - 40px));
  padding: 12px 15px;
  border-radius: 9px;
  color: var(--on-primary);
  background: var(--ink);
  font-size: 0.875rem;
}

button:focus-visible,
summary:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes cursor-pulse {
  50% {
    opacity: 0;
  }
}

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

  .login-intro {
    min-height: 340px;
    padding: 30px;
  }

  .login-copy {
    padding-block: 42px;
  }

  .login-panel {
    min-height: 500px;
  }

  .workspace {
    display: block;
  }

  .mobile-only,
  .icon-button.mobile-only {
    display: grid;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(86vw, 300px);
    transform: translateX(-105%);
    transition: transform 190ms var(--ease-out);
  }

  .sidebar[data-open="true"] {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    background: oklch(0.12 0.01 340 / 0.38);
  }

  .chat-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 0 12px;
  }

  .messages {
    gap: 28px;
    padding: 30px 16px;
  }

  .message-user .message-body {
    max-width: 88%;
  }

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

@media (max-width: 520px) {
  .chat-header h1 {
    font-size: 0.875rem;
  }

  .quota-details summary {
    max-width: 145px;
    padding: 0 10px;
  }

  #quotaSummaryText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .welcome-state {
    padding: 40px 18px 105px;
  }

  .welcome-state h2 {
    font-size: 1.5rem;
  }

  .suggestion-list {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 300px);
  }

  .message {
    gap: 10px;
  }

  .message-assistant .assistant-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .message-user .message-body {
    max-width: 91%;
  }

  .message-content {
    font-size: 0.975rem;
  }

  .mode-select select {
    max-width: 120px;
  }

  .model-select select {
    max-width: 132px;
  }
}

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