:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #101318;
  --panel-raised: #151920;
  --panel-hover: #1a2028;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .12);
  --text: #f0f1f2;
  --muted: #969da7;
  --dim: #626a75;
  --accent: #b5ed79;
  --accent-strong: #a8e96a;
  --accent-dark: #263820;
  --danger: #f28c8c;
  --sidebar-width: 264px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; min-width: 320px; height: 100%; margin: 0; }
body { overflow: hidden; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid rgba(181, 237, 121, .7); outline-offset: 2px; }

.app-shell { display: flex; width: 100%; height: 100dvh; min-height: 480px; overflow: hidden; background: radial-gradient(ellipse at 72% -20%, rgba(90, 120, 66, .07), transparent 36%), var(--bg); }
.sidebar { position: relative; z-index: 20; display: flex; flex: 0 0 var(--sidebar-width); flex-direction: column; width: var(--sidebar-width); height: 100%; padding: 20px 13px 13px; border-right: 1px solid var(--line); background: #0e1115; transition: transform .25s ease; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; height: 43px; margin: 0 7px 26px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 2.5px; width: 34px; height: 34px; border: 1px solid rgba(181, 237, 121, .28); border-radius: 11px; background: linear-gradient(145deg, rgba(181, 237, 121, .12), rgba(181, 237, 121, .035)); box-shadow: inset 0 0 18px rgba(181, 237, 121, .06); }
.brand-mark span { display: block; width: 3px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 9px rgba(181, 237, 121, .25); }
.brand-mark span:nth-child(1) { height: 11px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 14px; opacity: .8; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font: 800 19px/1 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.9px; }
.brand-copy small { color: #76806e; font: 500 8px/1 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; letter-spacing: 1.15px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #858d98; background: transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.icon-button:hover { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, .055); }
.icon-button svg { width: 17px; height: 17px; }
.sidebar-close { display: none; }
.new-chat-button { display: flex; align-items: center; gap: 11px; width: 100%; height: 43px; padding: 0 12px; border: 1px solid rgba(181, 237, 121, .22); border-radius: 10px; color: #dceacb; background: linear-gradient(100deg, rgba(181, 237, 121, .11), rgba(181, 237, 121, .045)); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.new-chat-button:hover { border-color: rgba(181, 237, 121, .42); background: rgba(181, 237, 121, .13); transform: translateY(-1px); }
.button-plus { position: relative; width: 15px; height: 15px; }
.button-plus::before, .button-plus::after { position: absolute; top: 7px; left: 2px; width: 11px; height: 1.5px; border-radius: 2px; background: var(--accent); content: ''; }
.button-plus::after { transform: rotate(90deg); }
.new-chat-button kbd { margin-left: auto; padding: 3px 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; color: #899282; background: rgba(0,0,0,.12); font: 10px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.sidebar-section { min-height: 0; padding: 30px 1px 0; overflow: hidden; }
.section-heading { display: flex; align-items: center; gap: 10px; margin: 0 8px 16px; color: #6d7580; font: 500 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; letter-spacing: 1.15px; }
.section-heading-line { height: 1px; flex: 1; background: var(--line); }
.history-search-wrap { position: relative; display: flex; align-items: center; height: 36px; margin: 0 3px 23px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); transition: border-color .18s, background .18s; }
.history-search-wrap:focus-within { border-color: rgba(181, 237, 121, .35); background: rgba(255,255,255,.045); }
.search-icon { width: 14px; height: 14px; margin-right: 8px; border: 1.5px solid #727b86; border-radius: 50%; transform: scale(.75); }
.search-icon::after { position: absolute; width: 6px; height: 1.5px; margin: 11px 0 0 9px; border-radius: 2px; background: #727b86; content: ''; transform: rotate(45deg); }
.history-search-wrap input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: #dce0e4; background: transparent; font-size: 11px; }
.history-search-wrap input::placeholder { color: #68717c; }
.history-search-wrap kbd { margin-left: 7px; color: #58616c; font: 10px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.history-label { margin: 0 9px 9px; color: #737b85; font: 500 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; letter-spacing: .9px; }
.chat-list { display: flex; flex-direction: column; gap: 3px; max-height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3038 transparent; }
.chat-list-row { position: relative; display: flex; align-items: center; min-width: 0; height: 37px; border-radius: 8px; transition: background .16s; }
.chat-list-row:hover, .chat-list-row.active { background: rgba(255,255,255,.055); }
.chat-list-item { display: flex; align-items: center; gap: 9px; width: 100%; height: 100%; min-width: 0; padding: 0 9px; border: 0; border-radius: inherit; color: #969da6; background: transparent; text-align: left; cursor: pointer; }
.chat-list-row.active .chat-list-item { color: #e5e9e1; }
.chat-item-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 14px; color: #657071; }
.chat-item-icon svg { width: 13px; height: 13px; }
.chat-item-text { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-time { margin-left: auto; color: #626a75; font: 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; white-space: nowrap; }
.chat-delete-button { position: absolute; right: 4px; display: none; align-items: center; justify-content: center; width: 25px; height: 25px; border: 0; border-radius: 6px; color: #8c959f; background: #20252c; cursor: pointer; }
.chat-delete-button svg { width: 12px; height: 12px; }
.chat-list-row:hover .chat-delete-button { display: flex; }
.chat-list-row:hover .chat-item-time { visibility: hidden; }
.chat-delete-button:hover { color: var(--danger); background: rgba(242,140,140,.12); }
.empty-history { padding: 11px 8px; color: #717984; font-size: 11px; }
.sidebar-bottom { margin-top: auto; padding-top: 15px; }
.sidebar-status { display: flex; align-items: center; gap: 8px; padding: 0 9px 14px; color: #778078; font-size: 10px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(181,237,121,.45); }
.sidebar-settings { display: flex; align-items: center; gap: 10px; width: 100%; height: 39px; padding: 0 9px; border: 0; border-radius: 8px; color: #9da4ad; background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.sidebar-settings:hover { color: var(--text); background: rgba(255,255,255,.05); }
.settings-icon { width: 15px; height: 15px; border: 1.5px solid #77808a; border-radius: 50%; position: relative; }
.settings-icon::before { position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border: 1px solid #77808a; border-radius: 50%; content: ''; }
.settings-chevron { margin-left: auto; color: #58616c; font: 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.sidebar-profile { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 13px 5px 3px; border-top: 1px solid var(--line); }
.profile-avatar { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid rgba(181,237,121,.25); border-radius: 9px; color: var(--accent); background: rgba(181,237,121,.09); font: 700 12px Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.profile-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.profile-copy strong { color: #cfd4d9; font-size: 10px; font-weight: 600; }
.profile-copy span { color: #68717b; font-size: 9px; }
.profile-more { margin-left: auto; color: #7b838c; letter-spacing: 2px; }

.main-panel { position: relative; display: flex; min-width: 0; height: 100%; flex: 1; flex-direction: column; }
.topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 62px; flex: 0 0 62px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(11,13,16,.78); backdrop-filter: blur(18px); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mobile-menu { display: none; }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: #767f89; font-size: 11px; }
.breadcrumb strong { max-width: 290px; overflow: hidden; color: #d1d6da; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-slash { color: #4b535e; }
.connection-chip { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(181,237,121,.12); border-radius: 20px; color: #8e9b86; background: rgba(181,237,121,.045); font: 10px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; transition: .2s; }
.connection-chip .status-dot { width: 5px; height: 5px; flex-basis: 5px; }
.connection-chip.is-busy { border-color: rgba(241,194,112,.2); color: #c7ae81; background: rgba(241,194,112,.055); }
.connection-chip.is-busy .status-dot { background: #e6bd73; box-shadow: 0 0 10px rgba(230,189,115,.35); animation: pulse 1s infinite; }
.connection-chip.is-error { border-color: rgba(242,140,140,.2); color: #d39a9a; background: rgba(242,140,140,.055); }
.connection-chip.is-error .status-dot { background: var(--danger); box-shadow: 0 0 10px rgba(242,140,140,.3); }
.model-select-wrap { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: #d7dfd2; background: rgba(255,255,255,.035); cursor: pointer; }
.model-select-wrap:hover { border-color: rgba(181,237,121,.25); background: rgba(255,255,255,.055); }
.model-spark { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 9px rgba(181,237,121,.5); transform: rotate(45deg); }
.model-select-wrap select { width: 125px; padding: 0; border: 0; outline: 0; appearance: none; color: inherit; background: transparent; font-size: 10px; cursor: pointer; }
.model-select-wrap select option, .settings-select option { color: #e9edf0; background: #161a20; }
.select-caret { width: 6px; height: 6px; margin: -3px 1px 0 0; border-right: 1px solid #838c96; border-bottom: 1px solid #838c96; transform: rotate(45deg); }
.top-settings { width: 32px; height: 32px; }
.top-settings::before { width: 14px; height: 14px; border: 1.5px solid #8b949d; border-radius: 50%; content: ''; }
.top-settings::after { position: absolute; width: 5px; height: 5px; border: 1px solid #8b949d; border-radius: 50%; content: ''; }

.conversation-stage { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #2a3038 transparent; }
.messages { display: flex; width: min(100%, 880px); flex: 1; flex-direction: column; margin: 0 auto; padding: 46px 34px 35px; }
.welcome-screen { display: flex; width: 100%; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; padding: 22px 0 45px; animation: welcome-in .65s ease both; }
.welcome-screen[hidden] { display: none; }
.welcome-orb { position: relative; display: flex; align-items: center; justify-content: center; width: 90px; height: 90px; margin-bottom: 31px; }
.orb-core { position: relative; z-index: 2; width: 24px; height: 24px; border: 1px solid rgba(181,237,121,.7); border-radius: 8px; background: linear-gradient(145deg, #d7ffae, #84b955); box-shadow: 0 0 22px rgba(181,237,121,.42), 0 0 55px rgba(181,237,121,.13); transform: rotate(45deg); }
.orb-ring { position: absolute; border: 1px solid rgba(181,237,121,.25); border-radius: 50%; }
.orb-ring-one { width: 62px; height: 62px; transform: rotate(35deg) scaleX(.74); }
.orb-ring-two { width: 82px; height: 82px; border-color: rgba(181,237,121,.13); transform: rotate(-38deg) scaleX(.72); }
.orb-cross { position: absolute; width: 90px; height: 1px; background: linear-gradient(90deg, transparent, rgba(181,237,121,.28), transparent); transform: rotate(45deg); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #8da17e; font: 500 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; letter-spacing: 1.65px; text-align: center; }
.eyebrow-line { display: block; width: 24px; height: 1px; background: rgba(181,237,121,.3); }
.welcome-screen h1 { margin: 15px 0 12px; color: #f4f4f0; font: 700 clamp(38px, 5vw, 54px)/1.07 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -2.8px; text-align: center; }
.welcome-screen h1 span { color: var(--accent); }
.welcome-description { max-width: 455px; margin: 0; color: #838b95; font-size: 13px; line-height: 1.75; text-align: center; }
.suggestion-grid { display: grid; width: min(100%, 600px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
.suggestion-card { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 72px; padding: 13px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.022); text-align: left; cursor: pointer; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.suggestion-card:hover { border-color: rgba(181,237,121,.27); background: rgba(181,237,121,.045); box-shadow: 0 7px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.suggestion-icon { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; flex: 0 0 33px; border: 1px solid rgba(181,237,121,.15); border-radius: 9px; color: var(--accent); background: rgba(181,237,121,.07); font: 500 12px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.suggestion-icon-bug { color: #c8af84; border-color: rgba(200,175,132,.15); background: rgba(200,175,132,.065); }
.suggestion-icon-review { color: #a7bce8; border-color: rgba(167,188,232,.16); background: rgba(167,188,232,.065); font-size: 22px; }
.suggestion-icon-learn { color: #d4a8dc; border-color: rgba(212,168,220,.16); background: rgba(212,168,220,.065); font-size: 17px; }
.suggestion-card-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.suggestion-card-copy strong { color: #d9dedf; font-size: 11px; font-weight: 600; }
.suggestion-card-copy small { color: #79818c; font-size: 9px; line-height: 1.35; }
.suggestion-arrow { margin-left: auto; color: #636c76; font-size: 13px; transition: transform .2s, color .2s; }
.suggestion-card:hover .suggestion-arrow { color: var(--accent); transform: translate(2px, -2px); }

.message { display: flex; align-items: flex-start; gap: 13px; width: 100%; margin: 0 0 28px; animation: message-in .25s ease both; }
.message-avatar { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; flex: 0 0 29px; margin-top: 1px; border-radius: 9px; font: 700 11px Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.assistant-avatar { border: 1px solid rgba(181,237,121,.23); color: var(--accent); background: rgba(181,237,121,.08); }
.user-avatar { border: 1px solid rgba(255,255,255,.11); color: #c4cbd2; background: #1b2027; }
.message-body { min-width: 0; flex: 1; }
.message-meta { display: flex; align-items: center; gap: 9px; min-height: 23px; margin-bottom: 7px; }
.message-meta strong { color: #dce0e3; font-size: 11px; font-weight: 600; }
.message-meta span { color: #68717c; font: 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.message-content { color: #bfc5ca; font-size: 13px; line-height: 1.78; overflow-wrap: anywhere; }
.user-message .message-content { display: inline-block; max-width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 3px 11px 11px 11px; color: #d9dfe3; background: rgba(255,255,255,.045); }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { margin: 0 0 13px; }
.message-content h1, .message-content h2, .message-content h3, .message-content h4 { margin: 23px 0 9px; color: #ecf0ed; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.3; letter-spacing: -.3px; }
.message-content h1 { font-size: 21px; }
.message-content h2 { font-size: 17px; }
.message-content h3 { font-size: 14px; }
.message-content strong { color: #e3e8e4; font-weight: 650; }
.message-content em { color: #d5d9da; }
.message-content a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(181,237,121,.3); text-underline-offset: 3px; }
.message-content a:hover { text-decoration-color: var(--accent); }
.message-content ul, .message-content ol { margin: 7px 0 15px; padding-left: 22px; }
.message-content li { padding: 2px 0; }
.message-content li::marker { color: #99bd75; }
.message-content blockquote { margin: 13px 0; padding: 3px 0 3px 13px; border-left: 2px solid rgba(181,237,121,.45); color: #a1a9ad; }
.message-content hr { height: 1px; margin: 19px 0; border: 0; background: var(--line-strong); }
.message-content table { display: block; width: 100%; margin: 14px 0; overflow-x: auto; border-collapse: collapse; font-size: 11px; }
.message-content th, .message-content td { padding: 8px 10px; border: 1px solid var(--line-strong); text-align: left; }
.message-content th { color: #e2e8de; background: rgba(181,237,121,.055); }
.message-content td { color: #b0b7bd; }
.message-content :not(pre) > code { padding: 2px 5px; border: 1px solid rgba(255,255,255,.075); border-radius: 5px; color: #d2eca9; background: rgba(181,237,121,.07); font: .9em 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.code-frame { position: relative; margin: 14px 0 17px; padding: 38px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #11151b; }
.code-frame::before { position: absolute; top: 15px; left: 14px; width: 7px; height: 7px; border-radius: 50%; background: #ee7771; box-shadow: 12px 0 #e5bd67, 24px 0 #80bf72; content: ''; }
.code-frame::after { position: absolute; top: 11px; right: 13px; color: #697580; content: attr(data-language); font: 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.code-frame code { display: block; padding: 0 16px 16px; overflow-x: auto; color: #cbd3dc; background: transparent; font: 11px/1.75 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; tab-size: 2; }
.code-frame pre { margin: 0; overflow-x: auto; }
.code-copy-button { position: absolute; top: 7px; right: 8px; z-index: 2; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: #a1aab4; background: #1b2129; font-size: 9px; cursor: pointer; opacity: .7; transition: opacity .18s, color .18s, border-color .18s; }
.code-copy-button svg { width: 11px; height: 11px; }
.code-copy-button:hover { border-color: rgba(181,237,121,.3); color: var(--accent); opacity: 1; }
.message-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; opacity: .72; }
.message-actions button { display: flex; align-items: center; gap: 5px; height: 25px; padding: 0 6px; border: 0; border-radius: 5px; color: #7a848e; background: transparent; font-size: 9px; cursor: pointer; }
.message-actions button:hover { color: var(--accent); background: rgba(255,255,255,.045); }
.message-actions svg { width: 12px; height: 12px; }
.thinking-indicator { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; color: #8b969e; font-size: 10px; }
.thinking-indicator .activity-pulse i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); animation: thinking 1.1s infinite ease-in-out; }
.thinking-indicator .activity-pulse i:nth-child(2) { animation-delay: .14s; }
.thinking-indicator .activity-pulse i:nth-child(3) { animation-delay: .28s; }
.thinking-indicator em { margin-left: 5px; color: #768078; font-style: normal; }

.composer-area { position: relative; z-index: 3; width: min(100%, 880px); margin: 0 auto; padding: 6px 34px 17px; background: linear-gradient(180deg, rgba(11,13,16,0), #0b0d10 18%); }
.composer { width: 100%; padding: 13px 13px 9px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: #13171d; box-shadow: 0 10px 35px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.025) inset; transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: rgba(181,237,121,.35); box-shadow: 0 10px 35px rgba(0,0,0,.25), 0 0 0 3px rgba(181,237,121,.035); }
.composer textarea { display: block; width: 100%; min-height: 34px; max-height: 190px; resize: none; padding: 3px 2px 7px; border: 0; outline: 0; color: #e3e7e8; background: transparent; font-size: 13px; line-height: 1.65; scrollbar-width: thin; }
.composer textarea::placeholder { color: #707984; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 27px; }
.composer-meta { display: flex; align-items: center; gap: 6px; color: #69727d; font-size: 9px; }
.composer-key-hint { display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; color: #9ca8a0; font: 10px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.meta-divider { width: 1px; height: 11px; margin: 0 3px; background: var(--line-strong); }
.composer-actions { display: flex; align-items: center; gap: 10px; }
.composer-counter { color: #59616b; font: 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.send-button { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; border: 1px solid rgba(181,237,121,.22); border-radius: 9px; color: #11160d; background: var(--accent); cursor: pointer; transition: transform .18s, background .18s, opacity .18s; }
.send-button:disabled { border-color: rgba(255,255,255,.07); color: #66706c; background: #252b32; cursor: not-allowed; }
.send-button:not(:disabled):hover { background: #c7f68f; transform: translateY(-1px); }
.send-button svg { width: 16px; height: 16px; }
.send-button.is-stop { border-color: rgba(242,140,140,.25); color: #ffd0d0; background: rgba(242,140,140,.14); }
.disclaimer { padding-top: 10px; color: #606872; font-size: 9px; text-align: center; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.64); backdrop-filter: blur(8px); animation: fade-in .18s ease; }
.modal-backdrop[hidden] { display: none; }
.settings-modal { width: min(100%, 490px); padding: 23px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: #14181e; box-shadow: 0 25px 90px rgba(0,0,0,.48); animation: modal-in .22s ease; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
.modal-eyebrow { margin-bottom: 7px; color: #91a87a; font: 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; letter-spacing: 1.1px; }
.modal-header h2 { margin: 0; color: #f1f3ef; font: 650 22px Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.6px; }
.modal-close { margin: -5px -5px 0 0; }
.settings-group { padding: 17px 0; border-top: 1px solid var(--line); }
.settings-group > label, .settings-group strong { color: #e0e4e0; font-size: 11px; font-weight: 600; }
.settings-group p { margin: 5px 0 12px; color: #818a94; font-size: 10px; line-height: 1.6; }
.settings-select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: #d9e1d2; background: #1a2027; font-size: 11px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.settings-row p { margin-bottom: 0; }
.danger-button, .secondary-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 10px; border-radius: 7px; font-size: 10px; font-weight: 600; cursor: pointer; transition: .18s; white-space: nowrap; }
.danger-button { border: 1px solid rgba(242,140,140,.2); color: #e8a3a3; background: rgba(242,140,140,.07); }
.danger-button:hover { border-color: rgba(242,140,140,.4); background: rgba(242,140,140,.13); }
.secondary-button { border: 1px solid var(--line-strong); color: #c8d0d4; background: rgba(255,255,255,.045); }
.secondary-button:hover { border-color: rgba(181,237,121,.3); color: var(--accent); }
.modal-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--line); }
.modal-footer > span { display: flex; align-items: center; gap: 8px; color: #7b858d; font-size: 9px; }
.primary-button { min-width: 70px; border: 1px solid rgba(181,237,121,.3); color: #172010; background: var(--accent); }
.primary-button:hover { background: #c5f592; }
.toast-region { position: fixed; z-index: 70; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 32px)); padding: 11px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #e6e9e5; background: #1b2228; box-shadow: 0 12px 40px rgba(0,0,0,.35); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast-region.visible { opacity: 1; transform: translateY(0); }
.sidebar-scrim { display: none; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes thinking { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes welcome-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 1500px) {
  :root { --sidebar-width: 282px; }
  .messages, .composer-area { width: min(100%, 940px); }
  .messages { padding-top: 55px; }
  .welcome-screen h1 { font-size: 60px; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 250px; }
  .topbar { padding: 0 20px; }
  .messages { padding: 35px 25px 28px; }
  .composer-area { padding: 5px 25px 14px; }
}

@media (max-width: 700px) {
  .sidebar { position: fixed; z-index: 40; top: 0; left: 0; width: min(290px, calc(100vw - 48px)); box-shadow: 20px 0 55px rgba(0,0,0,.28); transform: translateX(-105%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: inline-flex; }
  .sidebar-scrim { position: fixed; z-index: 30; inset: 0; display: block; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sidebar-scrim.visible { opacity: 1; pointer-events: auto; }
  .mobile-menu { display: inline-flex; width: 31px; height: 31px; margin-left: -7px; }
  .mobile-menu svg { width: 18px; height: 18px; }
  .topbar { height: 56px; flex-basis: 56px; padding: 0 13px; }
  .topbar-left, .topbar-right { gap: 8px; }
  .breadcrumb { gap: 7px; font-size: 10px; }
  .breadcrumb strong { max-width: 125px; }
  .connection-chip { gap: 5px; padding: 5px 7px; font-size: 9px; }
  .model-select-wrap { height: 31px; gap: 6px; padding: 0 7px; }
  .model-select-wrap select { width: 104px; font-size: 9px; }
  .top-settings { display: none; }
  .messages { padding: 24px 17px 20px; }
  .welcome-screen { min-height: 465px; padding: 12px 0 23px; }
  .welcome-orb { width: 75px; height: 75px; margin-bottom: 23px; }
  .orb-ring-one { width: 55px; height: 55px; }
  .orb-ring-two { width: 70px; height: 70px; }
  .orb-cross { width: 75px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .welcome-screen h1 { margin: 13px 0 10px; font-size: 43px; letter-spacing: -2px; }
  .welcome-description { max-width: 360px; font-size: 11px; }
  .suggestion-grid { gap: 8px; margin-top: 27px; }
  .suggestion-card { gap: 8px; min-height: 68px; padding: 10px 9px; }
  .suggestion-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .suggestion-card-copy strong { font-size: 10px; }
  .suggestion-card-copy small { font-size: 8px; }
  .suggestion-arrow { display: none; }
  .composer-area { padding: 5px 13px calc(11px + env(safe-area-inset-bottom)); }
  .composer { padding: 10px 10px 7px 12px; border-radius: 11px; }
  .composer textarea { font-size: 12px; }
  .composer-meta { font-size: 8px; }
  .composer-counter { font-size: 8px; }
  .send-button { width: 29px; height: 29px; }
  .disclaimer { padding: 8px 8px 0; font-size: 8px; }
  .message { gap: 9px; margin-bottom: 23px; }
  .message-avatar { width: 26px; height: 26px; flex-basis: 26px; border-radius: 8px; font-size: 10px; }
  .message-content { font-size: 12px; line-height: 1.72; }
  .message-meta { min-height: 20px; margin-bottom: 5px; }
  .message-meta strong { font-size: 10px; }
  .message-content .code-frame { margin: 11px 0 14px; }
  .code-frame code { padding: 0 12px 13px; font-size: 10px; }
  .user-message .message-content { padding: 9px 11px; }
  .toast-region { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
  .connection-chip { display: none; }
  .breadcrumb span:first-child, .breadcrumb-slash { display: none; }
  .breadcrumb strong { max-width: 145px; }
  .suggestion-grid { grid-template-columns: 1fr; width: min(100%, 350px); margin-top: 23px; }
  .suggestion-card { min-height: 58px; }
  .suggestion-card-copy small { font-size: 9px; }
  .welcome-screen { min-height: 0; justify-content: flex-start; padding: 30px 0 18px; }
  .welcome-screen h1 { font-size: 39px; }
  .welcome-description { padding: 0 8px; }
  .composer-meta .meta-divider, .composer-meta span:last-child { display: none; }
  .settings-modal { padding: 19px; }
  .settings-row { align-items: flex-start; }
}

@media (max-height: 760px) and (min-width: 701px) {
  .messages { padding-top: 24px; }
  .welcome-screen { min-height: 450px; }
  .welcome-orb { margin-bottom: 20px; }
  .suggestion-grid { margin-top: 25px; }
}

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

.tok-keyword { color: #c6a7f7; }
.tok-string { color: #a9d18f; }
.tok-comment { color: #74818c; font-style: italic; }
.tok-number { color: #d8a6a0; }
.tok-function { color: #8bc9df; }

:root {
  --bg: #0b0f17;
  --panel: #101621;
  --panel-raised: #151e2b;
  --panel-hover: #1b2635;
  --accent: #a9c2ff;
  --accent-strong: #c2d2ff;
  --accent-dark: #263858;
}

.app-shell {
  min-height: 100svh;
  background: radial-gradient(ellipse at 72% -20%, rgba(110, 139, 210, .11), transparent 38%), var(--bg);
}

.sidebar {
  background: rgba(13, 18, 28, .97);
  border-right-color: rgba(174, 194, 239, .1);
}

.brand-mark {
  border-color: rgba(169, 194, 255, .3);
  background: linear-gradient(145deg, rgba(169, 194, 255, .15), rgba(169, 194, 255, .035));
  box-shadow: inset 0 0 18px rgba(169, 194, 255, .07);
}

.brand-mark span {
  background: var(--accent);
  box-shadow: 0 0 9px rgba(169, 194, 255, .28);
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -.55px;
}

.brand-copy small {
  color: #8194bd;
  letter-spacing: .9px;
}

.new-chat-button {
  border-color: rgba(169, 194, 255, .25);
  color: #d9e4ff;
  background: linear-gradient(100deg, rgba(169, 194, 255, .13), rgba(169, 194, 255, .045));
}

.new-chat-button:hover {
  border-color: rgba(169, 194, 255, .46);
  background: rgba(169, 194, 255, .14);
}

.button-plus::before,
.button-plus::after {
  background: var(--accent);
}

.profile-avatar-image {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(169, 194, 255, .28);
  border-radius: 10px;
  object-fit: cover;
}

.main-panel {
  min-height: 0;
  background: linear-gradient(180deg, rgba(18, 26, 39, .16), transparent 30%);
}

.topbar {
  border-bottom-color: rgba(174, 194, 239, .09);
  background: rgba(11, 15, 23, .84);
}

.connection-chip {
  border-color: rgba(169, 194, 255, .17);
  color: #a4b5d9;
  background: rgba(169, 194, 255, .055);
}

.model-select-wrap:hover {
  border-color: rgba(169, 194, 255, .34);
}

.model-spark {
  background: var(--accent);
  box-shadow: 0 0 9px rgba(169, 194, 255, .55);
}

.welcome-orb .orb-core {
  border-color: rgba(169, 194, 255, .8);
  background: linear-gradient(145deg, #e2eaff, #87a9f0);
  box-shadow: 0 0 22px rgba(169, 194, 255, .4), 0 0 55px rgba(117, 149, 221, .16);
}

.orb-ring-one { border-color: rgba(169, 194, 255, .3); }
.orb-ring-two { border-color: rgba(169, 194, 255, .16); }
.orb-cross { background: linear-gradient(90deg, transparent, rgba(169, 194, 255, .35), transparent); }
.eyebrow { color: #9eafd5; }
.eyebrow-line { background: rgba(169, 194, 255, .34); }
.welcome-screen h1 span { color: var(--accent); }

.suggestion-card:hover {
  border-color: rgba(169, 194, 255, .31);
  background: rgba(169, 194, 255, .055);
}

.suggestion-icon {
  border-color: rgba(169, 194, 255, .18);
  color: var(--accent);
  background: rgba(169, 194, 255, .08);
}

.message {
  gap: 12px;
  margin-bottom: 30px;
}

.message-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 11px;
}

.assistant-avatar-image {
  display: block;
  border: 1px solid rgba(169, 194, 255, .27);
  object-fit: cover;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, .13);
  color: #d5dbe7;
  background: linear-gradient(145deg, #283345, #1a2330);
}

.message-body {
  max-width: min(100%, 790px);
}

.assistant-message .message-body {
  flex: 1 1 auto;
}

.user-message {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.user-message .message-body {
  display: flex;
  flex: 0 1 min(78%, 650px);
  flex-direction: column;
  align-items: flex-end;
}

.user-message .message-meta {
  justify-content: flex-end;
  width: 100%;
}

.user-message .message-content {
  align-self: flex-end;
  max-width: 100%;
  border: 1px solid rgba(169, 194, 255, .14);
  border-radius: 13px 4px 13px 13px;
  color: #e0e6f1;
  background: linear-gradient(145deg, rgba(81, 105, 153, .2), rgba(38, 52, 76, .28));
}

.message-content a,
.message-content li::marker {
  color: var(--accent);
}

.message-content blockquote {
  border-left-color: rgba(169, 194, 255, .5);
}

.message-content th {
  background: rgba(169, 194, 255, .07);
}

.message-content :not(pre) > code {
  border-color: rgba(169, 194, 255, .13);
  color: #c9d8ff;
  background: rgba(169, 194, 255, .08);
}

.code-frame {
  padding-top: 0;
  border-color: rgba(169, 194, 255, .14);
  border-radius: 12px;
  background: #0e1520;
}

.code-frame::before,
.code-frame::after {
  display: none;
}

.code-frame-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid rgba(169, 194, 255, .1);
  color: #91a1c0;
  background: #131d2b;
  font: 10px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.code-frame-toolbar > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-frame code {
  padding: 14px 16px 17px;
  font-size: 12px;
  line-height: 1.75;
}

.code-copy-button,
.code-download-button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 7px;
  color: #b8c5dc;
  background: rgba(255, 255, 255, .045);
  font-size: 10px;
  opacity: 1;
}

.code-copy-button:hover,
.code-download-button:hover {
  border-color: rgba(169, 194, 255, .35);
  color: #dce6ff;
  background: rgba(169, 194, 255, .09);
}

.message-actions {
  opacity: 1;
}

.message-actions button:hover {
  color: var(--accent);
}

.artifacts-panel {
  width: min(100%, 580px);
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(169, 194, 255, .16);
  border-radius: 12px;
  background: rgba(20, 29, 43, .78);
}

.artifacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(169, 194, 255, .1);
}

.artifacts-header strong {
  color: #d8e1f4;
  font-size: 11px;
  font-weight: 650;
}

.download-all-button,
.artifact-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(169, 194, 255, .17);
  border-radius: 7px;
  color: #c5d4f4;
  background: rgba(169, 194, 255, .07);
  font-size: 10px;
  cursor: pointer;
}

.download-all-button:hover,
.artifact-download-button:hover {
  border-color: rgba(169, 194, 255, .42);
  color: #fff;
  background: rgba(169, 194, 255, .13);
}

.download-all-button svg,
.artifact-download-button svg {
  width: 13px;
  height: 13px;
}

.artifact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 6px 10px 6px 12px;
  border-bottom: 1px solid rgba(169, 194, 255, .07);
}

.artifact-row:last-child {
  border-bottom: 0;
}

.artifact-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 27px;
  flex: 0 0 29px;
  border: 1px solid rgba(169, 194, 255, .15);
  border-radius: 7px;
  color: #afc4f6;
  background: rgba(169, 194, 255, .07);
  font: 8px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.artifact-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #d5dcea;
  font: 10px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-size {
  color: #73819a;
  font: 9px 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.file-preparing {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8fa3ca;
  font-size: 11px;
}

.file-preparing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s infinite;
}

.composer-area {
  width: min(100%, 960px);
  padding: 10px 34px calc(17px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11, 15, 23, 0), #0b0f17 22%);
}

.composer {
  min-height: 96px;
  padding: 14px 15px 10px 17px;
  border-color: rgba(169, 194, 255, .16);
  border-radius: 16px;
  background: rgba(17, 25, 38, .97);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24), 0 1px 0 rgba(255, 255, 255, .025) inset;
}

.composer:focus-within {
  border-color: rgba(169, 194, 255, .38);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .27), 0 0 0 3px rgba(169, 194, 255, .055);
}

.composer textarea {
  min-height: 38px;
  max-height: 150px;
  padding: 3px 3px 8px;
  color: #edf2ff;
  font-size: 14px;
  line-height: 1.55;
}

.composer textarea::placeholder {
  color: #7d8ba5;
}

.composer-toolbar {
  min-height: 31px;
  padding-top: 7px;
  border-top: 1px solid rgba(169, 194, 255, .08);
}

.composer-meta {
  color: #8090aa;
  font-size: 10px;
}

.composer-key-hint {
  width: 19px;
  height: 19px;
  border-color: rgba(169, 194, 255, .17);
  color: #b8c7e5;
}

.composer-counter {
  color: #71809b;
  font-size: 10px;
}

.send-button {
  width: 36px;
  height: 36px;
  border-color: rgba(169, 194, 255, .3);
  border-radius: 11px;
  color: #10192a;
  background: linear-gradient(145deg, #d8e3ff, #9cb8f6);
}

.send-button:not(:disabled):hover {
  background: #e3ebff;
}

.send-button:disabled {
  color: #7d8ca9;
  background: #263348;
}

.disclaimer {
  padding-top: 10px;
  color: #77839a;
  font-size: 10px;
}

.toast-region {
  border-color: rgba(169, 194, 255, .18);
  background: #172235;
}

@media (max-width: 900px) {
  .user-message .message-body { flex-basis: min(82%, 650px); }
}

@media (max-width: 700px) {
  .sidebar { background: #0d1420; }
  .topbar { padding: 0 12px; }
  .messages { padding: 24px 15px 20px; }
  .message { gap: 9px; margin-bottom: 23px; }
  .message-avatar { width: 30px; height: 30px; flex-basis: 30px; border-radius: 10px; }
  .user-message .message-body { flex-basis: calc(100% - 40px); }
  .message-content { font-size: 13px; }
  .user-message .message-content { padding: 10px 12px; }
  .composer-area { padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); }
  .composer { min-height: 88px; padding: 12px 12px 8px 14px; border-radius: 15px; }
  .composer textarea { min-height: 34px; max-height: 125px; font-size: 14px; }
  .composer-meta { font-size: 9px; }
  .composer-counter { font-size: 9px; }
  .send-button { width: 34px; height: 34px; }
  .code-frame code { padding: 12px 12px 15px; font-size: 11px; }
  .artifacts-panel { width: 100%; }
  .artifact-name { font-size: 9px; }
  .artifact-size { display: none; }
  .disclaimer { padding-top: 8px; font-size: 9px; }
}

@media (max-width: 430px) {
  .model-select-wrap select { width: 110px; font-size: 9px; }
  .user-message .message-body { flex-basis: calc(100% - 39px); }
  .composer-meta .meta-divider,
  .composer-meta span:last-child { display: none; }
  .artifacts-header { padding: 8px 9px; }
}

@media (max-width: 430px) {
  .breadcrumb strong { max-width: 110px; }
  .model-select-wrap { gap: 5px; padding: 0 6px; }
  .model-select-wrap select { width: 88px; font-size: 8px; }
}

.suggestion-icon {
  color: #edf2ff;
  border-color: rgba(226, 234, 255, .17);
  background: rgba(226, 234, 255, .055);
}

.suggestion-icon svg,
.suggestion-arrow svg,
.profile-more svg,
.composer-key-hint svg,
.activity-symbol svg,
.source-heading svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.suggestion-icon svg { width: 18px; height: 18px; }
.suggestion-icon-bug,
.suggestion-icon-review,
.suggestion-icon-learn {
  color: #edf2ff;
  border-color: rgba(226, 234, 255, .17);
  background: rgba(226, 234, 255, .055);
}

.suggestion-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  color: #aeb8cb;
}

.suggestion-arrow svg { width: 15px; height: 15px; }
.suggestion-card:hover .suggestion-arrow { color: #fff; }

.profile-more {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #8f9bb0;
}
.profile-more svg { width: 16px; height: 16px; }

.composer-key-hint {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
}
.composer-key-hint svg { width: 15px; height: 15px; }

.thinking-indicator {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 9px;
  color: #dbe3f4;
  font-size: 12px;
  letter-spacing: .01em;
}

.thinking-indicator .activity-symbol {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgba(226, 234, 255, .14);
  border-radius: 9px;
  color: #e8eeff;
  background: rgba(226, 234, 255, .055);
}

.thinking-indicator .activity-symbol svg { width: 15px; height: 15px; }
.thinking-indicator .activity-label { color: #c7d0e2; }
.thinking-indicator .activity-pulse { display: inline-flex; gap: 3px; margin-left: 2px; }
.thinking-indicator .activity-pulse i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #eef3ff;
  animation: activity-pulse 1s ease-in-out infinite;
}
.thinking-indicator .activity-pulse i:nth-child(2) { animation-delay: .14s; }
.thinking-indicator .activity-pulse i:nth-child(3) { animation-delay: .28s; }

.source-panel {
  display: grid;
  width: min(100%, 720px);
  gap: 6px;
  margin: 4px 0 13px;
  padding: 10px;
  border: 1px solid rgba(226, 234, 255, .12);
  border-radius: 12px;
  background: rgba(226, 234, 255, .035);
}

.source-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px 3px;
  color: #dfe7f8;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.source-heading svg { width: 14px; height: 14px; }
.source-count {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 5px;
  color: #dce6fa;
  background: rgba(226, 234, 255, .1);
  font-size: 9px;
}
.source-link {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none !important;
  transition: background .18s ease;
}
.source-link:hover { background: rgba(226, 234, 255, .055); }
.source-link strong {
  overflow: hidden;
  color: #dce6fa;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-link span {
  display: -webkit-box;
  overflow: hidden;
  color: #8f9cb3;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes activity-pulse {
  0%, 80%, 100% { opacity: .35; transform: scale(.75); }
  40% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .thinking-indicator .activity-pulse i { animation: none; }
}

@media (max-width: 700px) {
  .source-panel { padding: 8px; }
  .source-link { padding: 7px 6px; }
  .thinking-indicator { gap: 7px; font-size: 11px; }
  .thinking-indicator .activity-symbol { width: 25px; height: 25px; flex-basis: 25px; }
}


.message {
  min-width: 0;
  width: 100%;
}

.assistant-message .message-body {
  flex: 1 1 0%;
  width: 0;
  max-width: none;
  min-width: 0;
}

.assistant-message .message-content {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.thinking-indicator {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  height: auto;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  color: #dbe3f4;
  font-size: 12px;
  line-height: 1.45;
}

.thinking-indicator > .activity-symbol {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgba(226, 234, 255, .14);
  border-radius: 9px;
  color: #e8eeff;
  background: rgba(226, 234, 255, .055);
}

.thinking-indicator > .activity-label {
  display: inline;
  width: auto !important;
  min-width: 0;
  height: auto !important;
  flex: 0 1 auto;
  border-radius: 0;
  color: #c7d0e2;
  background: transparent;
  animation: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.thinking-indicator > .activity-pulse {
  display: inline-flex;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin-left: 1px;
  background: transparent;
  animation: none;
}

.thinking-indicator .activity-pulse i {
  display: block;
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: #eef3ff;
  animation: activity-pulse 1s ease-in-out infinite;
}

.thinking-indicator .activity-pulse i:nth-child(2) { animation-delay: .14s; }
.thinking-indicator .activity-pulse i:nth-child(3) { animation-delay: .28s; }

@media (max-width: 700px) {
  .assistant-message .message-body { width: 0; }
  .thinking-indicator { gap: 7px; font-size: 12px; }
  .thinking-indicator > .activity-symbol { width: 25px; height: 25px; flex-basis: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .thinking-indicator .activity-pulse i { animation: none; }
}
