:root {
  color-scheme: dark;
  --bg: #040510;
  --panel: rgba(10, 14, 35, 0.86);
  --panel-strong: rgba(12, 17, 42, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8ff;
  --muted: rgba(247, 248, 255, 0.58);
  --soft: rgba(247, 248, 255, 0.1);
  --green: #19c37d;
  --cyan: #00f2ff;
  --purple: #7b61ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 16% -4%, rgba(0, 242, 255, 0.22), transparent 32%),
    radial-gradient(ellipse at 86% 4%, rgba(123, 97, 255, 0.2), transparent 34%),
    radial-gradient(ellipse at 48% 102%, rgba(25, 195, 125, 0.08), transparent 36%),
    linear-gradient(120deg, #040614 0%, #090d24 42%, #100b2a 72%, #03040d 100%);
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(0, 242, 255, 0.42) 0 1px, transparent 1.7px);
  background-size: 96px 96px, 96px 96px, 74px 74px, 132px 132px;
  background-position: -18px -12px, -18px -12px, 20px 18px, 88px 40px;
  mask-image: radial-gradient(circle at 52% 42%, #000 0 58%, transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  opacity: 0.66;
  background:
    linear-gradient(118deg, transparent 0 32%, rgba(0, 242, 255, 0.08) 43%, transparent 57%),
    linear-gradient(154deg, transparent 0 40%, rgba(123, 97, 255, 0.1) 52%, transparent 66%),
    radial-gradient(ellipse at 26% 22%, rgba(0, 242, 255, 0.1), transparent 42%);
  filter: blur(12px);
  transform: rotate(-1deg);
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  height: 100vh;
  padding: 10px;
  gap: 0;
  isolation: isolate;
}

.app::before,
.app::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  pointer-events: none;
}

.app::before {
  z-index: -2;
  background:
    radial-gradient(circle at 20% 12%, rgba(0, 242, 255, 0.12), transparent 34%),
    radial-gradient(circle at 76% 10%, rgba(123, 97, 255, 0.13), transparent 36%),
    radial-gradient(circle at 62% 92%, rgba(25, 195, 125, 0.06), transparent 35%),
    linear-gradient(140deg, rgba(15, 22, 48, 0.9), rgba(7, 9, 24, 0.8) 44%, rgba(13, 10, 31, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 90px rgba(0, 242, 255, 0.035);
  backdrop-filter: blur(20px);
}

.app::after {
  z-index: -1;
  opacity: 0.42;
  background:
    linear-gradient(90deg, transparent 0, rgba(0, 242, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, transparent 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36) 22%, rgba(0, 0, 0, 0.78));
}

.composer,
.model-drawer {
  border: 1px solid var(--line);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.sidebar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
  border-radius: 20px 0 0 20px;
  border-right: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 242, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)),
    rgba(4, 7, 20, 0.28);
}

.sidebar::after {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(0, 242, 255, 0.16);
}

.eyebrow {
  margin: 0 0 3px;
  color: rgba(0, 242, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 21px;
}

h2 {
  font-size: clamp(19px, 2vw, 25px);
}

h3 {
  font-size: 20px;
}

.new-chat {
  width: 100%;
  height: 36px;
  margin: 16px 0 15px;
  border: 0;
  border-radius: 11px;
  color: #04120c;
  font-size: 13px;
  font-weight: 820;
  background: linear-gradient(135deg, #24e294, var(--green));
  box-shadow: 0 10px 26px rgba(25, 195, 125, 0.2);
}

.sidebar-section {
  display: grid;
  gap: 8px;
}

.section-title {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.template-button {
  width: 100%;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  color: rgba(247, 248, 255, 0.84);
  font-size: 13px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.template-button:hover,
.quick-chip:hover,
.round-tool:hover,
.mode-button:hover,
.model-pill:hover,
.bottom-model:hover,
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.11);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  color: rgba(247, 248, 255, 0.66);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.45;
}

.status-dot,
.model-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(25, 195, 125, 0.8);
}

.chat-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  border-radius: 0 20px 20px 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 242, 255, 0.075), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(123, 97, 255, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.chat-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 242, 255, 0.035), transparent 24%),
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.035), transparent 40%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 18px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(90deg, rgba(0, 242, 255, 0.04), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0));
}

.sidebar-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.model-pill,
.bottom-model {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.model-pill {
  height: 34px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.chevron {
  color: rgba(247, 248, 255, 0.45);
}

.messages {
  min-height: 0;
  overflow-y: auto;
  padding: 20px clamp(16px, 4vw, 52px) 12px;
  scroll-behavior: smooth;
}

.message {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  max-width: 780px;
  margin: 0 auto 14px;
}

.welcome-message {
  max-width: 820px;
  align-items: start;
  margin-top: clamp(8px, 3vh, 28px);
}

.message.user {
  grid-template-columns: minmax(0, 1fr) 28px;
}

.message.user .bubble {
  order: 1;
  justify-self: end;
  min-width: 72px;
  max-width: min(520px, 78%);
  background: rgba(25, 195, 125, 0.16);
  border-color: rgba(25, 195, 125, 0.24);
}

.message.user .message-avatar {
  order: 2;
  background: rgba(25, 195, 125, 0.18);
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  color: rgba(247, 248, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.bubble {
  width: fit-content;
  max-width: min(620px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 248, 255, 0.92);
  font-size: 14px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.message-content {
  display: block;
  white-space: pre-wrap;
}

.generated-image-card {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.image-open {
  position: relative;
  display: block;
  width: min(420px, 100%);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
}

.generated-image {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 5, 16, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.image-hint {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(247, 248, 255, 0.88);
  font-size: 11px;
  font-weight: 800;
  background: rgba(4, 5, 16, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.image-open:hover .image-hint,
.image-open:focus-visible .image-hint {
  opacity: 1;
  transform: translateY(0);
}

.image-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.image-action {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(247, 248, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
}

.image-save {
  color: #04120c;
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 0 18px rgba(25, 195, 125, 0.16);
}

.image-loading-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(360px, 100%);
  margin-top: 11px;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 242, 255, 0.14), transparent 34%),
    rgba(4, 5, 16, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-orbit {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 255, 0.2);
}

.loading-orbit::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: rgba(25, 195, 125, 0.9);
  animation: spin 1.05s linear infinite;
}

.loading-orbit span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(25, 195, 125, 0.72);
  transform: translate(-50%, -50%);
}

.loading-copy {
  display: grid;
  gap: 2px;
}

.loading-copy strong {
  color: rgba(247, 248, 255, 0.92);
  font-size: 13px;
  font-weight: 850;
}

.loading-copy em {
  color: rgba(247, 248, 255, 0.48);
  font-size: 11px;
  font-style: normal;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.welcome-message .bubble {
  width: 100%;
  max-width: 760px;
  min-height: clamp(118px, 20vh, 188px);
  display: flex;
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 18px;
  color: rgba(247, 248, 255, 0.93);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 720;
  line-height: 1.54;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 242, 255, 0.12), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(123, 97, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(18, 21, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.message-name {
  display: block;
  margin-bottom: 5px;
  color: rgba(247, 248, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
}

.welcome-message .message-name {
  display: none;
}

.composer-wrap {
  padding: 9px clamp(12px, 4vw, 42px) 12px;
}

.quick-row {
  display: flex;
  gap: 7px;
  max-width: 780px;
  margin: 0 auto 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-row::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(247, 248, 255, 0.78);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.composer {
  max-width: 780px;
  margin: 0 auto;
  padding: 9px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(8, 11, 30, 0.96);
  border-color: rgba(255, 255, 255, 0.15);
}

textarea {
  display: block;
  width: 100%;
  max-height: 176px;
  min-height: 38px;
  resize: none;
  padding: 5px 7px 6px;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  background: transparent;
}

textarea::placeholder {
  color: rgba(247, 248, 255, 0.4);
}

.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

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

.mode-toggle {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.mode-button {
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: rgba(247, 248, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.mode-button.active {
  color: #04120c;
  background: var(--green);
  box-shadow: 0 0 18px rgba(25, 195, 125, 0.18);
}

.round-tool,
.send-button,
.drawer-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.round-tool {
  font-size: 20px;
  font-weight: 450;
}

.bottom-model {
  max-width: 218px;
  height: 32px;
  padding: 0 10px;
  color: rgba(247, 248, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.bottom-model span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-button {
  color: #04120c;
  font-size: 18px;
  font-weight: 900;
  background: var(--green);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(25, 195, 125, 0.26);
}

.send-button:disabled {
  color: rgba(247, 248, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: not-allowed;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(2, 4, 13, 0.62);
}

.model-drawer {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 11;
  width: min(480px, calc(100vw - 24px));
  max-height: min(590px, 80vh);
  padding: 11px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 242, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 4%, rgba(255, 77, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(17, 23, 55, 0.98), rgba(5, 7, 20, 0.98));
  transform: translateX(-50%);
}

.drawer-handle {
  width: 52px;
  height: 4px;
  margin: 1px auto 10px;
  border-radius: 999px;
  background: rgba(247, 248, 255, 0.22);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 9px;
}

.drawer-close {
  flex: 0 0 auto;
  font-size: 23px;
  line-height: 1;
}

.model-list {
  display: grid;
  gap: 7px;
  max-height: min(460px, 60vh);
  overflow: auto;
  padding-right: 3px;
}

.model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.model-option.active {
  border-color: rgba(25, 195, 125, 0.42);
  background:
    linear-gradient(135deg, rgba(25, 195, 125, 0.2), rgba(0, 242, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.model-option.disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.model-label {
  display: block;
  font-size: 13px;
  font-weight: 850;
}

.model-provider {
  display: block;
  margin-top: 3px;
  color: rgba(0, 242, 255, 0.62);
  font-size: 11px;
  font-weight: 750;
}

.check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #04120c;
  font-weight: 950;
  background: var(--green);
}

.image-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 4, 13, 0.76);
  backdrop-filter: blur(14px);
}

.image-preview-mask[hidden] {
  display: none;
}

.image-preview {
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  display: grid;
  gap: 11px;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 242, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 4%, rgba(255, 77, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(17, 23, 55, 0.98), rgba(5, 7, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.image-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(247, 248, 255, 0.9);
  font-size: 13px;
  font-weight: 850;
}

.image-preview-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.image-preview-actions button {
  min-width: 34px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(247, 248, 255, 0.86);
  font-size: 12px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#previewDownload {
  color: #04120c;
  border-color: transparent;
  background: var(--green);
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border-radius: 15px;
  background: rgba(4, 5, 16, 0.72);
}

.hidden-mobile {
  display: none;
}

@media (max-width: 820px) {
  body {
    overflow: hidden;
  }

  .app {
    display: block;
    padding: 0;
  }

  .app::before,
  .app::after {
    inset: 0;
    border-radius: 0;
  }

  .sidebar {
    position: fixed;
    left: 10px;
    top: 10px;
    bottom: 10px;
    z-index: 20;
    width: min(280px, calc(100vw - 20px));
    border-radius: 18px;
    transform: translateX(calc(-100% - 18px));
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .chat-shell {
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .topbar {
    padding: 11px 12px;
  }

  .sidebar-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .topbar .model-pill {
    display: none;
  }

  h2 {
    font-size: 19px;
  }

  .messages {
    padding: 13px 11px 8px;
  }

  .message,
  .message.user {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  .message.user .bubble {
    order: 2;
  }

  .message.user .message-avatar {
    order: 1;
  }

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

  .bubble {
    width: 100%;
    border-radius: 13px;
    font-size: 13px;
  }

  .welcome-message .bubble {
    min-height: 112px;
    padding: 17px;
    font-size: 15px;
    border-radius: 16px;
  }

  .composer-wrap {
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .quick-row {
    margin-bottom: 8px;
  }

  .bottom-model {
    max-width: 170px;
  }

  .mode-toggle {
    max-width: 104px;
  }

  .mode-button {
    padding: 0 8px;
  }
}
