@font-face {
  font-family: "Manrope Variable";
  src: url("/vendor/manrope.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0d0d0d;
  --ink-soft: #5d5d5d;
  --ink-faint: #8f8f8f;
  --sidebar: #f9f9f9;
  --paper: #ffffff;
  --white: #ffffff;
  --line: #ececec;
  --line-strong: #d8d8d8;
  --dark: #212121;
  --lime: #ffffff;
  --coral: #ff8a65;
  --gold: #e8b44e;
  --success: #4f8a59;
  --danger: #b4453d;
  --focus: #676767;
  --sidebar-width: 260px;
  font-family: "Manrope Variable", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

.login-view {
  position: relative;
  display: grid;
  width: 100%;
  height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 86px 24px 62px;
  background:
    linear-gradient(90deg, var(--sidebar) 0, var(--sidebar) 31%, var(--paper) 31%, var(--paper) 100%);
}

.login-view::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31%;
  width: 1px;
  background: var(--line);
  content: "";
}

.login-brand {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 760;
}

.login-brand img {
  border-radius: 10px;
  box-shadow: 0 8px 22px rgb(30 41 36 / 14%);
}

.login-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 24px 70px rgb(32 43 37 / 10%);
}

.login-kicker {
  margin: 0 0 11px;
  color: var(--focus);
  font-size: 10px;
  font-weight: 800;
}

.login-panel h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 720;
  line-height: 1.25;
}

.login-subtitle {
  margin: 8px 0 28px;
  color: var(--ink-soft);
  font-size: 13px;
}

.login-field {
  display: block;
  margin-top: 17px;
}

.login-field > span:first-child {
  display: block;
  margin: 0 0 7px 1px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 680;
}

.login-input-wrap {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.login-input-wrap:focus-within {
  border-color: #96a48f;
  background: var(--white);
  box-shadow: 0 0 0 3px rgb(109 143 81 / 9%);
}

.login-input-wrap svg {
  width: 17px;
  height: 17px;
  color: var(--ink-faint);
}

.login-input-wrap input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.login-error {
  margin: 13px 0 -2px;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.5;
}

.login-button {
  display: flex;
  width: 100%;
  height: 47px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--dark);
  border-radius: 7px;
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.login-button:hover {
  background: #2d3b34;
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.login-button svg {
  width: 17px;
  height: 17px;
}

.demo-login-hint {
  margin: 14px 0 0;
  padding: 9px 10px;
  border: 1px solid #f1cbbb;
  border-radius: 6px;
  background: #fff5f1;
  color: #86503e;
  font-size: 10px;
  text-align: center;
}

.login-footer {
  position: absolute;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.login-footer-divider {
  color: var(--line-strong);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  background: var(--paper);
}

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

.sidebar-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 14px 14px 12px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 6px 16px rgb(30 41 36 / 12%);
}

.brand span {
  font-size: 18px;
  font-weight: 760;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  background: rgb(24 32 28 / 7%);
  color: var(--ink);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button svg,
.new-chat-button svg,
.search-box svg,
.prompt-grid svg,
.message-actions svg,
.empty-history svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.new-chat-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin: 2px 12px 14px;
  padding: 0 10px 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.new-chat-button:hover {
  background: #ececec;
}

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

.new-chat-button span {
  flex: 1;
  font-weight: 680;
}

kbd {
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink-faint);
  font-family: inherit;
  font-size: 10px;
}

.search-box {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  margin: 0 12px 8px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-faint);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.search-box:hover,
.search-box:focus-within {
  border-color: var(--line);
  background: rgb(255 255 255 / 68%);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-box input::placeholder {
  color: var(--ink-faint);
}

.search-shortcut {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
}

.conversation-nav {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 8px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.conversation-group + .conversation-group {
  margin-top: 22px;
}

.conversation-group h2 {
  margin: 0 8px 7px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.conversation-item {
  position: relative;
  display: flex;
  min-height: 39px;
  align-items: center;
  border-radius: 7px;
}

.conversation-item:hover,
.conversation-item.active {
  background: rgb(255 255 255 / 78%);
}

.conversation-select {
  min-width: 0;
  height: 39px;
  flex: 1;
  overflow: hidden;
  padding: 0 38px 0 10px;
  border: 0;
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item.active .conversation-select {
  font-weight: 650;
}

.conversation-menu-button {
  position: absolute;
  right: 2px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  opacity: 0;
}

.conversation-item:hover .conversation-menu-button,
.conversation-item.active .conversation-menu-button,
.conversation-menu-button:focus-visible {
  opacity: 1;
}

.conversation-menu-button:hover {
  background: var(--line);
}

.conversation-menu-button svg {
  width: 16px;
  height: 16px;
}

.conversation-menu {
  position: absolute;
  z-index: 30;
  top: 35px;
  right: 4px;
  width: 132px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgb(25 33 29 / 16%);
}

.conversation-menu button {
  display: flex;
  width: 100%;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  text-align: left;
}

.conversation-menu button:hover {
  background: var(--sidebar);
}

.conversation-menu button.danger {
  color: var(--danger);
}

.conversation-menu svg {
  width: 15px;
  height: 15px;
}

.empty-history {
  padding: 36px 14px;
  color: var(--ink-faint);
  text-align: center;
}

.empty-history svg {
  width: 22px;
  height: 22px;
}

.empty-history p {
  margin: 8px 0 0;
  font-size: 12px;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 10px;
}

.api-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}

.api-status.live .status-dot {
  background: #5e9b5a;
  box-shadow: 0 0 0 3px rgb(94 155 90 / 14%);
}

.api-status.demo .status-dot {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgb(255 138 101 / 15%);
}

.api-status div {
  min-width: 0;
}

.api-status strong,
.api-status span:not(.status-dot) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-status strong {
  font-size: 11px;
  font-weight: 700;
}

.api-status span:not(.status-dot) {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.profile-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.profile-button:hover {
  background: rgb(255 255 255 / 75%);
}

.profile-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  background: #fed9cb;
  color: #653025;
  font-size: 12px;
  font-weight: 750;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy strong,
.profile-copy small {
  display: block;
}

.profile-copy strong {
  font-size: 12px;
}

.profile-copy small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.profile-button svg {
  width: 17px;
  color: var(--ink-faint);
}

.profile-menu-wrap,
.conversation-actions-wrap,
.tools-picker {
  position: relative;
}

.profile-menu-wrap {
  width: 100%;
}

.profile-menu,
.conversation-actions-menu,
.tools-menu {
  position: absolute;
  z-index: 70;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgb(0 0 0 / 13%);
}

.profile-menu {
  right: 0;
  bottom: calc(100% + 7px);
  left: 0;
}

.profile-menu button,
.conversation-actions-menu button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.profile-menu button:hover,
.conversation-actions-menu button:hover {
  background: var(--sidebar);
}

.profile-menu button svg,
.conversation-actions-menu button svg {
  width: 17px;
  height: 17px;
}

.profile-menu-provider {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  margin: 3px 4px;
  padding: 0 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 10px;
}

.app-version {
  margin: 4px 8px 0;
  color: var(--ink-faint);
  font-size: 9px;
  text-align: center;
}

.sidebar-scrim {
  display: none;
}

.main-panel {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  background: var(--paper);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(251 252 250 / 90%);
  backdrop-filter: blur(16px);
}

.sidebar-open {
  display: none;
}

.model-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-weight: 720;
}

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

.model-button:disabled {
  cursor: default;
  color: var(--ink-faint);
}

.model-button:disabled:hover {
  background: transparent;
}

.model-picker {
  position: relative;
}

.model-button > svg {
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  transition: transform 160ms ease;
}

.model-button[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.model-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: min(520px, calc(100dvh - 90px));
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgb(27 37 31 / 16%);
}

.model-menu-group + .model-menu-group {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.model-menu-group h3 {
  margin: 5px 9px 6px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.model-option {
  display: grid;
  width: 100%;
  min-height: 48px;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.model-option:hover,
.model-option.active {
  background: var(--sidebar);
}

.model-option-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #eaf0e6;
  color: #4f7042;
}

.model-option[data-model-type="image"] .model-option-icon {
  background: #fff0e9;
  color: #a44f35;
}

.model-option[data-model-type="research"] .model-option-icon {
  background: #eef0f8;
  color: #505d8b;
}

.model-option-icon svg,
.model-option > svg {
  width: 15px;
  height: 15px;
}

.model-option-copy {
  min-width: 0;
}

.model-option-copy strong,
.model-option-copy small {
  display: block;
}

.model-option-copy strong {
  font-size: 11px;
}

.model-option-copy small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.model-tag {
  display: none;
}

.model-menu-empty {
  display: grid;
  min-height: 132px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px;
  color: var(--ink-faint);
  text-align: center;
}

.model-menu-empty svg {
  width: 20px;
  height: 20px;
}

.model-menu-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.model-menu-empty span {
  max-width: 240px;
  font-size: 11px;
  line-height: 1.5;
}

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

.conversation-actions-menu {
  top: calc(100% + 7px);
  right: 0;
  width: 178px;
}

.conversation-actions-menu .danger {
  color: var(--danger);
}

.chat-viewport {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.welcome-view {
  display: flex;
  width: min(720px, calc(100% - 40px));
  min-height: 100%;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0 40px;
  text-align: center;
  animation: welcome-in 500ms ease both;
}

.welcome-mark {
  position: relative;
}

.welcome-mark::after {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.welcome-mark img {
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgb(30 41 36 / 14%);
}

.welcome-kicker {
  margin: 18px 0 9px;
  color: var(--focus);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.welcome-view h1 {
  margin: 0;
  font-size: clamp(28px, 4vh, 40px);
  font-weight: 680;
  line-height: 1.2;
}

.welcome-subtitle {
  margin: 12px 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.prompt-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prompt-grid button {
  display: grid;
  min-height: 51px;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 55%);
  color: var(--ink-soft);
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.prompt-grid button:hover {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
  transform: translateY(-1px);
}

.prompt-grid button svg:first-child {
  color: var(--focus);
}

.prompt-grid button svg:last-child {
  width: 15px;
  opacity: 0.45;
}

.message-list {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.message-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  padding: 17px 0;
  animation: message-in 240ms ease both;
}

.message-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 760;
}

.message-row.assistant .message-avatar {
  background: var(--dark);
  color: var(--white);
}

.message-row.user .message-avatar {
  background: #fed9cb;
  color: #653025;
}

.message-column {
  min-width: 0;
}

.message-author {
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 750;
}

.message-content {
  color: #27302b;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

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

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

.message-content p,
.message-content ul,
.message-content ol,
.message-content pre,
.message-content blockquote {
  margin: 0 0 13px;
}

.message-content ul,
.message-content ol {
  padding-left: 22px;
}

.message-content li + li {
  margin-top: 5px;
}

.message-content code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf0ec;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
}

.message-content pre {
  overflow: auto;
  padding: 14px;
  border: 1px solid #313b36;
  border-radius: 8px;
  background: #202924;
  color: #f3f5f2;
}

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

.message-content blockquote {
  padding-left: 13px;
  border-left: 3px solid var(--lime);
  color: var(--ink-soft);
}

.message-content a {
  color: #456d35;
  text-underline-offset: 3px;
}

.message-content h1,
.message-content h2,
.message-content h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
}

.message-attachment-image {
  position: relative;
  width: 112px;
  height: 82px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sidebar);
}

.message-attachment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-file {
  display: inline-flex;
  max-width: 240px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-soft);
}

.message-file svg {
  width: 17px;
  flex: 0 0 17px;
}

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

.generated-images {
  display: grid;
  width: min(560px, 100%);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.generated-image {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef0ec;
}

.generated-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.message-citations {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.message-citations > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 10px;
}

.citation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.citation-link {
  display: inline-flex;
  max-width: 250px;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: #3f6533;
  font-size: 10px;
  text-decoration: none;
}

.citation-link:hover {
  border-color: #a9bca0;
  background: #f4f8f1;
}

.citation-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.citation-link svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.message-actions {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.message-row:hover .message-actions,
.message-actions:focus-within {
  opacity: 1;
}

.message-actions button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-faint);
}

.message-actions button:hover {
  background: var(--sidebar);
  color: var(--ink);
}

.message-actions svg {
  width: 15px;
  height: 15px;
}

.typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 6px 0;
}

.typing-indicator span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: typing 1.2s infinite ease-in-out;
}

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

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

.composer-region {
  position: relative;
  z-index: 8;
  padding: 0 20px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 72%, transparent);
}

.composer {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 10px 11px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 40px rgb(34 45 39 / 9%), 0 2px 5px rgb(34 45 39 / 4%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.composer:focus-within {
  border-color: #aab5ac;
  box-shadow: 0 16px 42px rgb(34 45 39 / 11%), 0 0 0 3px rgb(109 143 81 / 7%);
}

.composer textarea {
  display: block;
  width: 100%;
  max-height: 180px;
  min-height: 38px;
  resize: none;
  overflow-y: auto;
  padding: 7px 6px;
  border: 0;
  outline: 0;
  background: transparent;
  line-height: 1.55;
}

.composer textarea::placeholder {
  color: var(--ink-faint);
}

.composer-toolbar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
}

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

.tools-menu {
  bottom: calc(100% + 8px);
  left: 0;
  width: 282px;
}

.tools-menu > button {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.tools-menu > button:hover,
.tools-menu > button[aria-pressed="true"] {
  background: var(--sidebar);
}

.tools-menu > button > svg {
  width: 19px;
  height: 19px;
  justify-self: center;
}

.tools-menu > button span,
.tools-menu > button strong,
.tools-menu > button small {
  display: block;
  min-width: 0;
}

.tools-menu > button strong {
  font-size: 12px;
  font-weight: 650;
}

.tools-menu > button small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.active-tool-pill {
  display: inline-flex;
  height: 34px;
  max-width: 150px;
  align-items: center;
  gap: 6px;
  padding: 0 4px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.active-tool-pill > span:first-child,
.active-tool-pill svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.active-tool-pill #activeToolName {
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-tool-pill button {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-faint);
}

.active-tool-pill button:hover {
  background: var(--sidebar);
  color: var(--ink);
}

.attachment-button {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.image-options {
  display: flex;
  align-items: center;
  gap: 4px;
}

.image-setting {
  position: relative;
}

.image-setting-button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 10px;
}

.image-setting-button:hover,
.image-setting-button[aria-expanded="true"] {
  background: var(--sidebar);
}

.image-setting-button strong {
  color: var(--ink);
  font-weight: 650;
}

.image-setting-button svg {
  width: 13px;
  height: 13px;
  transition: transform 160ms ease;
}

.image-setting-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.image-setting-menu {
  position: absolute;
  z-index: 80;
  bottom: calc(100% + 9px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgb(0 0 0 / 14%);
}

.image-size-menu {
  left: 0;
  width: 372px;
}

.image-quality-menu {
  right: 0;
  width: 278px;
}

.image-setting-menu-title {
  padding: 2px 3px 10px;
}

.image-setting-menu-title strong,
.image-setting-menu-title span {
  display: block;
}

.image-setting-menu-title strong {
  font-size: 12px;
}

.image-setting-menu-title span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.aspect-ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.aspect-ratio-grid > button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 76px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 6px 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
}

.aspect-ratio-grid > button:hover {
  background: var(--sidebar);
}

.aspect-ratio-grid > button.selected {
  border-color: var(--line-strong);
  background: #f3f3f3;
}

.aspect-ratio-grid strong,
.aspect-ratio-grid small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aspect-ratio-grid strong {
  font-size: 10px;
}

.aspect-ratio-grid small {
  color: var(--ink-faint);
  font-size: 8px;
}

.ratio-auto,
.ratio-swatch {
  display: grid;
  width: 34px;
  height: 25px;
  place-items: center;
  border: 1.5px solid #8c8c8c;
  border-radius: 3px;
  background: var(--white);
}

.ratio-auto svg {
  width: 13px;
  height: 13px;
}

.ratio-square { width: 25px; }
.ratio-landscape-4-3 { width: 33px; }
.ratio-portrait-3-4 { width: 19px; height: 26px; }
.ratio-landscape-3-2 { width: 36px; height: 24px; }
.ratio-portrait-2-3 { width: 18px; height: 27px; }
.ratio-landscape-16-9 { width: 39px; height: 22px; }
.ratio-portrait-9-16 { width: 16px; height: 28px; }

.option-check {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  width: 12px;
  height: 12px;
}

.aspect-ratio-grid > button.selected .option-check {
  display: block;
}

.custom-image-size {
  display: grid;
  grid-template-columns: auto 66px auto 66px auto;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 3px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 9px;
}

.custom-image-size label {
  display: block;
}

.custom-image-size input {
  width: 66px;
  height: 31px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
}

.custom-image-size input:focus {
  border-color: #9f9f9f;
}

.custom-image-size > button {
  height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: var(--dark);
  color: var(--white);
  font-size: 9px;
}

.custom-size-error {
  margin: 7px 3px 1px;
  color: var(--danger);
  font-size: 9px;
  line-height: 1.45;
}

.quality-option-list button {
  display: grid;
  width: 100%;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.quality-option-list button:hover,
.quality-option-list button.selected {
  background: var(--sidebar);
}

.quality-option-list button strong,
.quality-option-list button small {
  display: block;
}

.quality-option-list button strong {
  font-size: 11px;
}

.quality-option-list button small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.quality-option-list button > svg {
  display: none;
  width: 15px;
  height: 15px;
}

.quality-option-list button.selected > svg {
  display: block;
}

.send-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--dark);
  color: var(--white);
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.send-button:hover {
  background: #304038;
  transform: translateY(-1px);
}

.send-button:disabled {
  cursor: default;
  opacity: 0.3;
  transform: none;
}

.send-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.stop-button {
  background: var(--coral);
}

.stop-button svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.composer-note {
  margin: 7px auto 0;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

.attachment-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 8px;
}

.attachment-chip {
  position: relative;
  display: flex;
  width: 142px;
  height: 52px;
  flex: 0 0 142px;
  align-items: center;
  gap: 8px;
  padding: 5px 27px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.attachment-chip img,
.attachment-file-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 6px;
  object-fit: cover;
}

.attachment-file-icon {
  display: grid;
  place-items: center;
  background: #e8eee4;
  color: #4b6540;
}

.attachment-file-icon svg {
  width: 18px;
}

.attachment-meta {
  min-width: 0;
}

.attachment-meta strong,
.attachment-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-meta strong {
  font-size: 10px;
}

.attachment-meta small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.attachment-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-soft);
}

.attachment-remove:hover {
  background: var(--line);
}

.attachment-remove svg {
  width: 13px;
}

.drop-overlay {
  position: absolute;
  z-index: 40;
  inset: -80px 16px 8px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 2px dashed #8ba577;
  border-radius: 12px;
  background: rgb(244 249 239 / 94%);
  color: #456d35;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.drop-overlay svg {
  width: 26px;
  height: 26px;
}

.composer-region.dragging .drop-overlay {
  display: flex;
}

.toast {
  position: fixed;
  z-index: 90;
  bottom: 22px;
  left: 50%;
  max-width: min(360px, calc(100% - 32px));
  padding: 10px 14px;
  border: 1px solid #344039;
  border-radius: 8px;
  background: #202a25;
  color: var(--white);
  box-shadow: 0 14px 40px rgb(20 28 23 / 20%);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.image-dialog {
  max-width: min(960px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #111714;
  box-shadow: 0 30px 90px rgb(0 0 0 / 35%);
}

.image-dialog::backdrop {
  background: rgb(12 17 14 / 70%);
  backdrop-filter: blur(5px);
}

.image-dialog .icon-button {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  background: rgb(0 0 0 / 45%);
  color: white;
}

.image-dialog #downloadImageButton {
  right: 52px;
}

.image-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  object-fit: contain;
}

.admin-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgb(15 23 18 / 28%);
}

.admin-dialog::backdrop {
  background: rgb(18 25 21 / 45%);
  backdrop-filter: blur(4px);
}

.provider-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgb(15 23 18 / 28%);
}

.provider-dialog::backdrop {
  background: rgb(18 25 21 / 45%);
  backdrop-filter: blur(4px);
}

.provider-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.provider-dialog-header p {
  margin: 0 0 4px;
  color: var(--focus);
  font-size: 11px;
  font-weight: 600;
}

.provider-dialog-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.provider-current {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  margin: 16px 22px 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.provider-current.connected .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(53 126 78 / 10%);
}

.provider-current div,
.provider-current strong,
.provider-current div > span {
  display: block;
}

.provider-current strong {
  font-size: 13px;
  font-weight: 600;
}

.provider-current div > span {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 11px;
}

.provider-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 22px 14px;
}

.provider-fields label > span:first-child,
.provider-default-model > span,
.provider-capabilities legend {
  display: block;
  margin: 0 0 6px 1px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.provider-fields input,
.provider-fields select,
.provider-default-model select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
}

.provider-fields input:focus,
.provider-fields select:focus,
.provider-default-model select:focus {
  border-color: #96a48f;
  box-shadow: 0 0 0 3px rgb(109 143 81 / 8%);
}

.provider-fields input:disabled,
.provider-fields select:disabled {
  background: #f3f3f3;
  color: var(--ink-faint);
}

.provider-field-wide {
  grid-column: 1 / -1;
}

.provider-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 22px 18px;
  border: 0;
}

.provider-capabilities legend {
  grid-column: 1 / -1;
  width: 100%;
}

.provider-capabilities label {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 12px;
}

.provider-capabilities input {
  width: 14px;
  height: 14px;
  accent-color: var(--dark);
}

.provider-capabilities label:has(input:disabled) {
  color: var(--ink-faint);
  background: #f4f4f4;
}

.provider-error {
  margin: 0;
  padding: 10px 22px;
  border-top: 1px solid #f1cbbb;
  border-bottom: 1px solid #f1cbbb;
  background: #fff5f1;
  color: var(--danger);
  font-size: 12px;
}

.provider-suggestion {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-bottom: 1px solid #eadcae;
  background: #fffbed;
  color: #66551f;
  font-size: 12px;
  line-height: 1.5;
}

.provider-suggestion svg {
  width: 17px;
  height: 17px;
}

.provider-suggestion button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d8c67d;
  border-radius: 6px;
  background: #fff;
  color: #564713;
  font-size: 12px;
  font-weight: 600;
}

.provider-test-result {
  margin: 0 22px 18px;
  overflow: hidden;
  border: 1px solid #cfdccc;
  border-radius: 7px;
  background: var(--white);
}

.provider-result-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.provider-result-header div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

.provider-result-header svg {
  width: 16px;
  height: 16px;
}

.provider-result-header strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.provider-result-header > span {
  color: var(--ink-faint);
  font-size: 11px;
}

.provider-model-list {
  display: grid;
  max-height: 168px;
  grid-template-columns: 1fr 1fr;
  overflow-y: auto;
  padding: 6px;
}

.provider-model-row {
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
}

.provider-model-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  background: #edf1ea;
  color: #4f7042;
}

.provider-model-icon svg {
  width: 14px;
  height: 14px;
}

.provider-model-row strong,
.provider-model-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-model-row strong {
  font-size: 12px;
  font-weight: 600;
}

.provider-model-row small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.provider-default-model {
  display: block;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.provider-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.provider-actions button {
  display: inline-flex;
  min-width: 116px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}

.provider-actions svg {
  width: 16px;
  height: 16px;
}

.provider-test-button {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.provider-connect-button {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: var(--white);
}

.provider-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.admin-dialog-header p {
  margin: 0 0 4px;
  color: var(--focus);
  font-size: 9px;
  font-weight: 800;
}

.admin-dialog-header h2 {
  margin: 0;
  font-size: 18px;
}

.member-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.member-form label > span:first-child {
  display: block;
  margin: 0 0 5px 1px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 680;
}

.member-form input,
.member-form select {
  width: 100%;
  height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: var(--white);
}

.member-form input:focus,
.member-form select:focus {
  border-color: #96a48f;
  box-shadow: 0 0 0 3px rgb(109 143 81 / 8%);
}

.member-submit {
  display: inline-flex;
  height: 39px;
  align-self: end;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
  grid-column: 1 / -1;
}

.member-submit svg {
  width: 16px;
}

.member-form-error {
  margin: 0;
  padding: 9px 22px;
  border-bottom: 1px solid #f1cbbb;
  background: #fff5f1;
  color: var(--danger);
  font-size: 10px;
}

.member-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 8px;
  font-size: 11px;
}

.member-list-header span {
  color: var(--ink-faint);
  font-size: 9px;
}

.member-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0 14px 18px;
}

.member-row {
  display: grid;
  min-height: 52px;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.member-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: #e9eee6;
  color: #46603c;
  font-size: 10px;
  font-weight: 750;
}

.member-copy {
  min-width: 0;
}

.member-copy strong,
.member-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-copy strong {
  font-size: 11px;
}

.member-copy small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.role-badge {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.member-actions {
  display: flex;
  gap: 2px;
}

.member-actions button {
  width: 30px;
  height: 30px;
}

.reset-dialog {
  width: min(390px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgb(15 23 18 / 25%);
}

.reset-dialog::backdrop {
  background: rgb(18 25 21 / 45%);
  backdrop-filter: blur(4px);
}

.reset-dialog form {
  padding: 20px;
}

.reset-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.reset-dialog-header p {
  margin: 0 0 4px;
  color: var(--focus);
  font-size: 9px;
  font-weight: 800;
}

.reset-dialog-header h2 {
  margin: 0;
  font-size: 17px;
}

.reset-dialog label > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
}

.reset-dialog input {
  width: 100%;
  height: 42px;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
}

.reset-dialog .member-submit {
  width: 100%;
}

@keyframes welcome-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 760px) {
  .login-view {
    padding: 74px 16px 54px;
    background: var(--paper);
  }

  .login-view::before {
    display: none;
  }

  .login-brand {
    top: 20px;
    left: 20px;
  }

  .login-panel {
    padding: 29px 22px;
    box-shadow: 0 18px 52px rgb(32 43 37 / 9%);
  }

  .login-panel h1 {
    font-size: 27px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(88vw, 310px);
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }

  .app-shell.sidebar-visible .sidebar {
    transform: translateX(0);
    box-shadow: 16px 0 50px rgb(20 28 23 / 18%);
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: block;
    background: rgb(18 25 21 / 42%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

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

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

  .topbar {
    padding: 0 10px;
  }

  .sidebar-open {
    display: inline-grid;
  }

  .model-picker {
    position: absolute;
    left: 50%;
    max-width: calc(100% - 190px);
    transform: translateX(-50%);
  }

  .model-button {
    max-width: 100%;
  }

  .model-menu {
    position: fixed;
    top: 54px;
    right: 10px;
    left: 10px;
    width: auto;
  }

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

  .model-tag {
    display: none;
  }

  .welcome-view {
    width: calc(100% - 28px);
    justify-content: flex-start;
    padding: max(50px, 8vh) 0 28px;
  }

  .welcome-view h1 {
    font-size: 28px;
  }

  .welcome-subtitle {
    max-width: 310px;
    margin-bottom: 24px;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .prompt-grid button {
    min-height: 48px;
  }

  .message-list {
    width: calc(100% - 28px);
    padding: 20px 0 44px;
  }

  .message-row {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

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

  .message-actions {
    opacity: 1;
  }

  .composer-region {
    padding: 0 10px max(8px, env(safe-area-inset-bottom));
  }

  .composer {
    border-radius: 16px;
  }

  .composer-note {
    margin-top: 5px;
    font-size: 9px;
  }

  .tools-menu {
    width: min(282px, calc(100vw - 42px));
  }

  .image-setting-label {
    display: none;
  }

  .image-setting-button {
    padding: 0 7px;
  }

  .image-setting-menu {
    position: fixed;
    right: 10px;
    bottom: 91px;
    left: 10px;
    width: auto;
  }

  .aspect-ratio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .active-tool-pill {
    max-width: 112px;
  }

  .member-form {
    grid-template-columns: 1fr;
  }

  .admin-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .provider-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

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

  .provider-capabilities {
    grid-template-columns: 1fr 1fr;
  }

  .provider-actions {
    position: sticky;
    bottom: 0;
  }

  .drop-overlay {
    inset: -60px 5px 4px;
  }
}

/* v1.3.1 typography and surface polish */
:root {
  --font-ui: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-family: var(--font-ui);
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-ui);
  font-synthesis: none;
  letter-spacing: 0;
}

body {
  color: #171717;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font-size: 14px;
}

.login-brand,
.brand,
.login-panel h1,
.welcome-view h1 {
  font-family: var(--font-display);
}

.login-brand {
  font-weight: 650;
}

.login-panel {
  width: min(384px, 100%);
}

.login-panel h1 {
  font-size: 30px;
  font-weight: 600;
}

.login-subtitle {
  color: #6b6b6b;
  font-size: 14px;
}

.login-field > span:first-child {
  font-size: 13px;
  font-weight: 600;
}

.login-input-wrap {
  border-color: #d8d8d8;
  box-shadow: none;
}

.login-input-wrap:focus-within {
  border-color: #8a8a8a;
  box-shadow: 0 0 0 1px #8a8a8a;
}

.login-button {
  font-size: 15px;
  font-weight: 600;
}

.brand span {
  font-size: 16px;
  font-weight: 650;
}

.sidebar-topbar {
  min-height: 56px;
}

.new-chat-button {
  font-size: 14px;
}

.new-chat-button span {
  font-weight: 600;
}

.search-box,
.search-box input {
  font-size: 13px;
}

.conversation-group h2 {
  color: #747474;
  font-size: 12px;
  font-weight: 600;
}

.conversation-select {
  color: #282828;
  font-size: 13px;
  font-weight: 400;
}

.conversation-item.active .conversation-select {
  font-weight: 500;
}

.conversation-item:hover,
.conversation-item.active {
  background: #e9e9e9;
}

.profile-copy strong {
  font-size: 13px;
  font-weight: 600;
}

.profile-copy small {
  font-size: 11px;
}

.app-version {
  color: #929292;
  font-size: 10px;
}

.topbar {
  background: rgb(255 255 255 / 92%);
}

.model-button {
  color: #202020;
  font-size: 16px;
  font-weight: 600;
}

.model-menu-group h3 {
  color: #727272;
  font-size: 12px;
  font-weight: 600;
}

.model-option-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.model-option-copy small {
  color: #747474;
  font-size: 12px;
}

.welcome-view h1 {
  margin-bottom: 24px;
  font-size: 29px;
  font-weight: 600;
}

.prompt-grid {
  gap: 8px;
}

.prompt-grid button {
  min-height: 56px;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 14px;
  border-color: #e5e5e5;
  background: #fff;
  color: #4c4c4c;
  font-size: 13px;
  font-weight: 400;
}

.prompt-grid button:hover {
  border-color: #dcdcdc;
  background: #f7f7f7;
}

.prompt-grid button svg:first-child {
  color: #6b6b6b;
  stroke-width: 1.7;
}

.prompt-grid button svg:last-child {
  display: none;
}

.message-list {
  width: min(760px, calc(100% - 40px));
}

.message-content {
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.message-row.user .message-content {
  padding: 9px 15px;
  background: #f1f1f1;
  line-height: 1.55;
}

.message-content h1,
.message-content h2,
.message-content h3 {
  font-weight: 600;
}

.composer {
  width: min(760px, 100%);
  padding: 8px 10px 7px;
  border: 0;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px #e1e1e1, 0 3px 10px rgb(0 0 0 / 5%);
}

.composer:focus-within {
  border: 0;
  box-shadow: inset 0 0 0 1px #cecece, 0 4px 13px rgb(0 0 0 / 6%);
}

.composer textarea {
  min-height: 36px;
  padding: 7px 10px 4px;
  color: #202020;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.composer textarea::placeholder {
  color: #747474;
  opacity: 1;
}

.composer-toolbar {
  min-height: 36px;
}

.attachment-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-color: #d5d5d5;
}

.active-tool-pill,
.image-setting-button {
  height: 34px;
  border-color: #d5d5d5;
  background: #fff;
  color: #424242;
  font-size: 12px;
  font-weight: 400;
}

.image-setting-button strong {
  font-weight: 600;
}

.send-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.composer-note {
  color: #858585;
  font-size: 11px;
}

.profile-menu button,
.conversation-actions-menu button,
.tools-menu > button {
  font-size: 13px;
}

.tools-menu > button strong {
  font-size: 14px;
  font-weight: 600;
}

.tools-menu > button small {
  color: #757575;
  font-size: 12px;
}

.profile-menu-provider {
  font-size: 12px;
}

.image-setting-menu-title strong {
  font-size: 14px;
  font-weight: 600;
}

.image-setting-menu-title span {
  font-size: 11px;
  line-height: 1.45;
}

.aspect-ratio-grid strong {
  font-size: 12px;
  font-weight: 600;
}

.aspect-ratio-grid small {
  font-size: 10px;
}

.custom-image-size,
.custom-image-size input,
.custom-image-size > button,
.custom-size-error {
  font-size: 11px;
}

.quality-option-list button strong {
  font-size: 13px;
  font-weight: 600;
}

.quality-option-list button small {
  font-size: 11px;
}

.admin-dialog-header p,
.reset-dialog-header p {
  font-size: 11px;
  font-weight: 600;
}

.admin-dialog-header h2,
.reset-dialog-header h2 {
  font-size: 19px;
  font-weight: 600;
}

.member-form label > span:first-child,
.reset-dialog label > span:first-child {
  font-size: 12px;
  font-weight: 600;
}

.member-list-header,
.member-copy strong {
  font-size: 13px;
}

.member-list-header span,
.member-copy small,
.role-badge,
.member-form-error {
  font-size: 11px;
}

.member-submit {
  font-size: 13px;
  font-weight: 600;
}

.toast {
  font-size: 13px;
}

@media (max-width: 760px) {
  .welcome-view h1 {
    margin-bottom: 20px;
    font-size: 27px;
  }

  .prompt-grid button {
    min-height: 50px;
  }

  .message-list {
    width: calc(100% - 28px);
  }

  .message-content {
    font-size: 15px;
  }

  .composer {
    width: 100%;
    padding: 7px 8px 6px;
  }

  .composer textarea {
    min-height: 36px;
    padding: 7px 8px 4px;
  }

  .composer-note {
    font-size: 10px;
  }
}

/* v1.9.0 authoritative overrides - keep this block last */
:root {
  --artifact-panel-width: clamp(540px, 48vw, 760px);
  --ink: #202123;
  --ink-soft: #5f6368;
  --ink-faint: #8a8d91;
  --sidebar: #f7f7f8;
  --line: #ececee;
  --line-strong: #dcdde0;
  --sidebar-width: 272px;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  transition: width 200ms ease;
}

.sidebar {
  border-right: 1px solid #ededee;
  background: var(--sidebar);
}

.sidebar-topbar {
  min-height: 58px;
  padding: 10px 12px 8px 14px;
}

.conversation-item:hover,
.conversation-item.active,
.profile-button:hover,
.icon-button:hover {
  background: #e9e9eb;
}

.main-panel {
  min-width: 0;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  background: #fff;
}

.topbar {
  padding: 0 16px;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.message-list,
.welcome-view {
  width: min(780px, calc(100% - 44px));
}

.message-list {
  padding: 28px 0 64px;
}

.message-row {
  padding: 19px 0;
}

.message-content {
  color: #242426;
  font-size: 15px;
  line-height: 1.72;
}

.message-row.user .message-column {
  max-width: min(82%, 620px);
}

.message-row.user .message-content {
  padding: 9px 15px;
  border-radius: 18px;
  background: #f4f4f4;
}

.composer-region {
  padding: 0 20px max(10px, env(safe-area-inset-bottom));
  background: #fff;
}

.composer {
  width: min(780px, 100%);
  padding: 8px 10px 7px;
  border: 0;
  border-radius: 24px;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px #e4e4e5, 0 2px 8px rgb(0 0 0 / 5%);
}

.composer:focus-within {
  border: 0;
  box-shadow: inset 0 0 0 1px #d0d1d2, 0 3px 12px rgb(0 0 0 / 7%);
}

.composer textarea {
  min-height: 38px;
  padding: 8px 9px 5px;
  color: #242426;
  font-size: 15px;
}

.artifact-panel {
  width: var(--artifact-panel-width);
  min-width: 540px;
  grid-template-rows: 60px 44px minmax(0, 1fr);
  border-left: 1px solid #dedfe1;
  background: #fff;
  box-shadow: -10px 0 30px rgb(0 0 0 / 8%);
}

.artifact-header {
  padding: 0 13px 0 15px;
  border-bottom-color: #ebebed;
}

.artifact-tabs {
  padding: 5px 11px;
  border-bottom-color: #e8e9ea;
  background: #f8f8f8;
}

.artifact-stage {
  padding: 10px;
  background: #f5f5f5;
}

.artifact-code {
  padding: 20px 22px 80px;
  background: #1e1f22;
  color: #e7e7e8;
  font: 12px/1.65 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

@media (min-width: 1101px) {
  body.artifact-open .app-shell {
    width: calc(100% - var(--artifact-panel-width));
  }

  body.artifact-open .message-list,
  body.artifact-open .welcome-view {
    width: min(680px, calc(100% - 32px));
  }

  body.artifact-open .composer-region {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 1100px) {
  .artifact-panel {
    width: 100vw;
    min-width: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .message-list,
  .welcome-view {
    width: calc(100% - 28px);
  }

  .message-row {
    padding: 15px 0;
  }

  .composer-region {
    padding: 0 8px max(7px, env(safe-area-inset-bottom));
  }
}

/* v1.9.0 final workspace precedence */
:root {
  --artifact-panel-width: clamp(540px, 48vw, 760px);
  --ink: #202123;
  --ink-soft: #5f6368;
  --ink-faint: #8a8d91;
  --sidebar: #f7f7f8;
  --line: #ececee;
  --line-strong: #dcdde0;
  --sidebar-width: 272px;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  transition: width 200ms ease;
}

.sidebar {
  border-right: 1px solid #ededee;
  background: var(--sidebar);
}

.sidebar-topbar {
  min-height: 58px;
  padding: 10px 12px 8px 14px;
}

.new-chat-button,
.search-box,
.conversation-item,
.profile-button {
  border-radius: 7px;
}

.conversation-item:hover,
.conversation-item.active,
.profile-button:hover,
.icon-button:hover {
  background: #e9e9eb;
}

.main-panel {
  min-width: 0;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  background: #fff;
}

.topbar {
  padding: 0 16px;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.message-list,
.welcome-view {
  width: min(780px, calc(100% - 44px));
}

.message-list {
  padding: 28px 0 64px;
}

.message-row {
  padding: 19px 0;
}

.message-content {
  color: #242426;
  font-size: 15px;
  line-height: 1.72;
}

.message-row.user .message-column {
  max-width: min(82%, 620px);
}

.message-row.user .message-content {
  padding: 9px 15px;
  border-radius: 18px;
  background: #f4f4f4;
}

.composer-region {
  padding: 0 20px max(10px, env(safe-area-inset-bottom));
  background: #fff;
}

.composer {
  width: min(780px, 100%);
  padding: 8px 10px 7px;
  border: 0;
  border-radius: 24px;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px #e4e4e5, 0 2px 8px rgb(0 0 0 / 5%);
}

.composer:focus-within {
  box-shadow: inset 0 0 0 1px #d0d1d2, 0 3px 12px rgb(0 0 0 / 7%);
}

.composer textarea {
  min-height: 38px;
  padding: 8px 9px 5px;
  color: #242426;
  font-size: 15px;
}

.artifact-panel {
  width: var(--artifact-panel-width);
  min-width: 540px;
  grid-template-rows: 60px 44px minmax(0, 1fr);
  border-left: 1px solid #dedfe1;
  background: #fff;
  box-shadow: -10px 0 30px rgb(0 0 0 / 8%);
}

.artifact-header {
  padding: 0 13px 0 15px;
  border-bottom-color: #ebebed;
}

.artifact-tabs {
  padding: 5px 11px;
  border-bottom-color: #e8e9ea;
  background: #f8f8f8;
}

.artifact-stage {
  padding: 10px;
  background: #f5f5f5;
}

.artifact-code {
  padding: 20px 22px 80px;
  background: #1e1f22;
  color: #e7e7e8;
  font: 12px/1.65 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

@media (min-width: 1101px) {
  body.artifact-open .app-shell {
    width: calc(100% - var(--artifact-panel-width));
  }

  body.artifact-open .message-list,
  body.artifact-open .welcome-view {
    width: min(680px, calc(100% - 32px));
  }

  body.artifact-open .composer-region {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 1100px) {
  .artifact-panel {
    width: 100vw;
    min-width: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .message-list,
  .welcome-view {
    width: calc(100% - 28px);
  }

  .message-row {
    padding: 15px 0;
  }

  .composer-region {
    padding: 0 8px max(7px, env(safe-area-inset-bottom));
  }
}

/* v1.8 provider diagnostics, Plus usage, and artifact actions */
.provider-capability-note {
  grid-column: 1 / -1;
  margin: 1px 2px 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.45;
}

.member-row {
  grid-template-columns: 34px minmax(120px, 1fr) minmax(150px, 210px) auto auto;
}

.member-usage {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.member-usage > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.member-usage strong {
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.member-usage small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-usage progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #eceeeb;
}

.member-usage progress::-webkit-progress-bar {
  border-radius: 3px;
  background: #eceeeb;
}

.member-usage progress::-webkit-progress-value {
  border-radius: 3px;
  background: #65805b;
}

.quota-current,
.quota-cost-note {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.quota-cost-note {
  margin-top: -4px;
  color: var(--ink-faint);
  font-size: 10px;
}

.message-actions .message-preview-action {
  display: inline-flex;
  width: auto;
  min-width: 68px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #dedede;
  background: #fff;
  color: #3f3f3f;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .member-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 10px 8px;
  }

  .member-usage {
    grid-column: 2 / 4;
  }

  .member-actions {
    grid-column: 2 / 4;
    justify-content: flex-end;
  }
}

/* v1.9 workspace refinement */
:root {
  --artifact-panel-width: clamp(540px, 48vw, 760px);
  --font-ui: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ink: #202123;
  --ink-soft: #5f6368;
  --ink-faint: #8a8d91;
  --sidebar: #f7f7f8;
  --line: #ececee;
  --line-strong: #dcdde0;
  --focus: #4b6b44;
  --sidebar-width: 272px;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  transition: width 200ms ease;
}

.sidebar {
  border-right: 1px solid #ededee;
  background: var(--sidebar);
}

.sidebar-topbar {
  min-height: 58px;
  padding: 10px 12px 8px 14px;
}

.brand img {
  width: 29px;
  height: 29px;
  border-radius: 7px;
}

.brand span {
  font-size: 15px;
  font-weight: 650;
}

.new-chat-button,
.search-box,
.conversation-item,
.profile-button {
  border-radius: 7px;
}

.new-chat-button {
  min-height: 40px;
  margin: 3px 8px 8px;
}

.conversation-select {
  font-size: 13px;
}

.conversation-item:hover,
.conversation-item.active,
.profile-button:hover,
.icon-button:hover {
  background: #e9e9eb;
}

.sidebar-footer {
  padding: 7px 8px 9px;
}

.main-panel {
  min-width: 0;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  background: #fff;
}

.topbar {
  padding: 0 16px;
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.model-button {
  padding: 7px 9px;
  color: #303033;
  font-size: 15px;
  font-weight: 600;
}

.chat-viewport {
  background: #fff;
}

.message-list,
.welcome-view {
  width: min(780px, calc(100% - 44px));
}

.message-list {
  padding: 28px 0 64px;
}

.message-row {
  padding: 19px 0;
}

.message-content {
  color: #242426;
  font-size: 15px;
  line-height: 1.72;
}

.message-row.user .message-column {
  max-width: min(82%, 620px);
}

.message-row.user .message-content {
  padding: 9px 15px;
  border-radius: 18px;
  background: #f4f4f4;
}

.message-content h1,
.message-content h2,
.message-content h3 {
  color: #1f2022;
  font-weight: 650;
}

.message-actions {
  gap: 3px;
  opacity: 0.62;
}

.message-row:hover .message-actions,
.message-actions:focus-within {
  opacity: 1;
}

.artifact-message-status {
  display: grid;
  width: min(520px, 100%);
  min-height: 58px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid #e1e2e3;
  border-radius: 8px;
  background: #fafafa;
}

.artifact-message-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: #e9efe7;
  color: #496443;
}

.artifact-message-icon svg {
  width: 16px;
  height: 16px;
}

.artifact-message-copy {
  display: block;
  min-width: 0;
}

.artifact-message-copy strong,
.artifact-message-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-message-copy strong {
  color: #292a2c;
  font-size: 13px;
  font-weight: 650;
}

.artifact-message-copy small {
  margin-top: 2px;
  color: #777b80;
  font-size: 11px;
}

.artifact-message-status button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid #d9dadc;
  border-radius: 7px;
  background: #fff;
  color: #343538;
  font-size: 12px;
  font-weight: 600;
}

.artifact-message-status button:hover {
  border-color: #c8c9cc;
  background: #f3f3f3;
}

.artifact-message-status button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.artifact-message-status button svg {
  width: 15px;
  height: 15px;
}

.composer-region {
  padding: 0 20px max(10px, env(safe-area-inset-bottom));
  background: #fff;
}

.composer {
  width: min(780px, 100%);
  padding: 8px 10px 7px;
  border: 0;
  border-radius: 24px;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px #e4e4e5, 0 2px 8px rgb(0 0 0 / 5%);
}

.composer:focus-within {
  box-shadow: inset 0 0 0 1px #d0d1d2, 0 3px 12px rgb(0 0 0 / 7%);
}

.composer textarea {
  min-height: 38px;
  padding: 8px 9px 5px;
  color: #242426;
  font-size: 15px;
}

.composer-note {
  margin-top: 6px;
  color: #8a8d91;
  font-size: 10px;
}

.attachment-button,
.send-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.artifact-panel {
  width: var(--artifact-panel-width);
  min-width: 540px;
  grid-template-rows: 60px 44px minmax(0, 1fr);
  border-left: 1px solid #dedfe1;
  background: #fff;
  box-shadow: -10px 0 30px rgb(0 0 0 / 8%);
}

.artifact-header {
  padding: 0 13px 0 15px;
  border-bottom-color: #ebebed;
}

.artifact-title-icon {
  background: #e9efe7;
  color: #496443;
}

.artifact-title strong {
  color: #242528;
  font-size: 13px;
}

.artifact-title small {
  color: #8b8e92;
  font-size: 9px;
}

.artifact-tabs {
  padding: 5px 11px;
  border-bottom-color: #e8e9ea;
  background: #f8f8f8;
}

.artifact-tabs button {
  height: 32px;
  border-radius: 6px;
}

.artifact-tabs button[aria-selected="true"] {
  box-shadow: inset 0 0 0 1px #d8d9db;
}

.artifact-stage {
  padding: 10px;
  background: #f5f5f5;
}

.artifact-stage iframe {
  border-color: #dedfe1;
  border-radius: 6px;
}

.artifact-code {
  padding: 20px 22px 80px;
  background: #1e1f22;
  color: #e7e7e8;
  font: 12px/1.65 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  tab-size: 2;
}

@media (min-width: 1101px) {
  body.artifact-open .app-shell {
    width: calc(100% - var(--artifact-panel-width));
  }

  body.artifact-open .message-list,
  body.artifact-open .welcome-view {
    width: min(680px, calc(100% - 32px));
  }

  body.artifact-open .composer-region {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 1100px) {
  .artifact-panel {
    width: 100vw;
    min-width: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 272px;
  }

  .message-list,
  .welcome-view {
    width: calc(100% - 28px);
  }

  .message-row {
    padding: 15px 0;
  }

  .artifact-message-status {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .artifact-message-status button span {
    display: none;
  }

  .artifact-message-status button {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .composer-region {
    padding: 0 8px max(7px, env(safe-area-inset-bottom));
  }
}

/* v1.7 password controls and sandboxed artifact preview */
.password-input-wrap {
  position: relative;
  display: block;
  margin: 0;
  color: inherit;
  font: inherit;
}

.password-input-wrap input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-faint);
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--sidebar);
  color: var(--ink);
}

.password-toggle svg {
  width: 16px;
  height: 16px;
}

.artifact-panel {
  position: fixed;
  z-index: 85;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  visibility: hidden;
  width: min(720px, calc(100vw - 300px));
  min-width: 520px;
  grid-template-rows: 58px 44px minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: -18px 0 55px rgb(16 23 19 / 16%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.artifact-panel.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.artifact-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.artifact-title,
.artifact-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
}

.artifact-title {
  flex: 1;
  gap: 9px;
  overflow: hidden;
}

.artifact-title-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 7px;
  background: #edf1ea;
  color: #4f7042;
}

.artifact-title-icon svg {
  width: 16px;
  height: 16px;
}

.artifact-title div,
.artifact-title strong,
.artifact-title small {
  display: block;
  min-width: 0;
}

.artifact-title strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-title small {
  margin-top: 1px;
  color: var(--ink-faint);
  font-size: 9px;
  text-transform: uppercase;
}

.artifact-header-actions {
  flex: 0 0 auto;
  gap: 2px;
}

.artifact-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.artifact-tabs button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 12px;
}

.artifact-tabs button[aria-selected="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.artifact-tabs svg {
  width: 14px;
  height: 14px;
}

.artifact-stage {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  background: #f1f2f0;
}

.artifact-stage iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
}

.artifact-code {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: auto;
  padding: 18px;
  background: #171a18;
  color: #e6ebe5;
  font: 12px/1.6 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  white-space: pre;
}

.artifact-code code {
  font: inherit;
}

@media (max-width: 900px) {
  .artifact-panel {
    width: 100vw;
    min-width: 0;
    border-left: 0;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .welcome-view {
    justify-content: flex-start;
    padding-top: 42px;
  }

  .welcome-subtitle {
    margin-bottom: 20px;
  }
}

@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;
  }
}

/* v1.3.0 interface refinement */
:root {
  --ink: #0d0d0d;
  --ink-soft: #5f5f5f;
  --ink-faint: #8b8b8b;
  --sidebar: #f9f9f9;
  --line: #ececec;
  --line-strong: #d9d9d9;
  --dark: #212121;
  --focus: #474747;
}

body {
  font-size: 15px;
}

button,
input,
textarea,
select {
  font-size: 14px;
}

.login-view {
  padding: 82px 24px 58px;
  background: var(--paper);
}

.login-view::before {
  display: none;
}

.login-brand {
  top: 26px;
  left: 28px;
  gap: 9px;
  font-size: 19px;
}

.login-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 9%);
}

.login-panel {
  width: min(400px, 100%);
  padding: 12px 18px 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-kicker {
  display: none;
}

.login-panel h1 {
  font-size: 31px;
  font-weight: 680;
  text-align: center;
}

.login-subtitle {
  margin: 10px 0 30px;
  font-size: 14px;
  text-align: center;
}

.login-field {
  margin-top: 18px;
}

.login-field > span:first-child {
  margin-bottom: 8px;
  color: #4d4d4d;
  font-size: 13px;
  font-weight: 650;
}

.login-input-wrap {
  height: 52px;
  padding: 0 15px;
  border-radius: 8px;
  background: #fff;
}

.login-input-wrap:focus-within {
  border-color: #777;
  box-shadow: 0 0 0 1px #777;
}

.login-input-wrap input {
  font-size: 15px;
}

.login-button {
  height: 52px;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  border-radius: 8px;
  font-size: 15px;
}

.login-button:hover {
  background: #303030;
}

.login-footer {
  bottom: 22px;
  font-size: 11px;
}

.sidebar {
  border-right: 0;
  background: #f9f9f9;
}

.sidebar-topbar {
  min-height: 58px;
  padding: 10px 10px 8px 14px;
}

.brand {
  gap: 9px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: none;
}

.brand span {
  font-size: 16px;
  font-weight: 700;
}

.icon-button {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 8px;
}

.icon-button:hover {
  background: #ececec;
}

.new-chat-button {
  min-height: 42px;
  margin: 4px 8px 10px;
  padding: 0 10px;
  font-size: 14px;
}

.new-chat-button span {
  font-weight: 600;
}

.new-chat-button kbd {
  border: 0;
  background: transparent;
  font-size: 10px;
  opacity: 0;
  transition: opacity 140ms ease;
}

.new-chat-button:hover kbd {
  opacity: 1;
}

.search-box {
  min-height: 40px;
  margin: 0 8px 10px;
  padding: 0 10px;
  font-size: 14px;
}

.search-box:hover,
.search-box:focus-within {
  border-color: transparent;
  background: #ececec;
}

.search-shortcut {
  border: 0;
  opacity: 0.55;
}

.conversation-nav {
  padding: 5px 8px 14px;
}

.conversation-group + .conversation-group {
  margin-top: 20px;
}

.conversation-group h2 {
  margin: 0 8px 8px;
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
}

.conversation-item {
  min-height: 38px;
  border-radius: 8px;
}

.conversation-item:hover,
.conversation-item.active {
  background: #ececec;
}

.conversation-select {
  height: 38px;
  padding-left: 10px;
  font-size: 13px;
}

.conversation-item.active .conversation-select {
  font-weight: 600;
}

.conversation-menu-button:hover {
  background: #dedede;
}

.sidebar-footer {
  padding: 8px;
  border-top: 0;
}

.sidebar-footer > .api-status {
  display: none;
}

.profile-button {
  min-height: 52px;
  padding: 6px 8px;
  border-radius: 8px;
}

.profile-button:hover {
  background: #ececec;
}

.profile-copy strong {
  font-size: 13px;
}

.profile-copy small {
  font-size: 11px;
}

.app-version {
  margin: 3px 8px 0;
  font-size: 10px;
}

.profile-menu,
.conversation-actions-menu,
.tools-menu,
.model-menu {
  border-color: #e4e4e4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.profile-menu button,
.conversation-actions-menu button {
  min-height: 42px;
  font-size: 13px;
}

.profile-menu-provider {
  min-height: 40px;
  font-size: 11px;
}

.main-panel {
  grid-template-rows: 56px minmax(0, 1fr) auto;
}

.topbar {
  padding: 0 14px;
  border-bottom: 0;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(14px);
}

.model-button {
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 650;
}

.model-button:hover {
  background: #f2f2f2;
}

.model-menu {
  width: 340px;
  padding: 7px;
}

.model-menu-group h3 {
  margin: 7px 10px;
  font-size: 11px;
  text-transform: none;
}

.model-option {
  min-height: 56px;
  border-radius: 7px;
}

.model-option-copy strong {
  font-size: 13px;
}

.model-option-copy small {
  font-size: 11px;
  line-height: 1.45;
}

.chat-viewport {
  scrollbar-color: #d8d8d8 transparent;
}

.welcome-view {
  width: min(768px, calc(100% - 40px));
  justify-content: flex-end;
  padding: 72px 0 54px;
  text-align: left;
}

.welcome-view h1 {
  width: 100%;
  margin-bottom: 28px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
}

.prompt-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prompt-grid button {
  min-height: 58px;
  padding: 10px 13px;
  border-color: #e4e4e4;
  border-radius: 8px;
  background: #fff;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.35;
}

.prompt-grid button:hover {
  border-color: #d6d6d6;
  background: #f7f7f7;
  transform: none;
}

.prompt-grid button svg:first-child {
  color: #656565;
}

.message-list {
  width: min(768px, calc(100% - 40px));
  padding: 30px 0 56px;
}

.message-row {
  display: flex;
  width: 100%;
  padding: 18px 0;
}

.message-column {
  width: 100%;
  min-width: 0;
}

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

.message-row.user .message-column {
  width: auto;
  max-width: 78%;
}

.message-content {
  color: #202020;
  font-size: 16px;
  line-height: 1.72;
}

.message-row.user .message-content {
  padding: 9px 16px;
  border-radius: 18px;
  background: #f4f4f4;
  line-height: 1.55;
}

.message-content p,
.message-content ul,
.message-content ol,
.message-content pre,
.message-content blockquote {
  margin-bottom: 16px;
}

.message-content h1,
.message-content h2,
.message-content h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.message-content pre {
  padding: 16px;
  border-color: #2c2c2c;
  border-radius: 8px;
  background: #1f1f1f;
}

.message-content code {
  background: #ededed;
}

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

.message-actions {
  min-height: 32px;
  margin-top: 7px;
}

.message-actions button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.message-actions button:hover {
  background: #f1f1f1;
}

.composer-region {
  padding: 0 18px max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 78%, rgb(255 255 255 / 0%));
}

.composer {
  width: min(768px, 100%);
  padding: 9px 10px 8px;
  border-color: #e5e5e5;
  border-radius: 26px;
  background: #f4f4f4;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 2%), 0 4px 14px rgb(0 0 0 / 7%);
}

.composer:focus-within {
  border-color: #dedede;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 3%), 0 5px 18px rgb(0 0 0 / 8%);
}

.composer textarea {
  min-height: 42px;
  max-height: 200px;
  padding: 9px 9px 6px;
  font-size: 16px;
  line-height: 1.5;
}

.composer textarea::placeholder {
  color: #737373;
}

.composer-toolbar {
  min-height: 40px;
}

.composer-tools {
  gap: 5px;
}

.attachment-button {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
}

.attachment-button:hover {
  background: #e8e8e8;
}

.tools-menu {
  width: 294px;
  padding: 7px;
}

.tools-menu > button {
  min-height: 58px;
  padding: 7px 9px;
  border-radius: 7px;
}

.tools-menu > button strong {
  font-size: 13px;
}

.tools-menu > button small {
  margin-top: 3px;
  font-size: 11px;
}

.active-tool-pill {
  height: 36px;
  border-color: #d8d8d8;
  border-radius: 18px;
  background: #fff;
  font-size: 12px;
}

.image-setting-button {
  height: 36px;
  border-color: #d8d8d8;
  border-radius: 18px;
  background: #fff;
  font-size: 11px;
}

.image-setting-menu {
  border-color: #e4e4e4;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgb(0 0 0 / 13%);
}

.send-button {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 50%;
  background: #212121;
}

.send-button:hover {
  background: #000;
  transform: none;
}

.send-button:disabled {
  background: #d7d7d7;
  color: #fff;
  opacity: 1;
}

.composer-note {
  margin-top: 6px;
  color: #858585;
  font-size: 11px;
}

@media (max-width: 760px) {
  .login-view {
    padding: 72px 12px 50px;
  }

  .login-brand {
    top: 18px;
    left: 18px;
  }

  .login-panel {
    padding: 10px 10px 18px;
  }

  .login-panel h1 {
    font-size: 28px;
  }

  .sidebar {
    width: min(86vw, 320px);
  }

  .main-panel {
    grid-template-rows: 54px minmax(0, 1fr) auto;
  }

  .topbar {
    padding: 0 8px;
  }

  .model-picker {
    left: 50%;
    max-width: calc(100% - 112px);
  }

  .model-button {
    padding: 7px 8px;
    font-size: 15px;
  }

  .model-menu {
    top: 50px;
    right: 8px;
    left: 8px;
  }

  .welcome-view {
    width: calc(100% - 28px);
    padding: 54px 0 30px;
  }

  .welcome-view h1 {
    margin-bottom: 22px;
    font-size: 27px;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .prompt-grid button {
    min-height: 52px;
  }

  .message-list {
    width: calc(100% - 28px);
    padding: 18px 0 36px;
  }

  .message-row {
    padding: 14px 0;
  }

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

  .message-content {
    font-size: 15px;
    line-height: 1.68;
  }

  .message-row.user .message-content {
    padding: 8px 13px;
    border-radius: 17px;
  }

  .message-actions {
    opacity: 1;
  }

  .composer-region {
    padding: 0 8px max(6px, env(safe-area-inset-bottom));
  }

  .composer {
    padding: 7px 8px 6px;
    border-radius: 23px;
  }

  .composer textarea {
    min-height: 38px;
    padding: 8px 7px 5px;
    font-size: 16px;
  }

  .composer-note {
    margin-top: 4px;
    font-size: 9px;
  }

  .tools-menu {
    width: min(294px, calc(100vw - 34px));
  }

  .image-setting-menu {
    right: 8px;
    bottom: 84px;
    left: 8px;
  }

  .aspect-ratio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* v1.3.1 final precedence */
body {
  font-family: var(--font-ui);
  font-size: 14px;
}

.login-panel {
  width: min(384px, 100%);
}

.login-panel h1 {
  font-size: 30px;
  font-weight: 600;
}

.login-field > span:first-child,
.login-button,
.brand span,
.new-chat-button span,
.conversation-group h2,
.profile-copy strong,
.model-button,
.model-menu-group h3,
.model-option-copy strong,
.welcome-view h1,
.tools-menu > button strong,
.image-setting-button strong {
  font-weight: 600;
}

.sidebar-topbar {
  min-height: 56px;
}

.conversation-item:hover,
.conversation-item.active {
  background: #e9e9e9;
}

.conversation-select {
  color: #282828;
  font-size: 13px;
  font-weight: 400;
}

.conversation-item.active .conversation-select {
  font-weight: 500;
}

.profile-copy strong {
  font-size: 13px;
}

.profile-copy small {
  font-size: 11px;
}

.topbar {
  background: rgb(255 255 255 / 92%);
}

.model-button {
  font-size: 16px;
}

.model-menu-group h3 {
  font-size: 12px;
}

.model-option-copy strong {
  font-size: 14px;
}

.model-option-copy small {
  color: #747474;
  font-size: 12px;
}

.welcome-view h1 {
  margin-bottom: 24px;
  font-size: 29px;
}

.prompt-grid button {
  min-height: 56px;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 14px;
  border-color: #e5e5e5;
  background: #fff;
  color: #4c4c4c;
  font-size: 13px;
  font-weight: 400;
}

.prompt-grid button:hover {
  border-color: #dcdcdc;
  background: #f7f7f7;
}

.prompt-grid button svg:last-child {
  display: none;
}

.message-list {
  width: min(760px, calc(100% - 40px));
}

.message-content {
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.message-row.user .message-content {
  padding: 9px 15px;
  background: #f1f1f1;
  line-height: 1.55;
}

.composer {
  width: min(760px, 100%);
  padding: 8px 10px 7px;
  border: 0;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px #e1e1e1, 0 3px 10px rgb(0 0 0 / 5%);
}

.composer:focus-within {
  border: 0;
  box-shadow: inset 0 0 0 1px #cecece, 0 4px 13px rgb(0 0 0 / 6%);
}

.composer textarea {
  min-height: 36px;
  padding: 7px 10px 4px;
  color: #202020;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.composer textarea::placeholder {
  color: #747474;
}

.composer-toolbar {
  min-height: 36px;
}

.attachment-button,
.send-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.active-tool-pill,
.image-setting-button {
  height: 34px;
  border-color: #d5d5d5;
  background: #fff;
  color: #424242;
  font-size: 12px;
}

.composer-note {
  color: #858585;
  font-size: 11px;
}

.tools-menu > button strong {
  font-size: 14px;
}

.tools-menu > button small {
  color: #757575;
  font-size: 12px;
}

@media (max-width: 760px) {
  .welcome-view h1 {
    margin-bottom: 20px;
    font-size: 27px;
  }

  .prompt-grid button {
    min-height: 50px;
  }

  .message-list {
    width: calc(100% - 28px);
  }

  .message-content {
    font-size: 15px;
  }

  .composer {
    width: 100%;
    padding: 7px 8px 6px;
  }

  .composer textarea {
    min-height: 36px;
    padding: 7px 8px 4px;
  }

  .composer-note {
    font-size: 10px;
  }
}
