@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f8faf9;
  --sidebar: #f0f4f2;
  --surface: #fff;
  --ink: #213b33;
  --body: #42594f;
  --muted: #819188;
  --faint: #a1aea6;
  --line: #e2e9e4;
  --teal: #0d5b4b;
  --teal-dark: #084b3d;
  --teal-soft: #e6f0eb;
  --sidebar-width: 260px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; }
body { background: var(--page); color: var(--ink); overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input, textarea, select { outline: none; }
button { border: 0; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #7db5a4; outline-offset: 3px; }
button { transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
[data-icon] { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; }
a { color: var(--teal); }
::selection { background: #cce3d8; color: #163e31; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4ded7; border-radius: 10px; }
.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; }

.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 30px 20px 0; background: var(--sidebar); border-right: 1px solid var(--line); z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; width: max-content; margin: 0 6px 32px; color: var(--ink); text-decoration: none; letter-spacing: -.8px; font-size: 21px; font-weight: 720; }
.brand-mark { display: flex; align-items: center; justify-content: center; color: #e1f0e7; background: var(--teal); width: 35px; height: 35px; border-radius: 11px; }
.brand-mark svg { width: 31px; height: 31px; }
.brand-light { font-weight: 430; }
.brand-period { color: #3b9676; }
.new-chat { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; width: 100%; background: var(--teal); color: #fff; border-radius: 11px; font-size: 13px; font-weight: 550; box-shadow: 0 3px 6px #124a3910; }
.new-chat:hover { background: var(--teal-dark); }
.new-chat svg { width: 17px; height: 17px; }
.new-chat-shortcut { margin-left: auto; font-size: 11px; color: #bcd8cd; font-weight: 400; letter-spacing: .3px; }
.history-search { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 12px; color: #89968e; border: 1px solid transparent; border-radius: 9px; transition: background .15s, border-color .15s; }
.history-search:focus-within { background: #fff9; border-color: #cfddd3; }
.history-search svg { width: 16px; height: 16px; }
.history-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 12px; }
.history-search input::placeholder { color: #8b9890; opacity: 1; }
.history-search input:focus-visible { outline: 0; }
.history-heading { display: flex; align-items: center; gap: 12px; padding: 0 12px; margin: 30px 0 16px; color: #89978e; font-size: 9px; font-weight: 650; letter-spacing: 1.35px; }
.history-heading-line { flex: 1; height: 1px; background: #dfe7e1; }
.history-list { min-height: 0; overflow-y: auto; padding: 0 0 10px; margin: 0 -5px; }
.history-item { display: flex; align-items: center; gap: 2px; border-radius: 9px; margin: 2px 0; color: #60756a; }
.history-item:hover { background: #e7eee9; }
.history-item.active { background: #e1eae4; color: #234d3a; }
.history-select { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 12px 9px 12px 15px; background: transparent; text-align: left; }
.history-icon, .history-icon svg { width: 15px; height: 15px; color: #82978a; }
.history-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-delete { display: flex; align-items: center; justify-content: center; width: 28px; height: 29px; margin-right: 5px; padding: 6px; border-radius: 6px; background: transparent; color: #8a9c90; opacity: 0; }
.history-delete svg { width: 14px; height: 14px; }
.history-item:hover .history-delete, .history-delete:focus-visible { opacity: 1; }
.history-delete:hover { background: #d5e0d8; color: #9d5750; }
.empty-history { text-align: center; color: #9ba89f; padding-top: 22px; }
.empty-history-icon { color: #b2c0b6; width: 36px; height: 36px; border: 1px solid #dde6df; border-radius: 11px; background: #f7faf780; }
.empty-history-icon svg { width: 17px; height: 17px; }
.empty-history p { margin: 14px 0 6px; font-size: 12px; color: #7c8d81; }
.empty-history > span:last-child { font-size: 11px; line-height: 1.8; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.sidebar-about { display: flex; align-items: center; gap: 9px; width: 100%; padding: 14px 8px; margin-bottom: 15px; background: transparent; color: #6c8374; font-size: 11px; text-align: left; }
.sidebar-about > [data-icon]:first-child svg { width: 16px; height: 16px; }
.sidebar-about > [data-icon]:last-child { margin-left: auto; opacity: .6; }
.sidebar-about > [data-icon]:last-child svg { width: 14px; height: 14px; }
.sidebar-about:hover { color: var(--teal); }
.connection-indicator { display: flex; align-items: center; gap: 11px; width: calc(100% + 40px); padding: 20px 22px; margin-left: -20px; background: #eaf0ec; border-top: 1px solid #dfe7e1; text-align: left; }
.connection-indicator:hover { background: #e3ece6; }
.connection-avatar { display: flex; align-items: center; justify-content: center; position: relative; width: 34px; height: 34px; border-radius: 50%; background: #d5e3d9; color: #51725e; font-size: 12px; font-weight: 650; }
.connection-dot { width: 8px; height: 8px; position: absolute; right: -1px; bottom: 0; border-radius: 50%; background: #d8ad51; border: 2px solid #eaf0ec; }
.connection-dot.connected, .connection-dot.online { background: #69a97b; }
.connection-dot.error, .connection-dot.offline { background: #c17e65; }
.connection-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.connection-copy strong { font-size: 11px; color: #4a6654; font-weight: 600; }
.connection-copy > span { font-size: 10px; color: #8a9a8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px; }
.connection-info { color: #93a497; margin-left: auto; }
.connection-info svg { width: 15px; height: 15px; }
.sidebar-overlay { position: fixed; inset: 0; background: #183c2e45; z-index: 25; backdrop-filter: blur(2px); }

.app-main { height: 100%; margin-left: var(--sidebar-width); display: flex; flex-direction: column; position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 82px; padding: 0 42px; }
.topbar-start { display: flex; align-items: center; gap: 16px; min-width: 0; }
.conversation-title { font-size: 13px; font-weight: 550; margin: 0; color: #687e70; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: min(25vw, 320px); }
.topbar-divider { width: 1px; height: 14px; background: #dfe8e1; }
.model-chip { display: flex; align-items: center; gap: 6px; padding: 5px 8px; color: #7b9181; background: #f0f5f1; border: 1px solid #e2ebe4; border-radius: 5px; font-size: 9px; white-space: nowrap; letter-spacing: .1px; }
.model-chip-dot { width: 4px; height: 4px; background: #7ea98c; border-radius: 50%; }
.topbar-note { color: #97a59b; font-size: 10px; display: flex; align-items: center; gap: 7px; }
.status-tick { color: #86a38b; font-size: 14px; }
.sidebar-toggle { display: none !important; }
.conversation-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding: 0 40px; }
.welcome { max-width: 790px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 0 54px; }
.welcome-symbol { color: var(--teal); width: 60px; height: 60px; margin-bottom: 25px; }
.welcome-symbol svg { width: 60px; height: 60px; }
.welcome-eyebrow { color: #789283; font-size: 9px; letter-spacing: 2.6px; font-weight: 650; margin: 0 0 16px; }
.welcome h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.18; font-weight: 520; letter-spacing: -1.8px; color: #264d3b; margin: 0; text-align: center; }
.welcome-description { margin: 17px 0 34px; color: #92a096; font-size: 13px; line-height: 1.75; text-align: center; }
.mobile-break { display: none; }
.suggestion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 670px; }
.suggestion-card { display: flex; align-items: center; min-width: 0; min-height: 88px; gap: 13px; padding: 18px; border: 1px solid #e1e9e3; border-radius: 12px; text-align: left; background: #fff9; }
.suggestion-card:hover { background: #fff; border-color: #c6d9cb; box-shadow: 0 5px 14px #243d2d05; transform: translateY(-2px); }
.suggestion-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 10px; color: #64836b; background: #edf3ed; }
.suggestion-icon svg { width: 18px; height: 18px; }
.suggestion-icon-image { color: #b28f54; background: #f8f2e8; }
.suggestion-icon-code { color: #7b86a5; background: #edf0f7; }
.suggestion-icon-voice { color: #a08095; background: #f5eef2; }
.suggestion-copy { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.suggestion-copy strong { font-size: 12px; color: #4c6756; font-weight: 550; }
.suggestion-copy > span { color: #98a49b; font-size: 10px; line-height: 1.45; }
.suggestion-arrow { margin-left: auto; color: #b9c5bc; }
.suggestion-arrow svg { width: 15px; height: 15px; }
.welcome-footnote { display: flex; align-items: center; gap: 7px; margin-top: 26px; font-size: 9px; color: #a5b0a8; letter-spacing: .2px; }
.tiny-dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: #a7bdb0; }

.composer-dock { flex-shrink: 0; position: relative; padding: 8px 40px 17px; background: var(--page); }
.composer-form { position: relative; width: 100%; max-width: 840px; margin: 0 auto; padding: 12px 18px 12px; border: 1px solid #dbe5de; border-radius: 18px; background: #fff; box-shadow: 0 5px 20px #21452d04, 0 1px 2px #21452d03; transition: border-color .16s, box-shadow .16s; }
.composer-form:focus-within { border-color: #aecbb9; box-shadow: 0 5px 20px #21452d05, 0 0 0 3px #dfece426; }
.composer-topline { display: flex; align-items: center; justify-content: space-between; }
.mode-buttons { display: flex; align-items: center; gap: 3px; padding: 3px; background: #f5f7f5; border: 1px solid #edf1ed; border-radius: 8px; }
.mode-button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 5px 11px; font-size: 10px; color: #8a9d8e; border-radius: 5px; background: transparent; }
.mode-button svg { width: 13px; height: 13px; }
.mode-button:hover { background: #eaf0eb; color: #446b51; }
.mode-button.active, .mode-button[aria-pressed="true"] { background: #fff; color: var(--teal); box-shadow: 0 1px 3px #2944330e; font-weight: 550; }
.composer-enter-hint { color: #b7c1b9; font-size: 9px; }
.composer-enter-hint span { font-size: 12px; margin-left: 4px; }
#prompt { display: block; width: 100%; height: 62px; max-height: 180px; resize: none; padding: 20px 3px 12px; margin: 0; border: 0; background: transparent; outline: none; color: #365541; font-size: 13px; line-height: 1.7; overflow-y: auto; }
#prompt::placeholder { color: #a8b4aa; opacity: 1; }
#prompt:focus-visible { outline: none; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; }
.composer-tools { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 7px; color: #8a9f90; background: transparent; border-radius: 7px; }
.icon-button:hover { background: #edf3ee; color: var(--teal); }
.icon-button svg { width: 17px; height: 17px; }
.toolbar-divider { width: 1px; height: 14px; background: #edf0ed; margin: 0 1px; }
.settings-button { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 6px; color: #9aa99e; background: transparent; font-size: 10px; }
.settings-button:hover, .settings-button[aria-expanded="true"] { background: #f1f5f1; color: var(--teal); }
.settings-button svg { width: 15px; height: 15px; }
.composer-send-group { display: flex; align-items: center; gap: 15px; }
.char-count { color: #b3bfb6; font-size: 9px; font-variant-numeric: tabular-nums; }
.send-button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 10px; background: var(--teal); box-shadow: 0 2px 4px #154d3610; }
.send-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.send-button:active { transform: translateY(0); }
.send-button svg { width: 17px; height: 17px; }
.send-button:disabled { color: #afc2b4; background: #e7eee9; box-shadow: none; transform: none; }
.composer-hint { text-align: center; color: #a3b0a7; font-size: 9px; margin: 12px 0 0; line-height: 1.5; }
.scroll-bottom { position: absolute; top: -42px; left: calc(50% - 17px); height: 34px; width: 34px; background: #fff; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 3px 9px #16402c08; }
.settings-panel { position: absolute; bottom: calc(100% + 12px); left: 18px; width: 295px; padding: 18px; background: #fff; border: 1px solid #e0e9e2; border-radius: 14px; box-shadow: 0 12px 40px #173d2b12; z-index: 15; }
.settings-panel-heading { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 12px; color: #4a6b55; }
.settings-panel-heading svg { width: 15px; height: 15px; }
.settings-option-group { display: flex; flex-direction: column; gap: 9px; }
.settings-option-group > label, .range-label label { font-size: 11px; color: #718a78; }
.settings-option-group select { color: #42634c; background: #f5f8f5; border: 1px solid #dfe8e1; border-radius: 7px; padding: 9px 10px; width: 100%; font-size: 12px; }
.range-label { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.range-label output { color: #597d62; font-size: 11px; }
.settings-option-group input[type="range"] { width: 100%; margin: 3px 0; accent-color: var(--teal); }
.range-endpoints { display: flex; justify-content: space-between; color: #a1afa5; font-size: 9px; }
.settings-note { color: #94a299; font-size: 10px; line-height: 1.6; margin: 3px 0 0; }
.attachment-preview { padding: 15px 2px 0; }
.attachment-chip { display: inline-flex; gap: 9px; align-items: center; max-width: 100%; padding: 7px 8px 7px 7px; background: #f5f8f5; border: 1px solid #e1e9e2; border-radius: 10px; color: #708c79; font-size: 11px; }
.attachment-chip span { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attachment-chip button { display: inline-flex; padding: 4px; border-radius: 5px; color: #8b9b90; background: transparent; }
.attachment-chip button:hover { background: #e4ece6; }
.attachment-chip button svg { width: 14px; height: 14px; }
.attachment-thumbnail { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }

.messages { width: 100%; max-width: 840px; padding: 23px 0 40px; margin: 0 auto; }
.message { display: flex; align-items: flex-start; gap: 15px; margin: 0 0 31px; }
.message.user { justify-content: flex-end; }
.message-avatar { display: inline-flex; width: 30px; height: 30px; margin-top: 2px; flex-shrink: 0; align-items: center; justify-content: center; border: 1px solid #dbe7de; border-radius: 9px; color: var(--teal); background: #edf4ef; font-size: 11px; font-weight: 650; }
.message-avatar svg { width: 17px; height: 17px; }
.user .message-avatar { display: none; }
.message-content { flex: 1; min-width: 0; max-width: 100%; }
.user .message-content { flex: initial; max-width: 85%; }
.message-label { display: block; color: #6b8774; font-size: 10px; font-weight: 650; margin: 2px 0 9px; letter-spacing: .1px; }
.user .message-label { text-align: right; color: #91a197; }
.message-body { color: #496252; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.message-body p { margin: 0 0 12px; }
.message-body p:last-child { margin-bottom: 0; }
.message-body h1, .message-body h2, .message-body h3, .message-body h4 { color: #315a40; line-height: 1.45; margin: 24px 0 10px; letter-spacing: -.3px; }
.message-body h1 { font-size: 23px; }.message-body h2 { font-size: 20px; }.message-body h3 { font-size: 17px; }.message-body h4 { font-size: 14px; }
.message-body h1:first-child, .message-body h2:first-child, .message-body h3:first-child { margin-top: 0; }
.message-body ul, .message-body ol { padding-left: 23px; margin: 12px 0; }
.message-body li { padding-left: 3px; margin-bottom: 5px; }
.message-body strong { font-weight: 650; color: #365c42; }
.message-body blockquote { margin: 16px 0; padding: 3px 0 3px 17px; border-left: 3px solid #c7dbcd; color: #789380; }
.message-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.message-body table { border-collapse: collapse; font-size: 12px; display: block; overflow-x: auto; max-width: 100%; margin: 15px 0; }
.message-body td, .message-body th { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.message-body th { background: #edf3ee; font-weight: 600; }
.message-body a { color: var(--teal); text-underline-offset: 3px; }
.user-bubble { background: #eaf1ec; padding: 13px 18px; border-radius: 16px 4px 16px 16px; color: #41634b; white-space: pre-wrap; }
.message-actions { display: flex; align-items: center; gap: 5px; margin-top: 10px; }
.user .message-actions { justify-content: flex-end; }
.action-button { display: inline-flex; align-items: center; gap: 6px; color: #a3b2a8; font-size: 10px; background: transparent; padding: 5px 6px; border-radius: 6px; }
.action-button svg { width: 14px; height: 14px; }
.action-button:hover { background: #eaf1eb; color: #497954; }
.message-image { display: block; max-width: min(100%, 580px); max-height: 600px; border-radius: 13px; border: 1px solid #e1e9e3; object-fit: contain; margin: 10px 0; background: #f0f4f0; }
.user .message-image { max-height: 260px; margin-left: auto; }
.media-card { overflow: hidden; border-radius: 14px; border: 1px solid #dfe9e1; max-width: 620px; background: #fff; }
.media-card img, .media-card video { display: block; width: 100%; max-height: 600px; object-fit: contain; background: #edf3ee; }
.media-card audio { display: block; width: calc(100% - 30px); margin: 15px; height: 42px; accent-color: var(--teal); }
.media-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; color: #809888; font-size: 10px; line-height: 1.5; }
.media-caption a { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); text-decoration: none; white-space: nowrap; }
.media-caption svg { width: 14px; height: 14px; }
.progress-card { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid #dfe9e1; background: #f2f7f3; border-radius: 12px; max-width: 460px; }
.progress-spinner { display: inline-block; width: 24px; height: 24px; border: 2px solid #d8e8dd; border-top-color: #468b61; border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
.progress-title { color: #4f785b; font-size: 12px; font-weight: 550; line-height: 1.5; }
.progress-note { color: #97aa9c; font-size: 10px; margin-top: 5px; line-height: 1.6; }
.error-card { padding: 15px 18px; border: 1px solid #eaded7; background: #fbf6f1; color: #9a7764; border-radius: 11px; font-size: 12px; line-height: 1.7; }
.error-title { font-weight: 650; color: #956a55; margin-bottom: 5px; }
.error-card p { margin: 4px 0; }
.error-card button { margin-top: 9px; }
.code-block { border: 1px solid #dce6de; border-radius: 10px; margin: 15px 0; overflow: hidden; background: #eef3ef; max-width: 100%; }
.code-block > header, .code-block > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 13px; background: #e7eee9; border-bottom: 1px solid #dce6de; color: #78927f; font-size: 10px; }
.code-block > header button, .code-block > div:first-child button { display: inline-flex; gap: 5px; align-items: center; background: transparent; color: #7a9381; font-size: 10px; padding: 3px; }
.code-block button svg { width: 12px; height: 12px; }
.code-block pre { margin: 0; padding: 15px; overflow: auto; line-height: 1.7; color: #41624a; font-size: 12px; tab-size: 2; }
.code-block code { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.inline-code { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: .9em; background: #eaf1ec; border-radius: 4px; padding: 2px 5px; color: #4c7457; }
.toast { position: fixed; left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width))/2); bottom: 205px; transform: translateX(-50%); max-width: min(420px, calc(100vw - 40px)); padding: 12px 18px; color: #f0f8f2; background: #285940; font-size: 12px; line-height: 1.6; border-radius: 10px; z-index: 80; box-shadow: 0 5px 25px #173d2b15; }

.about-dialog { border: 1px solid #dce7df; border-radius: 22px; padding: 28px; width: min(490px, calc(100% - 32px)); color: var(--ink); background: #fcfefc; box-shadow: 0 20px 100px #173d2b20; max-height: calc(100dvh - 40px); overflow-y: auto; }
.about-dialog::backdrop { background: #1b3d2c35; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 19px; }
.dialog-symbol { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--teal); border: 1px solid #dce9df; background: #edf5ef; border-radius: 12px; }
.dialog-symbol svg { width: 22px; height: 22px; }
.about-dialog .welcome-eyebrow { font-size: 8px; margin-bottom: 11px; letter-spacing: 1.8px; }
.about-dialog h2 { margin: 0 0 12px; color: #315e41; font-size: 25px; line-height: 1.3; font-weight: 550; letter-spacing: -.9px; max-width: 350px; }
.dialog-description { color: #93a298; font-size: 12px; line-height: 1.8; margin: 0 0 21px; }
.model-list { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.model-list-item { display: flex; align-items: flex-start; gap: 12px; }
.model-list-item > [data-icon] { width: 30px; height: 30px; color: #779780; background: #eef5ef; border-radius: 8px; }
.model-list-item svg { width: 15px; height: 15px; }
.model-list-item strong { font-size: 12px; color: #527b5d; font-weight: 600; }
.model-list-item p { color: #93a298; font-size: 11px; line-height: 1.65; margin: 4px 0 0; }
.dialog-note { display: flex; align-items: flex-start; gap: 9px; padding: 14px; background: #eff5f0; border-radius: 10px; margin-top: 23px; }
.dialog-note > [data-icon] { color: #95ac9b; margin-top: 2px; }.dialog-note svg { width: 14px; height: 14px; }
.dialog-note p { margin: 0; color: #8da192; font-size: 10px; line-height: 1.8; }

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

@media (min-width: 1500px) {
  .welcome { padding-bottom: 80px; }
  .welcome h2 { font-size: 46px; }
  .welcome-symbol, .welcome-symbol svg { width: 66px; height: 66px; }
  .suggestion-grid { max-width: 700px; }
  .suggestion-card { min-height: 94px; }
  .composer-dock { padding-bottom: 22px; }
}

@media (max-width: 1100px) {
  :root { --sidebar-width: 238px; }
  .sidebar { padding-left: 17px; padding-right: 17px; }
  .brand { font-size: 20px; gap: 8px; }
  .connection-indicator { width: calc(100% + 34px); margin-left: -17px; padding-left: 19px; padding-right: 17px; }
  .topbar { padding: 0 28px; }
  .topbar-note { display: none; }
  .conversation-scroll { padding: 0 28px; }
  .composer-dock { padding-left: 28px; padding-right: 28px; }
  .welcome { padding-top: 20px; padding-bottom: 40px; }
  .welcome-symbol { margin-bottom: 23px; }
  .welcome h2 { font-size: 36px; }
  .welcome-description { font-size: 12px; margin-bottom: 26px; }
  .suggestion-card { gap: 11px; padding: 15px; min-height: 84px; }
  .suggestion-copy strong { font-size: 11px; }
  .suggestion-copy > span { font-size: 9px; }
  .suggestion-arrow { display: none; }
  .composer-enter-hint { display: none; }
}

@media (max-width: 760px) {
  :root { --sidebar-width: 260px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open, .sidebar.is-open { transform: translateX(0); box-shadow: 10px 0 40px #1b3d2c0f; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .topbar { height: 64px; padding: 0 21px 0 14px; }
  .topbar-start { gap: 11px; width: 100%; }
  .sidebar-toggle { display: inline-flex !important; }
  .conversation-title { max-width: 45vw; font-size: 12px; }
  .topbar-divider { display: none; }
  .model-chip { margin-left: auto; font-size: 8px; padding: 5px 7px; }
  .conversation-scroll { padding: 0 22px; }
  .welcome { padding-top: 20px; padding-bottom: 35px; }
  .welcome-symbol, .welcome-symbol svg { width: 52px; height: 52px; }
  .welcome-symbol { margin-bottom: 24px; }
  .welcome-eyebrow { font-size: 8px; letter-spacing: 2px; margin-bottom: 14px; }
  .welcome h2 { font-size: 34px; letter-spacing: -1.4px; }
  .welcome-description { margin-top: 15px; margin-bottom: 25px; font-size: 12px; }
  .suggestion-grid { max-width: 540px; gap: 10px; }
  .suggestion-card { gap: 9px; padding: 13px 11px; min-height: 81px; }
  .suggestion-icon { width: 30px; height: 30px; border-radius: 8px; }
  .suggestion-icon svg { width: 15px; height: 15px; }
  .suggestion-copy { gap: 5px; }
  .suggestion-copy strong { font-size: 10px; line-height: 1.4; }
  .suggestion-copy > span { font-size: 9px; line-height: 1.5; }
  .welcome-footnote { font-size: 8px; margin-top: 23px; }
  .composer-dock { padding: 8px 15px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .composer-form { border-radius: 15px; padding: 10px 12px 10px; }
  .mode-buttons { width: auto; }
  .mode-button { gap: 5px; padding: 5px 10px; min-height: 27px; }
  #prompt { font-size: 13px; padding-top: 16px; height: 57px; }
  .composer-hint { font-size: 8px; margin-top: 10px; }
  .composer-send-group { gap: 12px; }
  .send-button { width: 33px; height: 33px; border-radius: 9px; }
  .settings-panel { left: 11px; max-width: calc(100% - 22px); }
  .messages { padding-top: 25px; padding-bottom: 25px; }
  .message { gap: 10px; }
  .message-avatar { width: 27px; height: 27px; border-radius: 8px; }
  .message-body { font-size: 13px; line-height: 1.8; }
  .user .message-content { max-width: 90%; }
  .user-bubble { padding: 12px 15px; }
  .toast { left: 50%; bottom: 200px; }
}

@media (max-width: 430px) {
  .conversation-scroll { padding-left: 20px; padding-right: 20px; }
  .welcome-symbol, .welcome-symbol svg { width: 47px; height: 47px; }
  .welcome-symbol { margin-bottom: 19px; }
  .welcome h2 { font-size: 29px; letter-spacing: -1.2px; }
  .welcome-description { font-size: 11px; margin-bottom: 22px; line-height: 1.8; }
  .mobile-break { display: block; }
  .suggestion-grid { gap: 8px; }
  .suggestion-card { flex-direction: column; align-items: flex-start; padding: 13px; min-height: 112px; gap: 10px; border-radius: 11px; }
  .suggestion-copy > span { font-size: 9px; }
  .welcome-footnote { font-size: 7.5px; }
  .mode-button { padding: 5px 9px; font-size: 9px; gap: 4px; }
  .mode-button svg { width: 12px; height: 12px; }
  .char-count { font-size: 8px; }
  .composer-hint { font-size: 7.5px; }
  .topbar { padding-right: 16px; }
  .model-chip { max-width: 104px; text-overflow: ellipsis; overflow: hidden; }
  #headerModel { text-overflow: ellipsis; overflow: hidden; }
}

@media (max-height: 780px) and (min-width: 761px) {
  .topbar { height: 70px; }
  .welcome { padding-top: 10px; padding-bottom: 30px; }
  .welcome-symbol, .welcome-symbol svg { width: 48px; height: 48px; }
  .welcome-symbol { margin-bottom: 18px; }
  .welcome-eyebrow { margin-bottom: 12px; }
  .welcome h2 { font-size: 35px; }
  .welcome-description { margin-top: 12px; margin-bottom: 25px; }
  .suggestion-card { min-height: 77px; padding-top: 13px; padding-bottom: 13px; }
  .welcome-footnote { margin-top: 20px; }
  .composer-dock { padding-bottom: 12px; }
}

@media (max-height: 700px) and (max-width: 760px) {
  .welcome { padding-top: 25px; padding-bottom: 28px; }
  .welcome-symbol { display: none; }
  .welcome-description { margin-bottom: 19px; }
  .welcome-footnote { display: none; }
}

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