:root { --bg: #f8f8f8; --surface: #fff; --line: #e6e6e6; --text: #171717; --muted: #777; --accent: #2683eb; --assistant: #f3f5f7; --user: #e9f3ff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 "Microsoft YaHei", "Segoe UI", Arial, sans-serif; }
button, textarea, input { font: inherit; } button { cursor: pointer; } a { color: inherit; text-decoration: none; }
.assistant-shell { display: grid; min-height: 100vh; grid-template-columns: 272px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; font-size: 16px; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; background: #121212; color: #fff; font-size: 11px; font-weight: 800; }
.new-chat { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #aad0ff; border-radius: 7px; color: #155fae; font-weight: 700; }
.new-chat:hover { background: #f4f9ff; }.history-search { display: block; margin: 14px 2px 18px; }.history-search input { width: 100%; min-height: 38px; border: 0; border-radius: 7px; outline: 0; padding: 0 11px; background: #f3f3f3; }.history-search input:focus { box-shadow: 0 0 0 2px #cfe5ff; }
.history { min-height: 0; overflow-y: auto; }.history p { margin: 0 8px 8px; color: var(--muted); }.history-item, #history-empty { display: block; overflow: hidden; padding: 8px; border-radius: 6px; color: #535353; text-overflow: ellipsis; white-space: nowrap; }.history-item:hover { background: #f4f4f4; }.history-item.active { background: #edf6ff; color: #1267bd; font-weight: 700; }.sidebar-footer { display: grid; gap: 3px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.chat-main { min-width: 0; min-height: 100vh; }.chat-log { width: min(820px, calc(100% - 38px)); min-height: 100vh; margin: 0 auto; padding: 72px 0 142px; }.welcome-message { display: grid; justify-items: center; padding-top: min(16vh, 155px); text-align: center; }.welcome-message h1 { margin: 0; font-size: 32px; line-height: 1.2; }.welcome-message p { max-width: 580px; margin: 13px 0 0; color: var(--muted); font-size: 16px; }.starter-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }.starter-prompts button { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; padding: 0 13px; background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.05); }.starter-prompts button:hover { border-color: #94c5ff; color: #1267bd; }
.message { display: grid; gap: 6px; max-width: 760px; margin: 0 auto 25px; }.message-label { color: var(--muted); font-size: 13px; font-weight: 700; }.message-body { max-width: 90%; padding: 12px 14px; border-radius: 7px; word-break: break-word; }.message.assistant .message-body { background: var(--assistant); }.message.user { justify-items: end; }.message.user .message-body { background: var(--user); }.message.pending .message-body { color: var(--muted); }
.research-status { display: inline-flex; align-items: center; gap: 8px; min-height: 20px; color: #59636e; font-size: 13px; }.research-marker { width: 10px; height: 10px; border: 2px solid #aab3bc; border-top-color: var(--accent); border-radius: 50%; animation: research-spin .9s linear infinite; }.research-status.completed { color: #2f6b45; }.research-status.completed .research-marker { border: 0; background: #43a36a; animation: none; }.research-status.completed .research-marker::after { display: block; color: #fff; content: "\2713"; font-size: 9px; line-height: 10px; text-align: center; }.research-status.failed { color: #a23a3a; }.research-status.failed .research-marker { border: 0; background: #d05c5c; animation: none; }.research-status.failed .research-marker::after { display: block; color: #fff; content: "!"; font-size: 8px; font-weight: 700; line-height: 10px; text-align: center; }@keyframes research-spin { to { transform: rotate(360deg); } }
.message.assistant .message-body h1, .message.assistant .message-body h2, .message.assistant .message-body h3 { margin: 0 0 10px; line-height: 1.35; }.message.assistant .message-body h1 { font-size: 20px; }.message.assistant .message-body h2 { font-size: 18px; }.message.assistant .message-body h3 { font-size: 16px; }.message.assistant .message-body p { margin: 0 0 9px; }.message.assistant .message-body ul { margin: 0 0 9px; padding-left: 20px; }.message.assistant .message-body li { margin: 3px 0; }.message.assistant .message-body blockquote { margin: 0 0 10px; padding: 7px 10px; border-left: 3px solid #8abcf4; color: #52606d; background: #eaf3fc; }.message.assistant .message-body hr { height: 1px; margin: 14px 0; border: 0; background: #dce2e7; }.message.assistant .message-body code { padding: 1px 4px; border-radius: 3px; background: #e4e8ec; font-family: Consolas, monospace; font-size: .9em; }.message.assistant .message-body a { color: #1267bd; text-decoration: underline; text-underline-offset: 2px; }.markdown-table { overflow-x: auto; margin: 0 0 10px; border: 1px solid #dce2e7; border-radius: 6px; background: #fff; }.markdown-table table { width: 100%; min-width: 430px; border-collapse: collapse; font-size: 13px; }.markdown-table th, .markdown-table td { padding: 8px 10px; border-bottom: 1px solid #e7ebee; text-align: left; white-space: nowrap; }.markdown-table th { background: #f4f6f8; color: #4e5963; }.markdown-table tbody tr:last-child td { border-bottom: 0; }
.message-charts { max-width: 100%; }.stock-chart { width: min(100%, 700px); margin-top: 10px; padding: 10px; border: 1px solid #dce2e7; border-radius: 7px; background: #fff; }.stock-chart-title { margin-bottom: 7px; color: #46515b; font-size: 13px; font-weight: 700; }.stock-chart canvas { display: block; width: 100%; height: 260px; }
.composer { position: fixed; right: 0; bottom: 29px; left: 272px; display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: end; gap: 8px; width: min(820px, calc(100% - 310px)); margin: auto; padding: 9px 10px 9px 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 8px 26px rgba(0,0,0,.1); }.composer textarea { width: 100%; max-height: 160px; resize: none; border: 0; outline: 0; padding: 8px 0; color: var(--text); }.composer button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; line-height: 1; }.composer button:disabled { cursor: wait; opacity: .7; }.disclaimer { position: fixed; right: 0; bottom: 7px; left: 272px; margin: 0; color: var(--muted); font-size: 12px; text-align: center; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.logout-button { border: 0; padding: 0; background: transparent; color: #666; font-size: 12px; }.logout-button:hover { color: #1267bd; text-decoration: underline; }.login-page { display: grid; min-height: 100vh; place-items: center; }.login-shell { width: min(100% - 32px, 390px); }.login-panel { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 35px rgba(0,0,0,.08); }.login-panel .brand { padding: 0; }.login-panel h1 { margin: 28px 0 18px; font-size: 24px; }.login-form { display: grid; gap: 14px; }.login-form label { display: grid; gap: 6px; color: #4f4f4f; font-size: 13px; }.login-form input { min-height: 42px; border: 1px solid #d9dde1; border-radius: 6px; outline: 0; padding: 0 11px; }.login-form input:focus { border-color: #77b2f5; box-shadow: 0 0 0 2px #dceeff; }.login-form button { min-height: 42px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; }.login-error { margin: -4px 0 0; color: #bd3b3b; font-size: 13px; }
@media (max-width: 720px) { .assistant-shell { display: block; }.sidebar { position: static; height: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { padding-bottom: 12px; }.history, .sidebar-footer { display: none; }.history-search { display: none; }.chat-log { width: min(100% - 28px, 820px); padding-top: 34px; padding-bottom: 132px; }.welcome-message { padding-top: 7vh; }.welcome-message h1 { font-size: 27px; }.starter-prompts { display: grid; width: 100%; }.composer { right: 14px; bottom: 28px; left: 14px; width: auto; }.disclaimer { right: 14px; bottom: 6px; left: 14px; }.message-body { max-width: 96%; } }
