:root {
  color-scheme: light dark;
  --app-viewport-height: 100dvh;
  --chat-titlebar-height: calc(54px + env(safe-area-inset-top));
  --shell-x: clamp(14px, 2vw, 32px);
  --sidebar-width: 280px;
  --app-font-size: 16px;
  --app-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #141414;
  --panel: #1b1b1b;
  --panel-soft: #242424;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.24);
  --accent: #e5e5e5;
  --accent-strong: #737373;
  --user: #343434;
  --assistant: #242424;
  --system: #78350f;
  --system-text: #fde68a;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  overscroll-behavior-y: none;
}

html {
  font-size: var(--app-font-size);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  touch-action: manipulation;
  font-family: var(--app-font-family);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}

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

input, textarea, select {
  font-size: 1rem;
}

.app-shell {
  width: 100%;
  height: calc(var(--app-viewport-height, 100dvh) + var(--app-bottom-bleed, 0px));
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.chat-panel {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.conversation-sidebar {
  display: none;
}

.sidebar-resize-handle {
  display: none;
}

.ghost-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--accent-strong);
  cursor: pointer;
}

button:disabled { opacity: 0.55; cursor: not-allowed; }

.danger-button {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
}

html[data-theme="light"] .danger-button,
html[data-theme="system"] .danger-button { color: #991b1b; }

.floating-settings-button {
  position: fixed;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.72);
  box-shadow: 0 10px 28px rgba(8, 8, 8, 0.32);
  backdrop-filter: blur(16px);
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
}

.chat-titlebar {
  flex: 0 0 auto;
  height: var(--chat-titlebar-height);
  min-height: var(--chat-titlebar-height);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
  background: #1E2020;
  backdrop-filter: blur(18px);
  z-index: 12;
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(226, 232, 240, 0.92);
}

.mobile-menu-button:hover,
.mobile-menu-button:focus-visible {
  background: transparent;
  color: #f8fafc;
}

.mobile-menu-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.chat-title-group {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  justify-self: center;
}

.chat-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
}

.copy-conversation-link-button {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(226, 232, 240, 0.78);
}

.copy-conversation-link-button:hover,
.copy-conversation-link-button:focus-visible {
  background: transparent;
  color: #f8fafc;
}

.copy-conversation-link-icon {
  width: 18px;
  height: 18px;
}

.chat-titlebar-actions {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.model-picker-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(226, 232, 240, 0.92);
}

.model-picker-button:hover,
.model-picker-button:focus-visible {
  background: transparent;
  color: #f8fafc;
}

.model-picker-button:disabled {
  color: rgba(148, 163, 184, 0.48);
}

.model-picker-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.model-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(240px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.96);
  box-shadow: 0 18px 40px rgba(8, 8, 8, 0.34);
  backdrop-filter: blur(18px);
  z-index: 30;
}

.model-picker-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.model-picker-status.hidden {
  display: none;
}

.model-picker-list {
  display: grid;
  gap: 6px;
}

.model-picker-section-title {
  margin: 4px 2px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.model-picker-item {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(36, 36, 36, 0.66);
  color: var(--text);
  text-align: left;
}

.model-picker-item:hover,
.model-picker-item:focus-visible {
  background: rgba(212, 212, 212, 0.12);
  border-color: rgba(96, 165, 250, 0.32);
}

.model-picker-item.is-selected {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(212, 212, 212, 0.12);
}

.model-picker-item:disabled {
  opacity: 0.72;
}

.model-picker-check {
  width: 18px;
  color: #7dd3fc;
  font-weight: 800;
  text-align: center;
}

.model-picker-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-action-menu {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(var(--composer-height, 96px) + 14px);
  z-index: 40;
}

.floating-action-toggle {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 40;
  width: 37px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.7px solid rgba(203, 213, 225, 0.72);
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.76);
  box-shadow: 0 12px 30px rgba(8, 8, 8, 0.32);
  color: #cbd5e1;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.floating-action-toggle:hover,
.floating-action-toggle:focus-visible {
  background: rgba(52, 52, 52, 0.9);
  border-color: rgba(226, 232, 240, 0.86);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.floating-action-toggle-icon {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
  background: currentColor;
  -webkit-mask: url('/assets/chevron-up.svg') center / contain no-repeat;
  mask: url('/assets/chevron-up.svg') center / contain no-repeat;
}

.floating-action-toggle[aria-expanded="true"] .floating-action-toggle-icon {
  -webkit-mask-image: url('/assets/chevron-down.svg');
  mask-image: url('/assets/chevron-down.svg');
}

.floating-action-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(330px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-action-panel.hidden { display: none; }

.floating-action-item {
  width: 100%;
  min-height: 58px;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.86);
  box-shadow: 0 14px 34px rgba(8, 8, 8, 0.34);
  backdrop-filter: blur(18px);
  text-align: left;
}

.floating-action-icon {
  width: 24px;
  flex: 0 0 24px;
  font-size: 1.25rem;
  text-align: center;
}

.floating-action-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.25;
}

.floating-action-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floating-action-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.floating-action-compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.floating-action-compact-item {
  min-height: 38px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.82);
  box-shadow: 0 10px 24px rgba(8, 8, 8, 0.26);
  backdrop-filter: blur(18px);
  font-size: 12px;
  font-weight: 700;
}

html[data-theme="light"] .floating-action-item,
html[data-theme="system"] .floating-action-item,
html[data-theme="light"] .floating-action-compact-item,
html[data-theme="system"] .floating-action-compact-item {
  background: rgba(255, 255, 255, 0.94);
}

.drawer-backdrop {
  display: none;
}

body.drawer-open .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: block;
  background: rgba(8, 8, 8, 0.48);
  backdrop-filter: blur(4px);
}

body.drawer-open .conversation-sidebar {
  position: fixed;
  overscroll-behavior-y: contain;
  top: 0;
  bottom: auto;
  left: 0;
  z-index: 42;
  width: min(320px, calc(100vw - 42px));
  height: calc(var(--app-viewport-height, 100dvh) + var(--app-bottom-bleed, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px clamp(10px, env(safe-area-inset-bottom), 22px);
  border-right: 1px solid var(--border);
  background: #1E2020;
  box-shadow: 18px 0 48px rgba(8, 8, 8, 0.44);
}

.settings-panel {
  position: fixed;
  top: calc(max(10px, env(safe-area-inset-top)) + 52px);
  right: max(10px, env(safe-area-inset-right));
  z-index: 39;
  width: min(360px, calc(100vw - 20px));
  max-height: calc(100dvh - max(10px, env(safe-area-inset-top)) - 70px);
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.88);
  box-shadow: 0 18px 48px rgba(8, 8, 8, 0.44);
  backdrop-filter: blur(16px);
}

.hidden { display: none; }

label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }

.settings-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.settings-group-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.settings-checkbox {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.settings-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.settings-checkbox span {
  min-width: 0;
  line-height: 1.35;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-row input { flex: 1; }

.range-row output {
  min-width: 42px;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(21, 21, 21, 0.88);
  color: var(--text);
  outline: none;
}

textarea { resize: none; line-height: 1.4; max-height: 150px; }

input:focus, textarea:focus, select:focus { border-color: var(--accent); }

.settings-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.home-screen {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 32px 18px;
  text-align: center;
  color: var(--text);
}

.home-screen h1 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.home-screen p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--shell-x) 14px;
}

.messages:not(:has(> .message.system:only-child))::before {
  content: '';
  margin-top: auto;
}

.history-load-more {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}

.history-load-more-button {
  font-size: 12px;
  padding: 7px 12px;
}

.messages-scroll-indicator {
  position: fixed;
  top: 0;
  right: calc(env(safe-area-inset-right, 0px) + 4px);
  z-index: 5;
  width: 4px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.messages-scroll-indicator.visible {
  opacity: 1;
}

.message {
  position: relative;
  max-width: 88%;
  margin-bottom: 18px;
  padding: 11px 13px;
  border-radius: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
  border: 1px solid var(--border);
}

.message[data-message-time]::after {
  content: attr(data-message-time);
  position: absolute;
  bottom: -18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.message.user[data-message-time]::after {
  right: 4px;
}

.message.assistant[data-message-time]::after {
  left: 4px;
}

.message p { margin: 0; }

.message p + p,
.message ul + p,
.message ol + p,
.message p + ul,
.message p + ol,
.message p + .markdown-table-wrapper,
.message p + blockquote,
.message p + hr,
.message blockquote + p,
.message blockquote + ul,
.message blockquote + ol,
.message hr + p,
.message hr + ul,
.message hr + ol,
.message hr + blockquote,
.markdown-table-wrapper + p { margin-top: 0.45rem; }

.message h3,
.message h4,
.message h5 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.message ul,
.message ol {
  margin: 0.25rem 0 0.25rem 1.25rem;
  padding: 0;
}

.message li + li { margin-top: 0.18rem; }

.message li > .code-block,
.message li > blockquote,
.message li > p {
  margin-top: 0.35rem;
}

.message hr {
  margin: 0.55rem 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
}

.message blockquote {
  margin: 0.3rem 0 0;
  padding: 0.2rem 0 0.2rem 0.85rem;
  border-left: 3px solid rgba(125, 211, 252, 0.6);
  color: rgba(226, 232, 240, 0.92);
}

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

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

.message code {
  padding: 0.08rem 0.28rem;
  border-radius: 0.35rem;
  background: rgba(148, 163, 184, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.markdown-table-wrapper {
  max-width: 100%;
  margin-top: 0.55rem;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.22);
  white-space: normal;
}

.message table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  font-size: 0.92em;
}

.message th,
.message td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  text-align: left;
  vertical-align: top;
}

.message th {
  color: var(--text);
  background: rgba(148, 163, 184, 0.16);
  font-weight: 800;
}

.message tr:last-child td { border-bottom: 0; }

.code-block {
  margin-top: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.5);
  white-space: normal;
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(21, 21, 21, 0.76);
}

.code-copy-button {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.22);
  color: var(--text);
  font-size: 11px;
}

.code-block pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
  white-space: pre;
}

.code-block.compact pre {
  padding: 9px 10px;
}

.code-block pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.45;
}

.message a {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.message.user a { color: #ffffff; }

.message-attachments {
  display: grid;
  align-items: start;
  gap: 8px;
  margin-top: 10px;
}

.message-attachment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: min(100%, 420px);
  padding: 4px 2px;
}

.message-attachment.image-attachment {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  align-items: start;
  align-content: start;
  justify-self: start;
  gap: 5px;
  width: auto;
  max-width: min(360px, 72vw);
  height: auto;
  padding: 0;
}

.message-attachment img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(21, 21, 21, 0.32);
  cursor: zoom-in;
}

.attachment-file-icon {
  font-size: 18px;
  line-height: 1;
}

.attachment-caption {
  min-width: 0;
  color: inherit;
  opacity: 0.88;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-download-button {
  justify-self: end;
  padding: 3px 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  color: inherit;
  background: rgba(148, 163, 184, 0.14);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.attachment-download-button:hover,
.attachment-download-button:focus-visible {
  background: rgba(148, 163, 184, 0.22);
}

.attachment-download-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

.image-attachment .attachment-caption {
  max-width: 100%;
  white-space: nowrap;
  word-break: normal;
}

@media (max-width: 520px) {
  .message-attachment:not(.image-attachment) {
    grid-template-columns: auto minmax(0, 1fr);
    max-width: 100%;
  }

  .message-attachment:not(.image-attachment) .attachment-download-button {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
}

.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: stretch;
  padding: 0;
}

.media-viewer.hidden { display: none; }

.media-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(10px);
}

.media-viewer-panel {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px calc(74px + env(safe-area-inset-bottom));
  background: transparent;
  overflow: hidden;
}

.media-viewer-actions {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}

.media-viewer-actions .ghost-button {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(21, 21, 21, 0.82);
  box-shadow: 0 10px 28px rgba(8, 8, 8, 0.34);
  backdrop-filter: blur(14px);
}

.media-viewer-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
}

.media-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 104px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: none;
  transform-origin: center center;
  transition: transform 120ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.media-viewer.gesturing img,
.media-viewer img.zoomed {
  cursor: grab;
  transition: none;
}

.media-viewer img.zoomed:active {
  cursor: grabbing;
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #303030, #454545);
  border-bottom-right-radius: 6px;
}

.message.assistant {
  align-self: flex-start;
  background: var(--assistant);
  border-bottom-left-radius: 6px;
}

.message.pending {
  color: var(--muted);
  animation: pendingPulse 1.4s ease-in-out infinite;
}

.message.assistant.pending,
.message.assistant:has(.message-cancel-button) {
  padding-right: 52px;
}

.message-cancel-button {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(248, 113, 113, 0.46);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.76);
  color: #fecaca;
  box-shadow: 0 10px 24px rgba(8, 8, 8, 0.24);
  backdrop-filter: blur(12px);
}

.message-cancel-button::before,
.message-cancel-button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.message-cancel-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.message-cancel-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.message-cancel-button:hover,
.message-cancel-button:focus-visible {
  background: rgba(153, 27, 27, 0.9);
  border-color: rgba(254, 202, 202, 0.7);
  color: #fee2e2;
}

.message-cancel-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

html[data-theme="light"] .message-cancel-button {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 242, 242, 0.96);
  color: #991b1b;
}

@media (max-width: 520px) {
  .message.assistant.pending,
  .message.assistant:has(.message-cancel-button) {
    padding-right: 46px;
  }

  .message-cancel-button {
    right: 7px;
    top: 50%;
    width: 28px;
    height: 28px;
  }
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 5px;
  flex-wrap: wrap;
  opacity: 0.78;
}


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

.message-action-button {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.14);
  color: inherit;
  font-size: 12px;
}

.message-copy-button {
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: currentColor;
  line-height: 1;
  opacity: 0.56;
  box-shadow: 0 6px 14px rgba(8, 8, 8, 0.18);
}

.message.user .message-copy-button {
  left: -24px;
}

.message.assistant .message-copy-button,
.message.system .message-copy-button {
  right: -24px;
}

.message-copy-button:hover,
.message-copy-button:focus-visible,
.message-copy-button.copied,
.message-copy-button.copy-failed {
  background: var(--panel-soft);
  opacity: 0.88;
}

.message-copy-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pendingPulse {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}

.message.system {
  align-self: center;
  max-width: 96%;
  background: var(--system);
  color: var(--system-text);
}

.messages:has(> .message.system:only-child) {
  justify-content: center;
}

.composer {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px var(--shell-x) clamp(10px, env(safe-area-inset-bottom), 22px);
  background: linear-gradient(180deg, transparent, var(--bg) 22%);
  z-index: 20;
}

.composer.drag-over {
  border-radius: 18px;
  outline: 2px dashed rgba(212, 212, 212, 0.72);
  outline-offset: 4px;
  background: linear-gradient(180deg, rgba(212, 212, 212, 0.06), var(--bg) 28%);
}

.composer.drag-over::after {
  content: '파일을 놓으면 첨부됩니다';
  position: absolute;
  inset: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: rgba(8, 8, 8, 0.62);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.composer-tools {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  align-self: stretch;
}

.location-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.location-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.location-toggle span {
  font-size: 18px;
  line-height: 1;
  filter: grayscale(0.25);
}

.location-toggle:has(input:checked) {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.34), rgba(2, 132, 199, 0.22));
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.26) inset,
    0 8px 18px rgba(2, 132, 199, 0.22);
}

.location-toggle:has(input:checked)::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 2px #082f49;
}

.location-toggle:has(input:checked) span {
  filter: grayscale(0);
  transform: scale(1.08);
}

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

.attachment-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.62);
  color: var(--text);
  font-size: 12px;
}

.attachment-chip span {
  min-width: 0;
  max-width: min(72vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slash-command-palette {
  display: grid;
  gap: 6px;
  max-height: min(300px, 42dvh);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.94);
  box-shadow: 0 18px 42px rgba(8, 8, 8, 0.28);
  backdrop-filter: blur(14px);
}

.slash-command-palette.hidden { display: none; }

.slash-command-item {
  display: grid;
  grid-template-columns: minmax(78px, auto) 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.slash-command-item strong {
  color: #7dd3fc;
  font-size: 13px;
  white-space: nowrap;
}

.slash-command-item span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slash-command-item.selected,
.slash-command-item:hover {
  border-color: rgba(229, 229, 229, 0.26);
  background: rgba(212, 212, 212, 0.10);
}

.attachment-remove {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text);
}

.attach-button {
  width: 40px;
  min-width: 40px;
  min-height: 34px;
  height: 100%;
  padding: 0;
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 22px;
  line-height: 1;
}

.input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.message-input-wrap {
  position: relative;
  min-width: 0;
  display: flex;
}

.input-row textarea {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding-right: 34px;
}

.clear-message-input-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  opacity: 0.62;
}

.clear-message-input-button.hidden { display: none; }

.clear-message-input-button:hover,
.clear-message-input-button:focus-visible {
  background: rgba(148, 163, 184, 0.48);
  opacity: 0.9;
}

.input-row #sendButton {
  align-self: stretch;
  min-width: 52px;
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 13px;
}

.send-button-icon {
  width: 26px;
  height: 26px;
  display: block;
  color: currentColor;
}

.status-text { margin: 0; color: var(--muted); font-size: 12px; }
.status-text:empty { display: none; }

.toast-stack {
  position: fixed;
  left: 50%;
  top: calc(max(14px, env(safe-area-inset-top)) + 62px);
  z-index: 80;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.92);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(8, 8, 8, 0.38);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
}

.toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(22, 101, 52, 0.92);
  color: #dcfce7;
}

html[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.96);
  color: #151515;
  box-shadow: 0 16px 40px rgba(21, 21, 21, 0.18);
}

html[data-theme="light"] .toast--success {
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(240, 253, 244, 0.98);
  color: #166534;
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] .toast {
    background: rgba(255, 255, 255, 0.96);
    color: #151515;
    box-shadow: 0 16px 40px rgba(21, 21, 21, 0.18);
  }

  html[data-theme="system"] .toast--success {
    border-color: rgba(22, 163, 74, 0.24);
    background: rgba(240, 253, 244, 0.98);
    color: #166534;
  }
}

.sidebar-header,
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-header {
  position: relative;
  justify-content: center;
  height: calc(54px + env(safe-area-inset-top));
  min-height: calc(54px + env(safe-area-inset-top));
  margin: 0 -14px;
  padding: env(safe-area-inset-top) 14px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.sidebar-title-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.sidebar-title-block strong {
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-title-block span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.sidebar-new-button,
.sidebar-archive-button,
.sidebar-settings-button,
.sidebar-logout-button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.sidebar-header .mobile-menu-button {
  position: absolute;
  left: 6px;
}

.sidebar-new-button {
  position: absolute;
  right: 6px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-new-button:hover,
.sidebar-new-button:focus-visible {
  background: transparent;
}

.sidebar-new-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.sidebar-archive-button,
.sidebar-settings-button,
.sidebar-logout-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sidebar-button-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
  background: currentColor;
}

.sidebar-button-icon--archive {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v13A2.5 2.5 0 0 1 17.5 21h-11A2.5 2.5 0 0 1 4 18.5v-13Zm3 3h10M9 12h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v13A2.5 2.5 0 0 1 17.5 21h-11A2.5 2.5 0 0 1 4 18.5v-13Zm3 3h10M9 12h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar-button-icon--settings {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-12.5 1.1 2.2 2.4.7 2-1.2 1.8 1.8-1.2 2 .7 2.4L21 12l-2.2 1.1-.7 2.4 1.2 2-1.8 1.8-2-1.2-2.4.7L12 21l-1.1-2.2-2.4-.7-2 1.2-1.8-1.8 1.2-2-.7-2.4L3 12l2.2-1.1.7-2.4-1.2-2 1.8-1.8 2 1.2 2.4-.7L12 3Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-12.5 1.1 2.2 2.4.7 2-1.2 1.8 1.8-1.2 2 .7 2.4L21 12l-2.2 1.1-.7 2.4 1.2 2-1.8 1.8-2-1.2-2.4.7L12 21l-1.1-2.2-2.4-.7-2 1.2-1.8-1.8 1.2-2-.7-2.4L3 12l2.2-1.1.7-2.4-1.2-2 1.8-1.8 2 1.2 2.4-.7L12 3Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar-archive-button[aria-pressed="true"] {
  border-color: rgba(229, 229, 229, 0.26);
  background: rgba(212, 212, 212, 0.10);
}

.conversation-list {
  flex: 1 1 auto;
  min-height: 0;
  margin-right: -14px;
  padding-right: 14px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  display: grid;
  align-content: start;
  gap: 8px;
}

.conversation-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.conversation-item.active {
  border-color: rgba(229, 229, 229, 0.22);
  background: #171717;
}

.conversation-item.has-unread:not(.active) {
  border-color: rgba(125, 211, 252, 0.52);
  background: rgba(14, 165, 233, 0.14);
  animation: conversation-unread-pulse 1.45s ease-in-out infinite;
}

.conversation-item.has-unread:not(.active)::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7dd3fc;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.7);
}

.conversation-item.has-unread:not(.active) .conversation-title {
  padding-left: 12px;
}

@keyframes conversation-unread-pulse {
  0%, 100% {
    background: rgba(14, 165, 233, 0.10);
    box-shadow: 0 0 0 rgba(125, 211, 252, 0);
  }
  50% {
    background: rgba(14, 165, 233, 0.22);
    box-shadow: 0 0 18px rgba(125, 211, 252, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-item.has-unread:not(.active) {
    animation: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .conversation-item:hover {
    border-color: rgba(229, 229, 229, 0.18);
    background: rgba(212, 212, 212, 0.08);
  }

  .conversation-item.active:hover {
    border-color: rgba(229, 229, 229, 0.22);
    background: #171717;
  }
}

.conversation-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.conversation-pin-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  line-height: 1;
  opacity: 1;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.conversation-pin-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.conversation-meta,
.conversation-empty {
  color: var(--muted);
  font-size: 12px;
}

.conversation-empty {
  margin: 8px 2px;
  line-height: 1.45;
}

.conversation-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.46);
  color: var(--muted);
}

.conversation-search:focus-within {
  border-color: rgba(229, 229, 229, 0.34);
  background: rgba(212, 212, 212, 0.08);
  color: var(--text);
}

.conversation-search-icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  transform: rotate(-18deg);
}

.conversation-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.conversation-search input::placeholder {
  color: var(--muted);
}

.conversation-search input::-webkit-search-decoration,
.conversation-search input::-webkit-search-cancel-button {
  display: none;
}

.conversation-search-clear {
  position: static;
  right: auto;
  bottom: auto;
  flex: 0 0 22px;
  margin-left: 2px;
}

@media (min-width: 900px) {
  .app-shell {
    flex-direction: row;
    gap: 0;
    padding: 0;
  }

  .chat-panel {
    flex: 1 1 0;
    padding-left: 14px;
    padding-bottom: 14px;
  }

  .messages {
    padding-left: 0;
    padding-right: 14px;
  }

  .composer {
    padding-left: 0;
    padding-right: 14px;
    padding-bottom: 0;
  }

  .chat-titlebar {
    width: calc(100% + 14px);
    height: 54px;
    min-height: 54px;
    margin: 0 0 0 -14px;
    padding: 0 24px 0 6px;
    background: #1E2020;
    backdrop-filter: blur(18px);
  }

  body:not(.sidebar-collapsed) .chat-titlebar {
    grid-template-columns: minmax(0, 1fr) 44px;
    padding-left: 54px;
  }

  body:not(.sidebar-collapsed) .chat-titlebar .mobile-menu-button {
    display: none;
  }

  body.sidebar-collapsed .conversation-sidebar {
    display: none;
  }

  .conversation-sidebar {
    position: relative;
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    margin-top: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 14px 14px;
    border: 0;
    border-radius: 0;
    background: #1E2020;
    box-shadow: none;
    backdrop-filter: blur(18px);
  }

  .sidebar-resize-handle {
    display: block;
    position: absolute;
    top: 18px;
    right: -8px;
    bottom: 18px;
    width: 14px;
    cursor: col-resize;
    touch-action: none;
    z-index: 4;
  }

  .sidebar-resize-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 5px;
    width: 3px;
    height: 54px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
    transform: translateY(-50%);
    transition: background 150ms ease, width 150ms ease;
  }

  .sidebar-resize-handle:hover::after,
  .sidebar-resize-handle:focus-visible::after,
  body.sidebar-resizing .sidebar-resize-handle::after {
    width: 4px;
    background: rgba(212, 212, 212, 0.72);
  }

  body.sidebar-resizing {
    cursor: col-resize;
    user-select: none;
  }

  body.sidebar-resizing * {
    cursor: col-resize !important;
  }

  .sidebar-header,
  .sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .sidebar-header {
    justify-content: center;
    height: 54px;
    min-height: 54px;
    margin: 0 -14px;
    padding: 0 14px;
  }

  .sidebar-title-block strong {
    font-size: 1.05rem;
  }

  .sidebar-new-button,
  .sidebar-archive-button,
  .sidebar-settings-button,
  .sidebar-logout-button {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .sidebar-archive-button,
  .sidebar-settings-button,
  .sidebar-logout-button {
    width: 100%;
  }

  .conversation-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 8px;
  }

  .conversation-item {
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
  }

  .conversation-item.active {
    border-color: rgba(229, 229, 229, 0.22);
    background: #171717;
  }

  @media (hover: hover) and (pointer: fine) {
    .conversation-item:hover {
      border-color: rgba(229, 229, 229, 0.18);
      background: rgba(212, 212, 212, 0.08);
    }

    .conversation-item.active:hover {
      border-color: rgba(229, 229, 229, 0.22);
      background: #171717;
    }
  }

  .conversation-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
  }

  .conversation-pin-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--accent-strong);
    line-height: 1;
    opacity: 1;
    transition: opacity 120ms ease;
    pointer-events: none;
  }

  .conversation-meta,
  .conversation-empty {
    color: var(--muted);
    font-size: 12px;
  }

  .conversation-empty {
    margin: 8px 2px;
    line-height: 1.45;
  }

  .floating-settings-button,
  body.drawer-open .drawer-backdrop {
    display: none;
  }

  body.drawer-open .conversation-sidebar {
    position: static;
    width: auto;
    box-shadow: 0 18px 48px rgba(8, 8, 8, 0.2);
  }

  .settings-panel {
    top: 24px;
    right: 24px;
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #151515;
  --muted: #64748b;
  --border: rgba(21, 21, 21, 0.14);
  --assistant: #ffffff;
  --system: #fff7ed;
  --system-text: #7c2d12;
}

html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="light"] body { background: var(--bg); }

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .settings-panel,
html[data-theme="light"] .attachment-chip,
html[data-theme="light"] .slash-command-palette { background: rgba(255, 255, 255, 0.94); }

html[data-theme="light"] .composer { background: linear-gradient(180deg, transparent, var(--bg) 20%); }

html[data-theme="light"] .mobile-menu-icon,
html[data-theme="light"] .sidebar-new-icon,
html[data-theme="light"] .model-picker-icon {
  filter: none;
}

html[data-theme="light"] .location-toggle {
  border-color: rgba(15, 23, 42, 0.18);
  background: #ffffff;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .location-toggle:has(input:checked) {
  border-color: #0284c7;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  box-shadow:
    0 0 0 2px rgba(2, 132, 199, 0.22) inset,
    0 8px 18px rgba(2, 132, 199, 0.22);
}

html[data-theme="light"] .location-toggle:has(input:checked)::after {
  background: #0284c7;
  box-shadow: 0 0 0 2px #e0f2fe;
}

html[data-theme="light"] .location-toggle:has(input:focus-visible) {
  outline: 2px solid rgba(2, 132, 199, 0.45);
  outline-offset: 2px;
}

html[data-theme="light"] .conversation-search {
  border-color: rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  box-shadow: 0 8px 22px rgba(21, 21, 21, 0.08);
}

html[data-theme="light"] .conversation-search:focus-within {
  border-color: rgba(2, 132, 199, 0.32);
  background: #ffffff;
  color: #151515;
}

html[data-theme="light"] .conversation-search input {
  background: transparent;
  color: #151515;
}

html[data-theme="light"] .conversation-item.active,
html[data-theme="light"] .conversation-item.active:hover {
  background: #D9D7D7;
  border-color: rgba(21, 21, 21, 0.14);
}

html[data-theme="light"] .message.user {
  background: linear-gradient(135deg, #bae6fd, #93c5fd);
  color: #151515;
}

html[data-theme="light"] .message.user a { color: #075985; }

html[data-theme="light"] .chat-titlebar,
html[data-theme="light"] .conversation-sidebar {
  background: #F1F4F9;
  box-shadow: 0 10px 28px rgba(21, 21, 21, 0.10);
}

html[data-theme="light"] .mobile-menu-button {
  background: transparent;
  box-shadow: none;
  color: #475569;
}

html[data-theme="light"] .model-picker-button {
  background: transparent;
  box-shadow: none;
  color: #475569;
}

html[data-theme="light"] .copy-conversation-link-button {
  background: transparent;
  box-shadow: none;
  color: #64748b;
}

html[data-theme="light"] .copy-conversation-link-button:hover,
html[data-theme="light"] .copy-conversation-link-button:focus-visible {
  color: #1e293b;
}

html[data-theme="light"] .model-picker-panel {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(21, 21, 21, 0.12);
}

html[data-theme="light"] .model-picker-item {
  background: rgba(248, 250, 252, 0.94);
  color: #151515;
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="light"] .model-picker-status {
  color: #64748b;
}

html[data-theme="light"] .floating-action-toggle {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(21, 21, 21, 0.14);
  color: #64748b;
  box-shadow: 0 18px 40px rgba(8, 8, 8, 0.16);
}

html[data-theme="light"] .floating-action-toggle:hover,
html[data-theme="light"] .floating-action-toggle:focus-visible {
  background: #f8fafc;
  border-color: rgba(21, 21, 21, 0.22);
  color: #334155;
}

html[data-theme="light"] .media-viewer-actions .ghost-button {
  color: #151515;
  border-color: rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(21, 21, 21, 0.18);
}

html[data-theme="light"] .markdown-table-wrapper {
  background: rgba(248, 250, 252, 0.82);
}

html[data-theme="light"] .message blockquote {
  border-left-color: rgba(14, 116, 144, 0.72);
  color: #334155;
}

html[data-theme="light"] .code-block {
  border-color: rgba(148, 163, 184, 0.26);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .code-block-header {
  background: #eef2f7;
  color: #475569;
}

html[data-theme="light"] .code-copy-button {
  background: #e2e8f0;
  color: #1e293b;
}

html[data-theme="light"] .message th {
  background: rgba(21, 21, 21, 0.07);
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    color-scheme: light;
    --bg: #FFFFFF;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --text: #151515;
    --muted: #64748b;
    --border: rgba(21, 21, 21, 0.14);
    --assistant: #ffffff;
    --system: #fff7ed;
    --system-text: #7c2d12;
  }

  html[data-theme="system"] body { background: var(--bg); }

  html[data-theme="system"] input,
  html[data-theme="system"] textarea,
  html[data-theme="system"] select,
  html[data-theme="system"] .settings-panel,
  html[data-theme="system"] .attachment-chip,
  html[data-theme="system"] .slash-command-palette { background: rgba(255, 255, 255, 0.94); }

  html[data-theme="system"] .composer { background: linear-gradient(180deg, transparent, var(--bg) 20%); }

  html[data-theme="system"] .conversation-search {
    border-color: rgba(21, 21, 21, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: #64748b;
    box-shadow: 0 8px 22px rgba(21, 21, 21, 0.08);
  }

  html[data-theme="system"] .conversation-search:focus-within {
    border-color: rgba(2, 132, 199, 0.32);
    background: #ffffff;
    color: #151515;
  }

  html[data-theme="system"] .conversation-search input {
    background: transparent;
    color: #151515;
  }

  html[data-theme="system"] .message.user {
    background: linear-gradient(135deg, #bae6fd, #93c5fd);
    color: #151515;
  }

  html[data-theme="system"] .message.user a { color: #075985; }

  html[data-theme="system"] .chat-titlebar,
  html[data-theme="system"] .conversation-sidebar {
    background: #E9EEF6;
    box-shadow: 0 10px 28px rgba(21, 21, 21, 0.10);
  }

  html[data-theme="system"] .mobile-menu-button {
    background: transparent;
    box-shadow: none;
    color: #475569;
  }

  html[data-theme="system"] .model-picker-button {
    background: transparent;
    box-shadow: none;
    color: #475569;
  }

  html[data-theme="system"] .copy-conversation-link-button {
    background: transparent;
    box-shadow: none;
    color: #64748b;
  }

  html[data-theme="system"] .copy-conversation-link-button:hover,
  html[data-theme="system"] .copy-conversation-link-button:focus-visible {
    color: #1e293b;
  }

  html[data-theme="system"] .model-picker-panel {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(21, 21, 21, 0.12);
  }

  html[data-theme="system"] .model-picker-item {
    background: rgba(248, 250, 252, 0.94);
    color: #151515;
    border-color: rgba(148, 163, 184, 0.22);
  }

  html[data-theme="system"] .model-picker-status {
    color: #64748b;
  }

  html[data-theme="system"] .floating-action-toggle {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(21, 21, 21, 0.14);
    color: #64748b;
    box-shadow: 0 18px 40px rgba(8, 8, 8, 0.16);
  }

  html[data-theme="system"] .floating-action-toggle:hover,
  html[data-theme="system"] .floating-action-toggle:focus-visible {
    background: #f8fafc;
    border-color: rgba(21, 21, 21, 0.22);
    color: #334155;
  }

  html[data-theme="system"] .media-viewer-actions .ghost-button {
    color: #151515;
    border-color: rgba(21, 21, 21, 0.14);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(21, 21, 21, 0.18);
  }

  html[data-theme="system"] .markdown-table-wrapper {
    background: rgba(248, 250, 252, 0.82);
  }

  html[data-theme="system"] .message blockquote {
    border-left-color: rgba(14, 116, 144, 0.72);
    color: #334155;
  }

  html[data-theme="system"] .code-block {
    border-color: rgba(148, 163, 184, 0.26);
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  }

  html[data-theme="system"] .code-block-header {
    background: #eef2f7;
    color: #475569;
  }

  html[data-theme="system"] .code-copy-button {
    background: #e2e8f0;
    color: #1e293b;
  }

  html[data-theme="system"] .message th {
    background: rgba(21, 21, 21, 0.07);
  }
}

.conversation-item {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.conversation-select-button {
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.conversation-menu-wrap {
  position: relative;
  align-self: stretch;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conversation-menu-button {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease;
}

.conversation-item:hover .conversation-menu-button,
.conversation-item:focus-within .conversation-menu-button,
.conversation-item.menu-open .conversation-menu-button {
  opacity: 1;
}

.conversation-item:hover .conversation-pin-icon,
.conversation-item:focus-within .conversation-pin-icon,
.conversation-item.menu-open .conversation-pin-icon {
  opacity: 0;
}

.conversation-menu-button:hover,
.conversation-menu-button:focus-visible,
.conversation-item.menu-open .conversation-menu-button {
  background: rgba(148, 163, 184, 0.14);
}

.conversation-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 132px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(21, 21, 21, 0.98);
  box-shadow: 0 18px 40px rgba(8, 8, 8, 0.35);
}

.conversation-menu button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.conversation-menu button:hover {
  background: rgba(148, 163, 184, 0.16);
}

.conversation-menu .danger-menu-item {
  color: #fca5a5;
}

.conversation-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(8, 8, 8, 0.45);
}

.conversation-dialog::backdrop {
  background: rgba(8, 8, 8, 0.64);
  backdrop-filter: blur(4px);
}

.conversation-dialog-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.conversation-dialog-panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.conversation-dialog-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.conversation-dialog-text,
.conversation-dialog-warning {
  margin: 0;
  line-height: 1.5;
}

.conversation-dialog-warning {
  color: #fca5a5;
  font-size: 13px;
}

.conversation-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
}

html[data-theme="light"] .conversation-menu,
html[data-theme="light"] .conversation-dialog {
  background: rgba(255, 255, 255, 0.98);
}

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

.messages {
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  -ms-overflow-style: none;
}

.messages::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (pointer: fine) {
  .conversation-list,
  .settings-panel,
  textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.34) transparent;
  }

  .conversation-list::-webkit-scrollbar,
  .settings-panel::-webkit-scrollbar,
  textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .conversation-list::-webkit-scrollbar-track,
  .settings-panel::-webkit-scrollbar-track,
  textarea::-webkit-scrollbar-track {
    background: transparent;
  }

  .conversation-list::-webkit-scrollbar-thumb,
  .settings-panel::-webkit-scrollbar-thumb,
  textarea::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background-color: rgba(148, 163, 184, 0.28);
  }

  .conversation-list:hover::-webkit-scrollbar-thumb,
  .settings-panel:hover::-webkit-scrollbar-thumb,
  textarea:hover::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.46);
  }

  .conversation-list::-webkit-scrollbar-corner,
  .settings-panel::-webkit-scrollbar-corner,
  textarea::-webkit-scrollbar-corner {
    background: transparent;
  }
}

.scroll-latest-button {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 112px;
  transform: translateX(-50%);
  z-index: 12;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  background: rgba(52, 52, 52, 0.92);
  border-color: rgba(212, 212, 212, 0.32);
  color: white;
  box-shadow: 0 14px 36px rgba(8, 8, 8, 0.32);
  backdrop-filter: blur(12px);
}

.scroll-latest-button:hover {
  background: rgba(72, 72, 72, 0.96);
  transform: translateX(-50%) translateY(-1px);
}

@media (max-width: 899px) {
  .scroll-latest-button {
    left: 50%;
    right: auto;
    bottom: 104px;
  }
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(212, 212, 212, 0.12), rgba(21, 21, 21, 0.96) 54%);
}

.login-screen.hidden { display: none; }

.login-card {
  width: min(100%, 380px);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(21, 21, 21, 0.88);
  box-shadow: 0 28px 80px rgba(8, 8, 8, 0.44);
  backdrop-filter: blur(18px);
}

.login-card h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.login-brand {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(21, 21, 21, 0.7);
}

body.auth-required .app-shell {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.version-alert {
  position: fixed;
  left: 50%;
  bottom: calc(max(22px, env(safe-area-inset-bottom)) + 112px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(92vw, 620px);
  padding: 14px 16px;
  border: 1px solid rgba(251, 191, 36, 0.48);
  border-radius: 18px;
  background: rgba(36, 36, 36, 0.96);
  color: var(--text);
  box-shadow: 0 20px 56px rgba(8, 8, 8, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.version-alert__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.version-alert__text strong { color: #fef3c7; }
.version-alert__text span { color: var(--muted); font-size: 13px; line-height: 1.35; }

.version-alert__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.version-alert__refresh {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #1b1b1b;
  font-weight: 800;
  cursor: pointer;
}

.version-alert__dismiss { padding: 9px 12px; }

html[data-theme="light"] .version-alert {
  background: rgba(255, 251, 235, 0.98);
  color: #151515;
  box-shadow: 0 20px 56px rgba(21, 21, 21, 0.18);
}

html[data-theme="light"] .version-alert__text strong { color: #92400e; }

@media (prefers-color-scheme: light) {
  html[data-theme="system"] .version-alert {
    background: rgba(255, 251, 235, 0.98);
    color: #151515;
    box-shadow: 0 20px 56px rgba(21, 21, 21, 0.18);
  }

  html[data-theme="system"] .version-alert__text strong { color: #92400e; }
}

@media (max-width: 640px) {
  .version-alert {
    align-items: stretch;
    flex-direction: column;
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 96px);
  }

  .version-alert__actions { justify-content: flex-end; }
}

@media (max-width: 899px) {
  body.drawer-open .chat-panel,
  body.floating-actions-open .chat-titlebar,
  body.floating-actions-open .messages,
  body.floating-actions-open .messages-scroll-indicator,
  body.floating-actions-open .composer,
  body.settings-open .chat-titlebar,
  body.settings-open .messages,
  body.settings-open .messages-scroll-indicator,
  body.settings-open .composer,
  body.settings-open .floating-action-menu {
    filter: blur(3px);
    transform: translateZ(0);
    transition: filter 160ms ease;
    pointer-events: none;
    user-select: none;
  }

  body.floating-actions-open .floating-action-menu,
  body.settings-open .settings-panel {
    filter: none;
    pointer-events: auto;
    user-select: auto;
  }
}

.spot-plugin-card {
  margin-top: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.72));
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.22);
  white-space: normal;
}

.spot-plugin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.spot-plugin-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 700;
}

.spot-plugin-body {
  display: grid;
  gap: 7px;
  padding: 12px 13px 4px;
}

.spot-plugin-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.spot-plugin-field code {
  color: var(--text);
  background: rgba(15, 23, 42, 0.58);
}

.spot-plugin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 13px;
}

.spot-plugin-button {
  border: 1px solid rgba(96, 165, 250, 0.44);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(37, 99, 235, 0.24);
  color: var(--text);
  font-weight: 800;
}

.spot-plugin-button.secondary {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.14);
}

.spot-plugin-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.spot-plugin-status {
  margin: 0;
  padding: 0 13px 13px;
  color: var(--muted);
  font-size: 12px;
}

.spot-plugin-status[data-kind="ok"] { color: #86efac; }
.spot-plugin-status[data-kind="warn"] { color: #fde68a; }
.spot-plugin-status[data-kind="error"] { color: #fca5a5; }

html[data-theme="light"] .spot-plugin-card {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.98));
}

html[data-theme="light"] .spot-plugin-badge {
  color: #1d4ed8;
}

html[data-theme="light"] .spot-plugin-field code {
  background: #e2e8f0;
  color: #0f172a;
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] .spot-plugin-card {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.98));
  }

  html[data-theme="system"] .spot-plugin-badge {
    color: #1d4ed8;
  }

  html[data-theme="system"] .spot-plugin-field code {
    background: #e2e8f0;
    color: #0f172a;
  }
}

.chat-search-overlay {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 58px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: min(720px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.92);
  box-shadow: 0 18px 44px rgba(8, 8, 8, 0.38);
  backdrop-filter: blur(18px);
}

.chat-search-overlay.hidden { display: none; }

.chat-search-overlay input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
}

.chat-search-button,
.chat-search-nav-button,
.chat-search-close-button {
  min-height: 38px;
  border-radius: 999px;
  font-weight: 800;
}

.chat-search-button { padding: 0 13px; }

.chat-search-nav-button,
.chat-search-close-button {
  width: 38px;
  padding: 0;
  justify-content: center;
}

.chat-search-nav-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.chat-search-status {
  min-width: 52px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.message.chat-search-current {
  outline: 3px solid rgba(250, 204, 21, 0.88);
  box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.2);
}

html[data-theme="light"] .chat-search-overlay,
html[data-theme="system"] .chat-search-overlay {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 560px) {
  .chat-search-overlay {
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .chat-search-button {
    padding: 0 11px;
  }

  .chat-search-status {
    grid-column: 1 / -2;
    min-width: 0;
    text-align: left;
    padding-left: 8px;
  }
}
