@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --font: Vazirmatn, Tahoma, Arial, sans-serif;
  --page: #f8f9fc;
  --sidebar: #fcfcfe;
  --surface: #fff;
  --surface-soft: #f4f4f9;
  --text: #29283c;
  --muted: #727488;
  --subtle: #8b8da0;
  --border: #e9e9f1;
  --accent: #7160dc;
  --accent-hover: #6050ca;
  --accent-soft: #efedfb;
  --user-bg: #eeecfa;
  --green: #48a88d;
  --shadow: 0 8px 32px rgba(47, 42, 87, 0.05);
  --sidebar-width: 278px;
  --danger: #cf5a65;
  --danger-soft: #fff0f2;
  color-scheme: light;
}
[data-theme="dark"] {
  --page: #15151e;
  --sidebar: #1b1b26;
  --surface: #22222f;
  --surface-soft: #292937;
  --text: #e8e7f4;
  --muted: #a4a3ba;
  --subtle: #73738b;
  --border: #30303f;
  --accent: #a08afb;
  --accent-hover: #ae9cfc;
  --accent-soft: #322b4d;
  --user-bg: #302b43;
  --green: #64c4a2;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  --danger: #f28c96;
  --danger-soft: #3b262e;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
textarea {
  outline: none;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #9180ed77;
  outline-offset: 3px;
}
::selection {
  background: #c9befa88;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.app-shell {
  display: flex;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  transition:
    background 0.18s,
    color 0.18s;
}
.icon-button:hover {
  background: var(--surface-soft);
  color: var(--text);
}
.icon-button:disabled {
  opacity: 0.35;
}
.mobile-only {
  display: none;
}
/* The quiet, right-hand workspace. */
.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 30px 20px 16px;
  background: var(--sidebar);
  border-left: 1px solid var(--border);
  z-index: 35;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 8px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, #8b78eb, #6654d7);
  box-shadow: 0 5px 12px #7461db23;
  color: white;
}
.brand-mark .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.4;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-text strong {
  font-size: 23px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.brand-dot {
  color: var(--accent);
}
.brand-text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.new-chat {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 46px;
  padding: 0 15px;
  color: white;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #7060dc;
  box-shadow: 0 4px 10px #7664db13;
  transition:
    background 0.18s,
    transform 0.18s;
}
.new-chat:hover {
  background: #6150d0;
  transform: translateY(-1px);
}
.new-chat:disabled {
  opacity: 0.6;
  transform: none;
}
.new-chat .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}
.new-chat > span:nth-child(2) {
  font-weight: 600;
  font-size: 14px;
}
.new-shortcut {
  margin-right: auto;
  font: 18px system-ui;
  opacity: 0.5;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0 11px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
  transition: border-color 0.18s;
}
.search-box:focus-within {
  border-color: #a498e7;
}
.search-box .icon {
  width: 16px;
  height: 16px;
  opacity: 0.65;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--text);
  font-size: 12px;
  background: transparent;
}
.search-box input::placeholder {
  color: var(--subtle);
}
.search-box input:focus-visible {
  outline: 0;
}
.search-box kbd {
  white-space: nowrap;
  direction: ltr;
  font: 10px system-ui;
  color: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 3px;
}
.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.count-badge {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 20px;
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 10px;
  color: var(--muted);
}
.chat-list {
  min-height: 80px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -7px;
  padding: 0 7px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.empty-history {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 30px 8px;
  color: var(--subtle);
}
.empty-history .empty-history-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 1px dashed var(--border);
  border-radius: 15px;
  margin-bottom: 13px;
  color: #b0afc5;
}
.empty-history .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.3;
}
.empty-history strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.empty-history p {
  font-size: 11px;
  line-height: 1.9;
  margin: 6px 0 0;
  max-width: 175px;
}
.history-group-label {
  font-size: 11px;
  color: var(--subtle);
  padding: 15px 10px 8px;
}
.chat-row {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 9px;
  margin-bottom: 4px;
  min-height: 41px;
  transition: background 0.18s;
}
.chat-row:hover {
  background: var(--surface-soft);
}
.chat-row.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.chat-row.active:before {
  content: "";
  position: absolute;
  right: 0;
  top: 13px;
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: var(--accent);
}
.chat-row-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  padding: 11px 11px;
  border: 0;
  background: transparent;
  text-align: right;
  cursor: pointer;
}
.chat-row-main .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.chat-row.active .chat-row-main .icon {
  color: var(--accent);
}
.chat-row-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 500;
}
.chat-row-delete {
  width: 26px;
  height: 28px;
  opacity: 0;
  margin-left: 5px;
}
.chat-row-delete .icon {
  width: 14px;
  height: 14px;
}
.chat-row:hover .chat-row-delete,
.chat-row-delete:focus-visible {
  opacity: 0.7;
}
.chat-row-delete:hover {
  color: var(--danger);
}
.no-search-results {
  font-size: 11px;
  color: var(--muted);
  padding: 18px 10px;
  text-align: center;
}
.sidebar-bottom {
  padding-top: 20px;
  flex-shrink: 0;
}
.little-note {
  position: relative;
  padding: 19px 16px 16px;
  border-radius: 12px;
  background: linear-gradient(125deg, #f0edf9, #f6f3fd 60%, #f3edf7);
  overflow: hidden;
  border: 1px solid #ebe5f580;
}
.note-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #ffffff90;
  color: #9a86cb;
  border: 1px solid #e8dff080;
  border-radius: 9px;
  margin-bottom: 11px;
}
.note-icon .icon {
  width: 17px;
  height: 17px;
}
.little-note strong {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  color: #706582;
}
.little-note p {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.95;
  color: #93879e;
  max-width: 185px;
}
.note-decoration {
  position: absolute;
  font-size: 122px;
  line-height: 1;
  left: -9px;
  top: -2px;
  color: #e4dbed88;
  font-family: Arial;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 3px 13px;
  border-bottom: 1px solid var(--border);
}
.privacy-button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 7px 3px;
}
.privacy-button:hover {
  color: var(--accent);
}
.privacy-button .icon {
  width: 16px;
  height: 16px;
}
.theme-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.theme-toggle .icon {
  width: 16px;
  height: 16px;
}
.service-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 3px 0;
  font-size: 10px;
  color: var(--subtle);
}
.service-credit b {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}
.version-label {
  margin-right: auto;
  color: var(--subtle);
  font-family: var(--font);
  font-size: 9px;
}
/* Header and model selection. */
.main-panel {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(
    ellipse at 49% 40%,
    var(--surface) 0%,
    var(--page) 70%
  );
}
.topbar {
  height: 82px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 20px;
  background: var(--page);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.conversation-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.heading-eyebrow {
  color: var(--muted);
  font-size: 10px;
}
.conversation-heading h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.7;
}
.header-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
}
.connection-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px #48a88d10;
}
.connection-status.is-busy .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px #8d78e922;
  animation: pulse 1.7s ease-in-out infinite;
}
.connection-status.is-error .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px #cf5a6510;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.model-selector {
  position: relative;
}
.model-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 211px;
  text-align: right;
  box-shadow: 0 2px 5px #29283c02;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.model-trigger:hover,
.model-trigger[aria-expanded="true"] {
  border-color: #b9afe6;
  box-shadow: 0 2px 10px #7864e010;
}
.model-trigger:disabled {
  opacity: 0.6;
}
.model-symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
  color: #bf795a;
  background: #bf795a13;
  font:
    bold 19px Georgia,
    serif;
}
.selected-model-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.selected-model-info small {
  color: var(--muted);
  font-size: 9px;
}
.selected-model-info b {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  text-align: right;
}
.model-chevron {
  width: 15px;
  height: 15px;
  color: var(--muted);
  margin-right: 7px;
  transition: transform 0.2s;
}
.model-trigger[aria-expanded="true"] .model-chevron {
  transform: rotate(180deg);
}
.model-options {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 328px;
  max-height: min(660px, calc(100dvh - 110px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 14px 50px #25233918;
  padding: 7px;
  z-index: 45;
  animation: popover-in 0.15s ease-out;
}
.model-menu-heading {
  padding: 14px 13px 13px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.model-menu-heading strong {
  font-size: 14px;
  font-weight: 650;
}
.model-menu-heading span {
  font-size: 11px;
  color: var(--muted);
}
.model-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 10px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: right;
  transition: background 0.15s;
}
.model-option:hover,
.model-option:focus-visible {
  background: var(--surface-soft);
}
.model-option[aria-selected="true"] {
  background: var(--accent-soft);
}
.model-option .model-symbol {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 19px;
}
.model-option-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.model-option-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.model-option-title b {
  font-size: 12px;
  font-weight: 600;
}
.model-option-tag {
  font-size: 9px;
  color: var(--muted);
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.model-option-description {
  font-size: 11px;
  color: var(--muted);
}
.model-check {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
}
.model-option[aria-selected="true"] .model-check {
  opacity: 1;
}
.model-menu-foot {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 6px 0;
  padding: 13px 5px 7px;
  font-size: 10px;
  color: var(--muted);
}
.model-menu-foot .icon {
  width: 14px;
  height: 14px;
}
.more-button {
  width: 30px;
  height: 35px;
}
.conversation-menu-wrap {
  position: relative;
}
.conversation-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  padding: 7px;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 35px #25233914;
  z-index: 46;
  animation: popover-in 0.15s ease-out;
}
.conversation-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: right;
  padding: 11px 9px;
  font-size: 11px;
  background: none;
  border: 0;
  border-radius: 7px;
}
.conversation-menu button:hover {
  background: var(--surface-soft);
}
.conversation-menu button:disabled {
  opacity: 0.45;
}
.conversation-menu .icon {
  width: 16px;
  height: 16px;
}
.danger-text {
  color: var(--danger) !important;
}
/* Welcome: airy typography, delicate shapes, useful invitations. */
.chat-viewport {
  position: relative;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 25px 40px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.welcome {
  max-width: 896px;
  width: 100%;
  margin: auto;
  text-align: center;
  padding: 4px 0 10px;
  animation: welcome-in 0.55s ease-out;
}
.welcome-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #a09bb3;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 12px;
}
.welcome-line {
  width: 29px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8d2e8);
}
.welcome-line:last-child {
  transform: rotate(180deg);
}
.hero-mark {
  position: relative;
  width: 132px;
  height: 88px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}
.hero-core {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(140deg, #f3edff 4%, #ebe5fb 60%, #dcd2f7);
  transform: rotate(-7deg);
  box-shadow:
    0 6px 23px #9c83d321,
    inset 1px 1px 0 #ffffffb3;
  color: #8e75cb;
  border: 1px solid #e0d5f488;
}
.hero-core .icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.3;
  transform: rotate(7deg);
}
.hero-orbit {
  position: absolute;
  width: 92px;
  height: 92px;
  top: -3px;
  border: 1px solid #e9e1f370;
  border-radius: 50%;
}
.orbit-one {
  transform: rotate(-22deg) scaleX(1.24);
}
.orbit-two {
  transform: rotate(38deg) scaleX(1.31);
  border-color: #ede7f070;
}
.floating-spark {
  position: absolute;
  font-family: Arial;
  color: #d5c5ee;
  font-weight: 400;
}
.spark-one {
  font-size: 25px;
  right: 9px;
  top: 5px;
}
.spark-two {
  font-size: 12px;
  left: 12px;
  bottom: 13px;
  color: #c6b6e3;
}
.hero-small-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  right: 16px;
  bottom: 18px;
  background: #b9a6d6;
}
.welcome h1 {
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.48;
  margin: 0;
  color: var(--text);
}
.welcome h1 span {
  display: block;
  font-size: 35px;
  line-height: 1.6;
  font-weight: 700;
  color: #9b8ab9;
  letter-spacing: -1.1px;
}
.welcome-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.95;
  margin: 12px auto 0;
  font-weight: 400;
  max-width: 550px;
}
.hero-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 10px;
}
.hero-features > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
}
.feature-dot.violet {
  background: #a494d6;
}
.feature-dot.green {
  background: #82b5a4;
}
.feature-dot.amber {
  background: #d0ad78;
}
.suggestion-section {
  margin-top: 30px;
  text-align: right;
}
.suggestion-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px 12px;
  font-size: 11px;
  color: var(--subtle);
}
.suggestion-label .icon {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
  opacity: 0.75;
}
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.suggestion-card {
  position: relative;
  padding: 15px 14px 14px;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 4px 12px #3b335c02;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  min-height: 142px;
}
.suggestion-card:hover {
  transform: translateY(-3px);
  border-color: #c9bde8;
  box-shadow: 0 9px 20px #76649a0a;
}
.suggestion-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.suggestion-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
}
.suggestion-icon .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}
.suggestion-icon.lavender {
  background: #f1edfb;
  color: #9b80c9;
}
.suggestion-icon.peach {
  background: #fcf0e9;
  color: #c79777;
}
.suggestion-icon.mint {
  background: #edf6f2;
  color: #73a68c;
}
.suggestion-icon.blue {
  background: #edf2fc;
  color: #8a9fc7;
}
.suggestion-arrow {
  width: 14px;
  height: 14px;
  color: #b4b2c2;
  transition:
    color 0.2s,
    transform 0.2s;
}
.suggestion-card:hover .suggestion-arrow {
  color: var(--accent);
  transform: translate(-2px, -2px);
}
.suggestion-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
  white-space: normal;
}
.suggestion-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 5px 0 0;
}
/* Composer, always within reach. */
.composer-area {
  flex-shrink: 0;
  padding: 9px 40px 20px;
  background: linear-gradient(0deg, var(--page) 75%, transparent);
  width: 100%;
  z-index: 25;
}
.composer {
  max-width: 896px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid #dedce9;
  border-radius: 17px;
  padding: 18px 18px 13px;
  box-shadow: 0 5px 24px #43397606;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.composer:focus-within {
  border-color: #b9a9e5;
  box-shadow:
    0 5px 25px #7160dc09,
    0 0 0 3px #7160dc03;
}
.composer textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 180px;
  resize: none;
  border: 0;
  padding: 0 1px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  line-height: 1.9;
  overflow-y: auto;
  scrollbar-width: thin;
}
.composer textarea::placeholder {
  color: var(--muted);
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.feature-button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.feature-button .icon {
  width: 15px;
  height: 15px;
  stroke-width: 1.55;
}
.feature-button:hover {
  background: var(--surface-soft);
  color: var(--text);
}
.feature-button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #b6a4e877;
}
.feature-button:disabled {
  opacity: 0.55;
}
.toolbar-divider {
  width: 1px;
  height: 17px;
  background: var(--border);
  margin: 0 8px;
}
.live-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.live-bars {
  height: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.live-bars i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: #a99bc8;
  height: 5px;
}
.live-bars i:nth-child(2) {
  height: 10px;
}
.live-bars i:nth-child(3) {
  height: 7px;
}
.is-streaming .live-bars i {
  animation: live-wave 1s infinite ease-in-out;
}
.is-streaming .live-bars i:nth-child(2) {
  animation-delay: 0.15s;
}
.is-streaming .live-bars i:nth-child(3) {
  animation-delay: 0.3s;
}
.send-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.keyboard-hint {
  color: var(--subtle);
  font-size: 10px;
  white-space: nowrap;
}
.keyboard-hint kbd {
  font-family: var(--font);
  font-size: 10px;
  color: var(--muted);
}
.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  padding: 9px 13px;
  min-width: 78px;
  height: 37px;
  color: #fff;
  background: #7160dc;
  box-shadow: 0 3px 8px #7360cf12;
  transition:
    background 0.2s,
    transform 0.2s;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}
.send-button .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.send-button:hover:not(:disabled) {
  background: #5f4dcc;
  transform: translateY(-1px);
}
.send-button:disabled {
  background: #eeebf7;
  color: #b4acca;
  box-shadow: none;
}
.send-button.is-stop {
  background: #eeeaf8;
  color: #7d67b7;
}
.send-button.is-stop:hover {
  background: #e5dff4;
}
.send-button.is-stop .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke-width: 0;
}
.composer-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.8;
}
.composer-footnote .icon {
  width: 12px;
  height: 12px;
  stroke-width: 1.5;
  opacity: 0.65;
}
.composer-footnote kbd {
  font-family: var(--font);
  font-size: 8px;
  direction: ltr;
  display: inline-block;
}
.footnote-dot {
  margin: 0 2px;
}
/* Conversations and safe Markdown. */
.messages {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding-top: 8px;
  flex: 1;
  min-width: 0;
}
.message {
  margin-bottom: 31px;
  animation: message-in 0.22s ease-out;
  min-width: 0;
}
.message-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.message-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  flex-shrink: 0;
}
.message-avatar .icon {
  width: 17px;
  height: 17px;
}
.message-user .message-avatar {
  background: #ececf3;
  color: #9996ab;
}
.message-assistant .message-avatar {
  background: var(--accent-soft);
  color: var(--accent);
}
.message-assistant .message-avatar .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.4;
}
.message-author {
  font-size: 12px;
  font-weight: 600;
}
.message-time {
  font-size: 9px;
  color: var(--subtle);
  margin-right: auto;
}
.message-model {
  direction: ltr;
  font-family: var(--font);
  font-size: 9px;
  color: var(--muted);
  margin-right: 2px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.message-body {
  margin-right: 39px;
  font-size: 15px;
  line-height: 2.05;
  overflow-wrap: anywhere;
  min-width: 0;
}
.message-user .message-body {
  display: table;
  max-width: calc(100% - 39px);
  min-width: 70px;
  background: var(--user-bg);
  border: 1px solid #b2a4d714;
  padding: 13px 18px;
  border-radius: 14px 3px 14px 14px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 2;
}
.message-assistant .message-body {
  color: var(--text);
  padding: 0 1px;
}
.markdown p {
  margin: 0 0 1em;
}
.markdown > *:last-child {
  margin-bottom: 0;
}
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
  font-family: var(--font);
  font-weight: 700;
  margin: 1.1em 0 0.6em;
  line-height: 1.8;
}
.markdown h1 {
  font-size: 24px;
}
.markdown h2 {
  font-size: 21px;
}
.markdown h3 {
  font-size: 18px;
}
.markdown h4 {
  font-size: 15px;
}
.markdown ul,
.markdown ol {
  padding-inline-start: 24px;
  margin: 0.7em 0 1em;
}
.markdown li {
  margin: 0.25em 0;
}
.markdown li > p {
  margin: 0.25em 0;
}
.markdown a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.markdown strong {
  font-weight: 700;
}
.markdown blockquote {
  border-right: 3px solid #b4a1df;
  background: var(--surface-soft);
  border-radius: 7px;
  padding: 9px 15px;
  margin: 1em 0;
  color: var(--muted);
}
.markdown code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85em;
  border-radius: 5px;
  padding: 2px 6px;
  direction: ltr;
  unicode-bidi: isolate;
}
.markdown pre {
  direction: ltr;
  text-align: left;
  position: relative;
  margin: 1.3em 0;
  background: #262633;
  color: #ebeaf6;
  padding: 46px 20px 18px;
  border: 1px solid #313140;
  border-radius: 11px;
  overflow-x: auto;
  line-height: 1.8;
  font-size: 12px;
  scrollbar-width: thin;
  scrollbar-color: #545062 transparent;
}
.markdown pre code {
  display: block;
  background: transparent;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: inherit;
  padding: 0;
  white-space: pre;
  border: 0;
}
.code-language {
  position: absolute;
  left: 16px;
  top: 12px;
  color: #9a98b1;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 9px;
  line-height: 1.7;
}
.code-copy {
  position: absolute;
  right: 10px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: 9px;
  border: 1px solid #535064;
  background: #373544;
  color: #c9c6dc;
  border-radius: 5px;
  padding: 4px 7px;
  line-height: 1.5;
}
.code-copy:hover {
  background: #444050;
}
.code-copy .icon {
  width: 12px;
  height: 12px;
}
.markdown table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 12px;
}
.markdown th,
.markdown td {
  border: 1px solid var(--border);
  padding: 9px 13px;
  text-align: start;
  min-width: 95px;
}
.markdown th {
  background: var(--surface-soft);
  font-weight: 600;
}
.markdown hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5em 0;
}
.message-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 12px 39px 0 0;
  color: var(--subtle);
}
.message-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 5px 7px;
  color: var(--muted);
  font-size: 10px;
}
.message-action:hover {
  background: var(--surface-soft);
  color: var(--muted);
}
.message-action .icon {
  width: 14px;
  height: 14px;
}
.message-action:disabled {
  opacity: 0.45;
}
.message-duration {
  margin-right: 7px;
  font-size: 9px;
  color: var(--subtle);
}
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  min-height: 39px;
}
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
}
.typing-dots i {
  width: 4px;
  height: 4px;
  background: #ad9ccf;
  border-radius: 50%;
  animation: typing 1.3s infinite;
}
.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.message.streaming.has-content .markdown:after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 14px;
  margin-inline-start: 5px;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}
.message-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 12px 39px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.message-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.message-note.error {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #dc7b8622;
}
.scroll-bottom {
  position: fixed;
  left: calc((100vw - var(--sidebar-width)) / 2);
  bottom: 187px;
  transform: translateX(-50%);
  z-index: 24;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 3px 12px #2b264211;
  border-radius: 50%;
  color: var(--muted);
}
.scroll-bottom .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}
/* Dialogs and small feedback. */
.toast {
  position: fixed;
  bottom: 25px;
  left: calc((100vw - var(--sidebar-width)) / 2);
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  max-width: calc(100vw - 30px);
  background: var(--text);
  color: var(--surface);
  border-radius: 11px;
  box-shadow: 0 6px 20px #22212d20;
  animation: toast-in 0.2s ease-out;
  font-size: 11px;
  white-space: nowrap;
}
.toast .icon {
  width: 17px;
  height: 17px;
}
.app-dialog {
  color: var(--text);
  background: var(--surface);
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 21px;
  padding: 31px;
  margin: auto;
  box-shadow: 0 20px 70px #1b19283a;
  animation: popover-in 0.2s ease-out;
  text-align: right;
  font-family: var(--font);
}
.app-dialog::backdrop {
  background: #25223266;
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  top: 14px;
  left: 14px;
}
.dialog-hero-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.dialog-hero-icon .icon {
  width: 24px;
  height: 24px;
}
.app-dialog h2 {
  font-size: 20px;
  line-height: 1.8;
  margin: 0 0 12px;
  font-weight: 700;
}
.app-dialog > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2.1;
  margin: 0 0 22px;
}
.privacy-detail {
  display: flex;
  gap: 12px;
  padding: 16px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-top: 10px;
}
.privacy-detail > .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 3px;
}
.privacy-detail strong {
  font-size: 12px;
  font-weight: 600;
}
.privacy-detail p {
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
  margin: 6px 0 0;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  border-radius: 9px;
  padding: 11px 15px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.primary-button {
  color: white;
  background: #7160dc;
}
.primary-button:hover {
  background: #6050ca;
}
.secondary-button {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}
.secondary-button:hover {
  background: var(--surface-soft);
}
.secondary-button .icon {
  width: 14px;
  height: 14px;
}
.danger-icon {
  color: var(--danger);
  background: var(--danger-soft);
}
.danger-button {
  background: #cf5a65;
}
.danger-button:hover {
  background: #b64853;
}
.confirm-dialog {
  max-width: 430px;
}
.confirm-dialog .dialog-actions {
  justify-content: flex-end;
}
.confirm-dialog h2 {
  font-size: 18px;
}
.noscript-note {
  position: fixed;
  inset: 0;
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 25px;
  z-index: 200;
  color: var(--text);
}
[data-theme="dark"] .little-note {
  background: linear-gradient(125deg, #2c253d, #282334);
  border-color: #4b3c6033;
}
[data-theme="dark"] .little-note strong {
  color: #c2afd6;
}
[data-theme="dark"] .little-note p {
  color: #9f8eb2;
}
[data-theme="dark"] .note-icon {
  background: #342b46;
  border-color: #4a3a5b55;
  color: #b69bd4;
}
[data-theme="dark"] .note-decoration {
  color: #42314f55;
}
[data-theme="dark"] .hero-core {
  background: linear-gradient(140deg, #3b304f, #312842);
  border-color: #5a417955;
  box-shadow:
    0 6px 25px #00000020,
    inset 1px 1px 0 #60506f44;
  color: #b499dd;
}
[data-theme="dark"] .hero-orbit {
  border-color: #4c365944;
}
[data-theme="dark"] .welcome-topline {
  color: #9382ab;
}
[data-theme="dark"] .welcome-line {
  background: linear-gradient(90deg, transparent, #534463);
}
[data-theme="dark"] .welcome h1 span {
  color: #b499d2;
}
[data-theme="dark"] .suggestion-icon.lavender {
  background: #362c48;
  color: #b49ad9;
}
[data-theme="dark"] .suggestion-icon.peach {
  background: #3d302c;
  color: #cea084;
}
[data-theme="dark"] .suggestion-icon.mint {
  background: #263831;
  color: #8dc1a6;
}
[data-theme="dark"] .suggestion-icon.blue {
  background: #2d3348;
  color: #9baee0;
}
[data-theme="dark"] .composer {
  border-color: #454051;
}
[data-theme="dark"] .composer textarea::placeholder {
  color: #767087;
}
[data-theme="dark"] .send-button:disabled {
  background: #322d42;
  color: #756a8b;
}
[data-theme="dark"] .send-button.is-stop {
  background: #393047;
  color: #c9aceb;
}
[data-theme="dark"] .message-user .message-avatar {
  background: #30303e;
  color: #aaa4ba;
}
@keyframes welcome-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popover-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@keyframes typing {
  0%,
  65%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}
@keyframes live-wave {
  0%,
  100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1.2);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    margin-bottom: -5px;
  }
  to {
    opacity: 1;
    margin-bottom: 0;
  }
}
@media (min-width: 1600px) {
  .topbar {
    padding-inline: 48px;
  }
  .chat-viewport {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .welcome h1 {
    font-size: 48px;
  }
  .welcome h1 span {
    font-size: 39px;
  }
  .welcome-description {
    font-size: 14px;
  }
  .suggestion-card {
    min-height: 155px;
    padding: 18px 16px;
  }
  .suggestion-card strong {
    font-size: 12px;
  }
  .suggestion-card p {
    font-size: 10px;
  }
  .suggestion-section {
    margin-top: 37px;
  }
  .composer textarea {
    font-size: 14px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 252px;
  }
  .sidebar {
    padding-inline: 16px;
  }
  .topbar {
    padding-inline: 26px;
  }
  .topbar-right {
    gap: 15px;
  }
  .conversation-heading h2 {
    max-width: 160px;
  }
  .chat-viewport {
    padding-inline: 28px;
  }
  .composer-area {
    padding-inline: 28px;
  }
  .suggestion-grid {
    gap: 9px;
  }
  .suggestion-card {
    padding-inline: 12px;
  }
  .suggestion-card strong {
    font-size: 12px;
  }
  .live-caption {
    display: none;
  }
  .toolbar-divider {
    display: none;
  }
  .keyboard-hint {
    display: none;
  }
  .welcome h1 {
    font-size: 39px;
  }
  .welcome h1 span {
    font-size: 32px;
  }
}
@media (max-width: 1020px) {
  .connection-status,
  .header-divider {
    display: none;
  }
  .suggestion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .suggestion-card {
    min-height: 122px;
    padding: 13px 15px;
  }
  .suggestion-card-top {
    margin-bottom: 9px;
  }
  .suggestion-card strong {
    font-size: 12px;
  }
  .suggestion-card p {
    font-size: 11px;
  }
  .welcome {
    max-width: 660px;
    padding-top: 5px;
  }
  .welcome h1 {
    font-size: 35px;
  }
  .welcome h1 span {
    font-size: 29px;
  }
  .welcome-description {
    font-size: 12px;
  }
  .hero-mark {
    height: 75px;
    margin-bottom: 9px;
  }
  .hero-core {
    width: 55px;
    height: 55px;
    border-radius: 17px;
  }
  .hero-orbit {
    width: 78px;
    height: 78px;
    top: -1px;
  }
  .hero-core .icon {
    width: 32px;
    height: 32px;
  }
  .suggestion-section {
    margin-top: 25px;
  }
  .chat-viewport {
    padding-top: 24px;
  }
  .selected-model-info b {
    font-size: 11px;
  }
  .model-trigger {
    min-width: 186px;
  }
  .topbar-actions {
    gap: 11px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar-width: 278px;
  }
  .app-shell {
    display: block;
  }
  .main-panel {
    height: 100vh;
    height: 100dvh;
  }
  .sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    box-shadow: -10px 0 35px #25223210;
    padding-top: 25px;
    z-index: 70;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: #25223266;
    backdrop-filter: blur(3px);
  }
  .mobile-only {
    display: inline-flex;
  }
  .brand-row {
    margin-bottom: 30px;
    margin-left: 0;
  }
  .topbar {
    height: 72px;
    padding: 0 16px;
    gap: 10px;
  }
  .topbar-right {
    gap: 10px;
  }
  .heading-eyebrow {
    display: none;
  }
  .conversation-heading h2 {
    font-size: 12px;
    max-width: 100px;
  }
  .topbar-actions {
    gap: 7px;
  }
  .model-trigger {
    padding: 8px 9px;
    gap: 7px;
    min-width: 175px;
    border-radius: 9px;
  }
  .model-trigger .model-symbol {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 16px;
  }
  .selected-model-info small {
    font-size: 8px;
  }
  .selected-model-info b {
    font-size: 11px;
  }
  .model-chevron {
    width: 12px;
    height: 12px;
    margin-right: 1px;
  }
  .more-button {
    width: 25px;
  }
  .model-options {
    width: 310px;
    position: fixed;
    left: 17px;
    top: 80px;
    max-height: calc(100dvh - 100px);
  }
  .chat-viewport {
    padding: 22px 22px 16px;
  }
  .welcome {
    max-width: 510px;
  }
  .welcome-topline {
    font-size: 9px;
    margin-bottom: 11px;
  }
  .welcome h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .welcome h1 span {
    font-size: 28px;
    letter-spacing: -0.6px;
  }
  .welcome-description {
    font-size: 13px;
    line-height: 2;
    max-width: 340px;
    margin-top: 12px;
  }
  .hero-features {
    font-size: 9px;
    gap: 19px;
    margin-top: 15px;
  }
  .suggestion-section {
    margin-top: 27px;
  }
  .suggestion-label {
    font-size: 9px;
  }
  .suggestion-card {
    min-height: 116px;
    padding: 13px 12px;
  }
  .suggestion-card-top {
    margin-bottom: 10px;
  }
  .suggestion-icon {
    width: 30px;
    height: 30px;
  }
  .suggestion-card strong {
    font-size: 11px;
    line-height: 1.9;
  }
  .suggestion-card p {
    font-size: 10px;
    margin-top: 5px;
  }
  .composer-area {
    padding: 8px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .composer {
    padding: 15px 14px 12px;
    border-radius: 14px;
  }
  .composer textarea {
    font-size: 14px;
    min-height: 43px;
    max-height: 132px;
  }
  .composer-toolbar {
    margin-top: 10px;
    gap: 8px;
  }
  .feature-button {
    font-size: 10px;
    gap: 4px;
    padding: 6px 7px;
  }
  .feature-button .icon {
    width: 13px;
    height: 13px;
  }
  .composer-tools {
    gap: 5px;
  }
  .send-button {
    height: 34px;
    min-width: 68px;
    font-size: 9px;
    padding: 8px 11px;
    gap: 6px;
    border-radius: 8px;
  }
  .send-button .icon {
    width: 15px;
    height: 15px;
  }
  .composer-footnote {
    font-size: 9px;
    gap: 4px;
    margin-top: 10px;
  }
  .shift-hint,
  .footnote-dot {
    display: none;
  }
  .composer-footnote .icon {
    width: 10px;
    height: 10px;
  }
  .scroll-bottom {
    left: 50%;
    bottom: 177px;
  }
  .toast {
    left: 50%;
    bottom: 22px;
    white-space: normal;
    width: max-content;
    font-size: 10px;
  }
  .message {
    margin-bottom: 26px;
  }
  .messages {
    padding-top: 0;
  }
  .message-body {
    margin-right: 0;
    font-size: 13px;
    line-height: 2;
  }
  .message-top {
    margin-bottom: 10px;
    gap: 8px;
  }
  .message-user .message-body {
    max-width: 100%;
    padding: 11px 15px;
    font-size: 12px;
    margin-right: 37px;
  }
  .message-assistant .message-body {
    padding-right: 2px;
  }
  .message-author {
    font-size: 11px;
  }
  .message-time {
    font-size: 8px;
  }
  .message-model {
    font-size: 8px;
    padding: 1px 5px;
  }
  .message-actions,
  .message-note {
    margin-right: 0;
  }
  .message-note {
    font-size: 9px;
  }
  .message-actions {
    margin-top: 10px;
  }
  .markdown pre {
    padding-inline: 14px;
    font-size: 11px;
  }
  .app-dialog {
    padding: 27px 22px;
  }
  .app-dialog h2 {
    font-size: 17px;
  }
  .dialog-actions {
    gap: 8px;
  }
  .primary-button,
  .secondary-button {
    font-size: 10px;
    padding: 10px 12px;
  }
  .app-dialog > p {
    font-size: 11px;
  }
  .privacy-detail {
    padding: 13px 11px;
  }
}
@media (max-width: 390px) {
  .topbar {
    padding-inline: 12px;
    gap: 6px;
  }
  .topbar-right {
    gap: 5px;
  }
  .conversation-heading h2 {
    max-width: 72px;
    font-size: 10px;
  }
  .model-trigger {
    min-width: 160px;
    padding: 7px;
  }
  .selected-model-info b {
    font-size: 10px;
  }
  .topbar-actions {
    gap: 3px;
  }
  .chat-viewport {
    padding-inline: 17px;
  }
  .welcome h1 {
    font-size: 30px;
  }
  .welcome h1 span {
    font-size: 25px;
  }
  .hero-features {
    gap: 12px;
  }
  .composer-area {
    padding-inline: 12px;
  }
  .composer {
    padding-inline: 11px;
  }
  .feature-button {
    padding-inline: 6px;
  }
  .send-controls {
    gap: 0;
  }
  .suggestion-card strong {
    font-size: 11px;
  }
  .suggestion-card p {
    font-size: 10px;
  }
  .model-options {
    width: calc(100vw - 28px);
    left: 14px;
  }
  .composer-footnote {
    font-size: 8px;
  }
  .sidebar {
    width: min(278px, 88vw);
  }
}
@media (max-height: 760px) and (min-width: 1021px) {
  .chat-viewport {
    padding-top: 16px;
    padding-bottom: 14px;
  }
  .welcome-topline {
    margin-bottom: 5px;
  }
  .hero-mark {
    height: 65px;
    margin-bottom: 6px;
  }
  .hero-core {
    width: 49px;
    height: 49px;
    border-radius: 15px;
  }
  .hero-orbit {
    width: 64px;
    height: 64px;
    top: 0;
  }
  .hero-core .icon {
    width: 28px;
    height: 28px;
  }
  .welcome h1 {
    font-size: 35px;
  }
  .welcome h1 span {
    font-size: 28px;
  }
  .welcome-description {
    font-size: 11px;
    margin-top: 7px;
  }
  .hero-features {
    margin-top: 12px;
    font-size: 8px;
  }
  .suggestion-section {
    margin-top: 21px;
  }
  .suggestion-card {
    min-height: 121px;
    padding: 12px;
  }
  .suggestion-card-top {
    margin-bottom: 10px;
  }
  .topbar {
    height: 72px;
  }
  .composer-area {
    padding-bottom: 13px;
  }
  .composer {
    padding-top: 14px;
    padding-bottom: 11px;
  }
  .composer textarea {
    min-height: 36px;
  }
  .composer-toolbar {
    margin-top: 9px;
  }
  .sidebar {
    padding-top: 25px;
  }
  .brand-row {
    margin-bottom: 24px;
  }
  .little-note {
    padding-top: 14px;
    padding-bottom: 13px;
  }
  .note-icon {
    margin-bottom: 8px;
  }
  .sidebar-bottom {
    padding-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
