:root {
  color-scheme: light;
  --canvas: #f7f7f9;
  --sidebar: #f0f1f4;
  --surface: #ffffff;
  --surface-soft: #f7f7fa;
  --surface-hover: #e9eaf0;
  --surface-active: #e7e5fb;
  --text: #22232b;
  --text-secondary: #646773;
  --text-muted: #898c98;
  --border: #e5e6eb;
  --border-strong: #d9dbe2;
  --accent: #6755d9;
  --accent-hover: #5946c9;
  --accent-soft: #eeecfd;
  --accent-text: #5543c3;
  --danger: #c64048;
  --danger-soft: #fff0f0;
  --green: #21865a;
  --shadow: 0 18px 60px rgb(28 30 42 / 14%);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111218;
  --sidebar: #17181f;
  --surface: #1b1c24;
  --surface-soft: #20212a;
  --surface-hover: #292a35;
  --surface-active: #302b4c;
  --text: #f0f0f5;
  --text-secondary: #c1c2cc;
  --text-muted: #8e909d;
  --border: #2c2d38;
  --border-strong: #3b3c49;
  --accent: #a99bff;
  --accent-hover: #b9adff;
  --accent-soft: #302b4c;
  --accent-text: #c3baff;
  --danger: #ff858a;
  --danger-soft: #3b2227;
  --green: #61c991;
  --shadow: 0 20px 64px rgb(0 0 0 / 42%);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; color: var(--text); background: var(--canvas); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { display: flex; width: 100%; height: 100dvh; min-height: 460px; overflow: hidden; }
.sidebar { position: relative; z-index: 5; width: 286px; flex: 0 0 286px; display: flex; flex-direction: column; padding: 18px 13px 12px; background: var(--sidebar); border-right: 1px solid var(--border); transition: width .2s ease, flex-basis .2s ease, transform .22s ease; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 6px 0 4px; margin-bottom: 21px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #8272f0, #5746c4); box-shadow: 0 4px 10px rgb(103 85 217 / 24%); }
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.brand-copy { display: grid; gap: 2px; min-width: 0; }
.brand-copy strong { font-size: 13px; line-height: 1.2; font-weight: 650; letter-spacing: -.1px; }
.brand-copy small { color: var(--text-muted); font-size: 10px; line-height: 1.2; letter-spacing: .35px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; color: var(--text-secondary); background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border); }
.sidebar-collapse { flex: 0 0 34px; }

.new-chat-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 11px; color: #fff; background: var(--accent); border: 0; border-radius: 10px; box-shadow: 0 4px 12px rgb(103 85 217 / 17%); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.new-chat-button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.new-chat-button .icon { width: 17px; height: 17px; }
.new-chat-button kbd, .search-box kbd, .enter-hint kbd { color: inherit; font: inherit; font-size: 10px; opacity: .68; }
.new-chat-button kbd { margin-left: auto; }

.search-box { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 10px; margin-top: 12px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; transition: border-color .15s ease, box-shadow .15s ease; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.search-box .icon { width: 16px; height: 16px; }
.search-box input { width: 100%; min-width: 0; padding: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-box input::placeholder { color: var(--text-muted); }
.search-box kbd { flex: 0 0 auto; padding: 2px 4px; color: var(--text-muted); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 4px; font-size: 9px; }

.history-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 9px; margin: 24px 0 7px; color: var(--text-muted); font-size: 10px; line-height: 18px; font-weight: 650; letter-spacing: .55px; text-transform: uppercase; }
.history-count { min-width: 20px; padding: 0 5px; color: var(--text-muted); background: var(--surface-hover); border-radius: 10px; text-align: center; font-size: 9px; letter-spacing: 0; }
.history-scroll { min-height: 0; flex: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.empty-history { padding: 12px 10px; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.chat-list { display: grid; gap: 3px; }
.chat-item { position: relative; display: flex; align-items: center; min-width: 0; min-height: 36px; padding: 0 5px 0 10px; border-radius: 8px; color: var(--text-secondary); transition: background .14s ease, color .14s ease; }
.chat-item:hover { background: var(--surface-hover); color: var(--text); }
.chat-item.active { color: var(--accent-text); background: var(--surface-active); }
.chat-select { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; height: 36px; padding: 0; overflow: hidden; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.chat-select .icon { width: 15px; height: 15px; color: var(--text-muted); }
.chat-item.active .chat-select .icon { color: var(--accent); }
.chat-title-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.chat-actions { display: flex; align-items: center; gap: 1px; opacity: 0; transition: opacity .14s ease; }
.chat-item:hover .chat-actions, .chat-item:focus-within .chat-actions, .chat-item.active .chat-actions { opacity: 1; }
.chat-actions .icon-button { width: 26px; height: 27px; color: var(--text-muted); }
.chat-actions .icon-button .icon { width: 14px; height: 14px; }
.chat-actions .icon-button:hover { color: var(--text); }

.sidebar-footer { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); }
.provider-card { display: flex; align-items: center; gap: 9px; min-height: 47px; padding: 5px 7px; margin-bottom: 6px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); border-radius: 10px; }
.provider-indicator, .model-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 13%, transparent); }
.provider-copy { display: grid; gap: 2px; min-width: 0; }
.provider-copy strong { color: var(--text); font-size: 10px; font-weight: 650; }
.provider-copy small { overflow: hidden; color: var(--text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.provider-status { margin-left: auto; padding: 3px 6px; color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); border-radius: 5px; font-size: 9px; font-weight: 650; }
.settings-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 9px; color: var(--text-secondary); background: transparent; border: 0; border-radius: 8px; text-align: left; font-size: 11px; cursor: pointer; }
.settings-button .icon { width: 16px; height: 16px; }
.settings-button:hover { color: var(--text); background: var(--surface-hover); }
.privacy-caption { padding: 6px 9px 0; color: var(--text-muted); font-size: 9px; }

.main-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1; background: var(--canvas); }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 24px; background: color-mix(in srgb, var(--canvas) 88%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.topbar-leading, .topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-menu-button { display: none; }
.breadcrumb { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text-muted); font-size: 11px; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb strong { max-width: min(42vw, 380px); overflow: hidden; color: var(--text); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.model-pill { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 9px; color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; font-size: 10px; }
.model-dot { width: 6px; height: 6px; box-shadow: none; }
.model-caret { padding-left: 7px; color: var(--green); border-left: 1px solid var(--border); font-size: 9px; font-weight: 600; }
.theme-quick-toggle { width: 32px; height: 32px; }
.theme-quick-toggle .icon { width: 16px; height: 16px; }

.chat-viewport { display: flex; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-color: var(--border-strong) transparent; scrollbar-width: thin; }
.conversation-inner { display: flex; flex-direction: column; width: min(100%, 920px); min-height: 100%; padding: 0 32px; margin: 0 auto; }
.message-list { display: grid; gap: 27px; padding: 34px 0 42px; }
.message { display: flex; align-items: flex-start; gap: 11px; min-width: 0; animation: fade-up .2s ease both; }
.message.user { justify-content: flex-end; }
.assistant-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; margin-top: 1px; color: #fff; background: linear-gradient(145deg, #8170ee, #5c4bc1); border-radius: 9px; box-shadow: 0 2px 7px rgb(91 73 192 / 20%); }
.assistant-avatar .icon { width: 16px; height: 16px; stroke-width: 1.6; }
.message-main { display: grid; gap: 7px; max-width: min(100%, 760px); min-width: 0; }
.message.user .message-main { align-items: end; }
.message-meta { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 10px; font-weight: 600; }
.message-meta time { color: var(--text-muted); font-size: 9px; font-weight: 400; }
.message.user .message-meta { justify-content: flex-end; }
.message-content { color: var(--text); font-size: 13px; line-height: 1.78; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user .message-content { max-width: min(680px, 78vw); padding: 10px 14px; background: var(--surface-active); border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border)); border-radius: 14px 5px 14px 14px; }
.message-actions { display: flex; align-items: center; gap: 4px; min-height: 26px; opacity: .7; transition: opacity .14s ease; }
.message:hover .message-actions, .message:focus-within .message-actions { opacity: 1; }
.message-action { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 7px; color: var(--text-muted); background: transparent; border: 1px solid transparent; border-radius: 6px; font-size: 9px; cursor: pointer; }
.message-action .icon { width: 13px; height: 13px; }
.message-action:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border); }
.message-typing { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; }
.message-typing span { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; opacity: .4; animation: typing 1.1s ease-in-out infinite; }
.message-typing span:nth-child(2) { animation-delay: .14s; }
.message-typing span:nth-child(3) { animation-delay: .28s; }

.composer-dock { position: relative; z-index: 1; flex: 0 0 auto; padding: 10px 24px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, color-mix(in srgb, var(--canvas) 0%, transparent), var(--canvas) 25%); }
.composer-wrap { width: min(100%, 820px); margin: 0 auto; }
.composer { padding: 12px 13px 9px 16px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 15px; box-shadow: 0 8px 26px rgb(25 27 39 / 6%); transition: border-color .16s ease, box-shadow .16s ease; }
.composer:focus-within { border-color: color-mix(in srgb, var(--accent) 70%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent), 0 8px 26px rgb(25 27 39 / 7%); }
.composer textarea { display: block; width: 100%; min-height: 33px; max-height: 170px; padding: 4px 1px 7px; resize: none; overflow-y: auto; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 13px; line-height: 1.6; }
.composer textarea::placeholder { color: var(--text-muted); }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.composer-hint { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 9px; }
.hint-orb { width: 6px; height: 6px; flex: 0 0 6px; background: var(--accent); border-radius: 50%; opacity: .7; }
.composer-actions { display: flex; align-items: center; gap: 11px; }
.enter-hint { color: var(--text-muted); font-size: 9px; white-space: nowrap; }
.enter-hint kbd { padding: 2px 4px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 4px; }
.send-button { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; color: #fff; background: var(--accent); border: 0; border-radius: 9px; cursor: pointer; box-shadow: 0 3px 8px rgb(103 85 217 / 19%); transition: background .15s ease, transform .15s ease; }
.send-button:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.send-button .icon { width: 16px; height: 16px; }
.request-error { display: flex; align-items: center; gap: 8px; width: min(100%, 820px); min-height: 36px; padding: 7px 10px; margin: 0 auto 8px; color: var(--danger); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--border)); border-radius: 9px; font-size: 11px; }
.request-error[hidden] { display: none; }
.error-indicator { width: 6px; height: 6px; flex: 0 0 6px; background: var(--danger); border-radius: 50%; }
.error-retry { margin-left: auto; padding: 4px 9px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 6px; font-size: 10px; font-weight: 600; cursor: pointer; }
.error-retry:hover { background: color-mix(in srgb, var(--danger) 9%, transparent); }

.modal { width: min(450px, calc(100vw - 32px)); max-height: min(700px, calc(100dvh - 32px)); padding: 0; overflow: auto; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.modal::backdrop { background: rgb(12 13 20 / 38%); backdrop-filter: blur(4px); }
.modal form { margin: 0; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 22px 15px; border-bottom: 1px solid var(--border); }
.modal-kicker { color: var(--accent); font-size: 9px; line-height: 1.4; font-weight: 700; letter-spacing: 1.1px; }
.modal h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: -.3px; }
.modal-content { padding: 18px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; border-top: 1px solid var(--border); }
.theme-options { display: grid; gap: 9px; padding: 0; margin: 0; border: 0; }
.theme-options legend { padding: 0; color: var(--text); font-size: 12px; font-weight: 650; }
.theme-options > p { margin: -3px 0 6px; color: var(--text-secondary); font-size: 11px; }
.theme-option { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.theme-option:hover { background: var(--surface-soft); }
.theme-option:has(input:checked) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.theme-option input { accent-color: var(--accent); }
.theme-option > span:last-child { display: grid; gap: 3px; }
.theme-option strong { font-size: 11px; font-weight: 600; }
.theme-option small { color: var(--text-muted); font-size: 9px; }
.theme-preview { display: flex; align-items: center; width: 42px; height: 29px; padding: 4px; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
.theme-preview i { display: block; width: 12px; height: 100%; border-radius: 3px; }
.system-preview { justify-content: flex-start; background: linear-gradient(90deg, #fff 50%, #23242c 50%); }
.system-preview i { background: linear-gradient(90deg, #e7e8ee 50%, #3d3f4a 50%); }
.light-preview { background: #fff; }
.light-preview i { background: #e9eaf0; }
.dark-preview { background: #22232b; }
.dark-preview i { background: #40414c; }
.settings-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin-top: 18px; color: var(--text-secondary); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.settings-note > .icon { width: 16px; height: 16px; color: var(--accent); }
.settings-note p { display: grid; gap: 3px; margin: 0; }
.settings-note strong { color: var(--text); font-size: 10px; }
.settings-note span { font-size: 10px; line-height: 1.55; }
.secondary-button, .primary-button, .danger-button { min-height: 34px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 10px; font-weight: 600; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.secondary-button { color: var(--text-secondary); background: var(--surface); }
.secondary-button:hover { color: var(--text); background: var(--surface-hover); }
.primary-button { color: #fff; background: var(--accent); border-color: var(--accent); }
.primary-button:hover { background: var(--accent-hover); }
.danger-button { color: #fff; background: #c6424d; border-color: #c6424d; }
.danger-button:hover { background: #b53641; }
.compact-modal { width: min(390px, calc(100vw - 32px)); }
.compact-modal .modal-header { align-items: center; padding-bottom: 16px; }
.field-label { display: block; margin-bottom: 7px; color: var(--text-secondary); font-size: 10px; font-weight: 600; }
.text-field { width: 100%; min-height: 38px; padding: 0 10px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--border-strong); border-radius: 8px; font-size: 12px; }
.delete-copy { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 20px; max-width: min(360px, calc(100vw - 32px)); padding: 11px 14px; color: var(--surface); background: var(--text); border: 1px solid color-mix(in srgb, var(--text) 75%, transparent); border-radius: 9px; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.sidebar-backdrop { display: none; }
.mobile-brand { display: none; }

.sidebar-collapsed .sidebar { width: 74px; flex-basis: 74px; padding-inline: 10px; }
.sidebar-collapsed .sidebar-top { justify-content: center; padding: 0; }
.sidebar-collapsed .brand-copy, .sidebar-collapsed .new-chat-button span, .sidebar-collapsed .new-chat-button kbd, .sidebar-collapsed .search-box input, .sidebar-collapsed .search-box kbd, .sidebar-collapsed .history-heading, .sidebar-collapsed .chat-title-text, .sidebar-collapsed .chat-actions, .sidebar-collapsed .provider-copy, .sidebar-collapsed .provider-status, .sidebar-collapsed .settings-button span, .sidebar-collapsed .privacy-caption, .sidebar-collapsed .empty-history { display: none; }
.sidebar-collapsed .brand { display: none; }
.sidebar-collapsed .sidebar-collapse { display: inline-grid; }
.sidebar-collapsed .new-chat-button { justify-content: center; padding: 0; }
.sidebar-collapsed .search-box { justify-content: center; padding: 0; }
.sidebar-collapsed .chat-item { justify-content: center; padding: 0; }
.sidebar-collapsed .chat-select { justify-content: center; flex: 0 0 38px; }
.sidebar-collapsed .chat-select .icon { width: 17px; height: 17px; }
.sidebar-collapsed .provider-card { justify-content: center; padding: 0; }
.sidebar-collapsed .settings-button { justify-content: center; padding: 0; }
.sidebar-collapsed .history-scroll { overflow: auto; }

@keyframes fade-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typing { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-4px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 960px) {
  .sidebar { width: 258px; flex-basis: 258px; }
  .conversation-inner { padding-inline: 26px; }
  .suggestions { gap: 8px; }
  .suggestion-card { gap: 8px; padding-inline: 9px; }
}

@media (max-width: 760px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, calc(100vw - 52px)); height: 100dvh; transform: translateX(-101%); box-shadow: none; }
  .sidebar-open .sidebar { transform: translateX(0); box-shadow: var(--shadow); }
  .sidebar-backdrop { position: fixed; z-index: 4; inset: 0; display: block; background: rgb(10 11 18 / 38%); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .sidebar-collapse { display: none; }
  .mobile-menu-button { display: inline-grid; }
  .topbar { min-height: 54px; padding-inline: 12px; }
  .topbar-leading { gap: 7px; }
  .breadcrumb { gap: 5px; font-size: 10px; }
  .breadcrumb strong { max-width: 34vw; font-size: 11px; }
  .topbar-actions { gap: 6px; }
  .model-pill { gap: 6px; min-height: 28px; padding-inline: 7px; font-size: 9px; }
  .model-caret { padding-left: 5px; }
  .conversation-inner { padding-inline: 18px; }
  .message-list { gap: 22px; padding-block: 22px 30px; }
  .message-main { max-width: calc(100% - 39px); }
  .message.user .message-main { max-width: 88%; }
  .message.user .message-content { max-width: 100%; }
  .message-content { font-size: 12px; }
  .composer-dock { padding: 7px 10px max(11px, env(safe-area-inset-bottom)); }
  .composer { padding: 10px 10px 8px 13px; border-radius: 13px; }
  .composer-hint { max-width: 55%; font-size: 8px; line-height: 1.4; }
  .enter-hint { display: none; }
  .toast { right: 12px; bottom: 12px; }
}

@media (max-width: 430px) {
  .topbar .theme-quick-toggle { width: 29px; height: 29px; }
  .topbar .model-pill { gap: 5px; }
  .model-caret { display: none; }
  .breadcrumb > span { display: none; }
  .breadcrumb > .icon { display: none; }
  .conversation-inner { padding-inline: 14px; }
  .composer-toolbar { align-items: flex-end; }
  .composer-hint { max-width: 62%; }
}
