:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --bg-soft: #16161a;
  --panel: #1d1d21;
  --panel-soft: #242429;
  --panel-strong: #2d2d33;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f5f5f7;
  --muted: #979ba6;
  --accent: #f3f3f5;
  --accent-ink: #111216;
  --danger: #d85d5d;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  font-family:
    "Segoe UI Variable Text",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.05), transparent 26%),
    linear-gradient(180deg, #121214 0%, #09090b 100%);
  color: var(--ink);
}

body {
  min-height: 100vh;
}

button,
textarea,
input {
  font: inherit;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 16px 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.icon-button,
.menu-button,
.subtle-button,
.mic-button,
.send-button,
.toolbar-button,
.thread-row,
.drawer-new-thread-button {
  border: 0;
  color: inherit;
}

.icon-button,
.menu-button,
.subtle-button,
.mic-button,
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-button,
.subtle-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(31, 31, 35, 0.92);
  box-shadow: var(--shadow);
}

.menu-button {
  flex-direction: column;
  gap: 4px;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 1.8px;
  border-radius: 999px;
  background: var(--ink);
}

.subtle-button svg {
  width: 18px;
  height: 18px;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(29, 29, 33, 0.92);
  box-shadow: var(--shadow);
}

.topbar-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-mode {
  font-size: 0.95rem;
  font-weight: 600;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 30, 34, 0.98) 0%, rgba(22, 22, 26, 0.98) 100%);
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 16px 16px 0;
}

.panel-header-tight {
  padding-bottom: 0;
}

.panel-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thread-meta,
.empty-text,
.composer-recording-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.chat-panel {
  overflow: hidden;
}

.message-activity-banner {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #c9ced7;
  font-size: 0.84rem;
  line-height: 1.25;
}

.message-activity-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2px 0 4px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 40vh;
  max-height: 54vh;
  overflow-y: auto;
  padding: 18px 18px 28px;
}

.message-list::-webkit-scrollbar,
.thread-drawer-list::-webkit-scrollbar,
.image-attachment-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.message-list::-webkit-scrollbar-thumb,
.thread-drawer-list::-webkit-scrollbar-thumb,
.image-attachment-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.message-bubble {
  max-width: 100%;
}

.load-older-messages {
  align-self: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c7cbd4;
  cursor: pointer;
}

.message-bubble header {
  margin-bottom: 10px;
}

.message-bubble header span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.message-bubble.user {
  align-self: flex-end;
  max-width: min(86%, 640px);
}

.message-bubble.user .message-body {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #2b2d34 0%, #24262d 100%);
}

.message-bubble.assistant .message-body,
.message-bubble.system .message-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-bubble.assistant header {
  margin-bottom: 12px;
  padding-left: 2px;
}

.message-bubble.assistant .message-body {
  max-width: min(100%, 700px);
  padding-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-inline: 16px 2px;
}

.message-bubble.system .message-body {
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.message-text,
.message-bubble pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.76;
  font-size: 1rem;
  color: #eff1f5;
}

.message-body > .message-text + .message-text,
.message-body > .code-block + .message-text,
.message-body > .message-text + .code-block,
.message-body > .code-block + .code-block {
  margin-top: 4px;
}

.message-bubble.assistant .message-text {
  max-width: 68ch;
}

.message-bubble.user .message-text {
  color: #f5f6f8;
  line-height: 1.68;
  font-size: 0.97rem;
}

.inline-code,
.path-token {
  display: inline-block;
  padding: 0.08rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f5f7;
  font-family:
    "Cascadia Code",
    "JetBrains Mono",
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 0.92em;
  line-height: 1.5;
  vertical-align: baseline;
}

.path-token {
  background: rgba(140, 184, 255, 0.12);
  border-color: rgba(140, 184, 255, 0.18);
  color: #cfe0ff;
}

.path-link {
  text-decoration: none;
}

.path-link:hover,
.path-link:focus-visible {
  background: rgba(140, 184, 255, 0.18);
  border-color: rgba(140, 184, 255, 0.3);
  color: #e3ecff;
}

.code-block {
  margin: 0;
  max-width: min(100%, 700px);
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #121318;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.code-block code {
  display: block;
  color: #e9edf7;
  font-family:
    "Cascadia Code",
    "JetBrains Mono",
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre;
}

.message-image {
  margin: 0;
}

.message-image a {
  display: block;
  text-decoration: none;
}

.message-image img {
  display: block;
  width: 100%;
  max-width: min(420px, 74vw);
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0d0e11;
}

.message-bubble.user .message-image img {
  max-width: min(280px, 58vw);
}

.message-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.message-bubble.assistant .message-image,
.message-bubble.assistant .code-block {
  margin-top: 2px;
}

.composer-panel {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  padding: 14px;
  background: rgba(30, 30, 34, 0.96);
  backdrop-filter: blur(18px);
}

textarea,
.thread-menu-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #28282d;
  color: var(--ink);
}

textarea {
  min-height: 118px;
  padding: 15px 16px;
  resize: vertical;
}

textarea::placeholder,
input::placeholder {
  color: #7f8390;
}

textarea:focus,
.thread-menu-form input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.composer-toolbar-left,
.composer-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-button,
.toolbar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.toolbar-chip {
  color: var(--ink);
  font-weight: 600;
}

.send-button,
.mic-button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.send-button {
  background: var(--accent);
  color: var(--accent-ink);
}

.send-button[data-mode="stop"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.send-icon {
  width: 20px;
  height: 20px;
}

.send-icon-stop {
  display: none;
}

.send-button[data-mode="stop"] .send-icon-arrow {
  display: none;
}

.send-button[data-mode="stop"] .send-icon-stop {
  display: block;
}

.mic-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.mic-button svg {
  width: 20px;
  height: 20px;
}

.mic-button[data-state="recording"] {
  background: rgba(216, 93, 93, 0.2);
  color: #ffb2b2;
}

.mic-button[data-state="listening"] {
  background: rgba(255, 255, 255, 0.14);
}

.composer-recording-state {
  margin-top: 10px;
  font-size: 0.86rem;
}

.hidden-file-input {
  display: none;
}

.image-attachment-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
}

.image-attachment-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.image-attachment-chip img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.image-attachment-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.image-attachment-meta strong,
.image-attachment-meta span {
  display: block;
}

.image-attachment-meta strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.image-attachment-meta span {
  color: var(--muted);
  font-size: 0.76rem;
}

.image-attachment-remove {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.composer-panel {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.message-composer {
  position: relative;
  padding: 14px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: #2b2b2f;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.message-composer textarea {
  display: block;
  min-height: 44px;
  max-height: 160px;
  padding: 4px 4px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  resize: none;
  overflow-y: auto;
  line-height: 1.55;
}

.message-composer textarea:focus {
  border-color: transparent;
  box-shadow: none;
}

.composer-control-row,
.composer-control-left,
.composer-control-right {
  display: flex;
  align-items: center;
}

.composer-control-row {
  justify-content: space-between;
  gap: 12px;
}

.composer-control-left,
.composer-control-right {
  gap: 8px;
  min-width: 0;
}

.composer-control-right {
  margin-left: auto;
}

.composer-icon-button,
.permission-chip,
.model-chip,
.composer-menu-item,
.reasoning-option,
.reasoning-meta-row {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.composer-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  color: #b8bbc4;
}

.composer-icon-button svg,
.permission-chip svg,
.composer-menu-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.composer-icon-button:active,
.model-chip:active,
.permission-chip:active,
.mic-button:active,
.send-button:active {
  transform: scale(0.97);
}

.permission-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  background: transparent;
  color: #ff8a3d;
  font-weight: 650;
  white-space: nowrap;
}

.chip-chevron {
  color: currentColor;
  font-size: 0.95rem;
  line-height: 1;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  max-width: 156px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #d8d9dd;
  white-space: nowrap;
}

#reasoningShortLabel {
  overflow: hidden;
  text-overflow: ellipsis;
}

.composer-busy-dot {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-left-color: transparent;
  border-radius: 999px;
  opacity: 0;
}

.composer-busy-dot.active {
  opacity: 1;
  animation: composer-spin 0.9s linear infinite;
}

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

.composer-panel .mic-button,
.composer-panel .send-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.composer-panel .mic-button {
  background: transparent;
  color: #aeb2bd;
}

.composer-panel .send-button {
  background: #f1f1f3;
  color: #141519;
}

.composer-panel .send-button[data-mode="stop"] {
  background: rgba(255, 255, 255, 0.16);
  color: #f3f3f5;
}

.composer-recording-state {
  min-height: 20px;
  margin: 7px 12px 0;
  color: #8e929d;
  font-size: 0.78rem;
}

.composer-popover {
  position: absolute;
  z-index: 80;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #2c2c30 0%, #242428 100%);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.composer-add-menu {
  left: 0;
  bottom: 74px;
  width: min(260px, calc(100vw - 28px));
}

.composer-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: transparent;
  color: #f1f2f5;
  text-align: left;
}

.composer-menu-item:hover,
.reasoning-option:hover,
.reasoning-meta-row:hover,
.composer-menu-item.active,
.reasoning-option.selected {
  background: rgba(255, 255, 255, 0.09);
}

.composer-menu-item.muted {
  color: #d4d6dc;
}

.menu-chevron {
  margin-left: auto;
  color: #9fa3ad;
  font-size: 1.2rem;
}

.plan-toggle {
  position: relative;
  width: 34px;
  height: 20px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.plan-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e8e8eb;
  transition: transform 0.16s ease;
}

.composer-menu-item.active .plan-toggle {
  background: #f1f1f3;
}

.composer-menu-item.active .plan-toggle::after {
  transform: translateX(14px);
  background: #1b1c20;
}

.reasoning-menu {
  right: 8px;
  bottom: 56px;
  width: min(262px, calc(100vw - 22px));
}

.reasoning-menu-title {
  margin: 4px 8px 8px;
  color: #9498a2;
  font-size: 0.9rem;
  font-weight: 700;
}

.reasoning-option,
.reasoning-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: transparent;
  color: #f1f2f5;
  text-align: left;
}

.reasoning-option span,
.reasoning-meta-row span {
  color: #e8e9ed;
  font-size: 1.05rem;
}

.reasoning-menu-separator {
  height: 1px;
  margin: 8px 8px;
  background: rgba(255, 255, 255, 0.08);
}

.image-attachment-list {
  margin: 0 0 12px;
  padding: 0 2px 2px;
}

.image-attachment-chip {
  position: relative;
  width: 98px;
  height: 98px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #191a1d;
}

.image-attachment-chip img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.image-attachment-meta {
  display: none;
}

.image-attachment-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #222328;
  font-size: 1rem;
}

.thread-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.thread-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: min(360px, 88vw);
  height: 100vh;
  padding: 22px 18px calc(176px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(16, 16, 19, 0.99) 0%, rgba(11, 11, 13, 0.99) 100%);
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 48px rgba(0, 0, 0, 0.46);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}

.thread-drawer.open {
  transform: translateX(0);
}

.thread-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.drawer-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.thread-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 4px;
}

.thread-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.thread-row strong,
.thread-row span,
.thread-row small {
  display: block;
}

.thread-row strong {
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.4;
}

.thread-row span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.thread-row small {
  color: #c5c8d1;
  font-size: 0.76rem;
}

.thread-row.active strong {
  color: #ffffff;
}

.drawer-new-thread-button {
  position: absolute;
  right: 18px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f4f4f6;
  color: #101115;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.drawer-new-thread-button svg {
  width: 20px;
  height: 20px;
}

.thread-menu.hidden {
  display: none;
}

.thread-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.thread-menu-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
}

.thread-menu-card {
  position: absolute;
  width: min(260px, calc(100vw - 20px));
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #25272e 0%, #1d1f25 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.46);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.thread-menu-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.thread-menu-actions,
.thread-menu-inline-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.thread-menu-actions {
  flex-direction: column;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
}

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

.secondary-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--ink);
}

.ghost-button {
  background: transparent;
  color: var(--muted);
}

.danger-button {
  background: rgba(216, 93, 93, 0.16);
  border-color: rgba(216, 93, 93, 0.22);
  color: #ff9c9c;
}

.thread-menu-actions .primary-button,
.thread-menu-actions .secondary-button,
.thread-menu-actions .ghost-button,
.thread-menu-actions .danger-button {
  width: 100%;
}

.thread-menu-form.hidden,
.thread-menu-view.hidden {
  display: none;
}

.thread-menu-form input {
  padding: 12px 13px;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

.thread-menu-inline-actions {
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px 10px 26px;
  }

  .message-list {
    min-height: 44vh;
    max-height: 56vh;
  }

  .message-composer {
    border-radius: 24px;
    padding: 12px 10px 9px;
  }

  .composer-control-row {
    gap: 8px;
  }

  .permission-chip {
    padding-inline: 4px 6px;
    font-size: 0.92rem;
  }

  .model-chip {
    max-width: 118px;
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  .composer-panel .mic-button,
  .composer-panel .send-button,
  .composer-icon-button {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 390px) {
  .permission-chip span:not(.chip-chevron) {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #modelShortLabel {
    display: none;
  }

  .composer-control-left,
  .composer-control-right {
    gap: 5px;
  }
}
