:root { color-scheme: light; --ink: #25252b; --muted: #92929c; --border: #ededf0; --accent: #4b6bfb; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--ink); background: #fff; font-synthesis: none; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
html, body, #react-entry-point { height: 100%; width: 100%; margin: 0; }
html, body { overflow: hidden; }
body { font-size: 14px; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button { min-height: 44px; cursor: pointer; border: 0; color: inherit; border-radius: 10px; padding: 10px 14px; background: transparent; transition: background .15s; }
button:hover { background: #eeeeF2; }
button:disabled { cursor: wait; opacity: .45; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #879cff; outline-offset: 2px; }
h1,h2,h3,h4,p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; vertical-align: middle; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px; width: 44px; height: 44px; flex: 0 0 44px; color: #656570; }
.app-shell { display: flex; width: 100%; height: 100vh; height: var(--app-height, 100dvh); overflow: hidden; }
.chat-sidebar { width: 260px; flex: 0 0 260px; background: #f9f9f9; display: flex; flex-direction: column; padding: 12px 14px; min-height: 0; transition: margin-left .2s; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 16px; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding-left: 10px; font-size: 19px; letter-spacing: -.5px; white-space: nowrap; }
.sidebar-brand .ui-icon { color: #4b6bfb; width: 25px; height: 25px; flex-basis: 25px; }
.sidebar-close { width: 36px; flex-basis: 36px; }
.new-chat-button { display: flex; align-items: center; gap: 10px; background: #e8edff; color: #4661cd; width: 100%; border-radius: 12px; font-weight: 500; text-align: left; }
.new-chat-button:hover { background: #dfe6ff; }
.new-chat-button kbd { margin-left: auto; font: 10px inherit; opacity: .65; white-space: nowrap; }
.session-search { display: flex; align-items: center; gap: 8px; margin: 16px 4px 8px; color: #9999a2; }
.session-search .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.session-search input { background: transparent; border: 0; color: #53535e; min-width: 0; width: 100%; height: 36px; font-size: 12px; border-radius: 6px; }
.session-search input::placeholder { color: #aaaab2; }
.session-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.sidebar-caption { color: #a0a0a8; font-size: 11px; margin: 12px 10px 9px; }
.session-list { display: grid; gap: 3px; }
.session-item { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; min-width: 0; padding: 10px; color: #61616b; font-size: 13px; }
.session-item .ui-icon { width: 15px; height: 15px; flex-basis: 15px; color: #9999a1; }
.session-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-item.is-active { background: #eaeaf0; color: #292934; }
.sessions-empty { font-size: 12px; color: #a6a6ae; padding: 12px 10px; line-height: 1.8; }
.sidebar-profile { display: flex; gap: 10px; align-items: center; flex-shrink: 0; margin-top: 16px; padding: 12px 7px 4px; }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e5eaff; color: #6779bd; }
.sidebar-profile strong { display: block; font-weight: 500; font-size: 12px; }
.sidebar-profile small { display: block; font-size: 10px; color: #a0a0aa; margin-top: 4px; }
.app-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.app-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 64px; gap: 16px; padding: 8px 22px; }
.header-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 2px; }
.auto-read-toggle[aria-pressed="true"] { color: #3474ff; }
.auto-read-toggle[aria-pressed="false"] .audio-on-icon, .auto-read-toggle[aria-pressed="true"] .audio-off-icon { display: none; }
.reply-audio-button .audio-stop-icon { display: none; }
.reply-audio-button[aria-pressed="true"] .audio-play-icon { display: none; }
.reply-audio-button[aria-pressed="true"] .audio-stop-icon { display: inline-flex; }
.reply-audio-status { font-size: 11px; line-height: 1.5; color: #83839a; max-width: 230px; }
.reply-audio-status:empty { display: none; }
.message-actions { flex-wrap: wrap; }
.conversation-title { font-size: 16px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: min(60vw, 560px); }
.chat-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; position: relative; }
.messages-viewport { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; overflow-anchor: none; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #d9d9df transparent; -webkit-overflow-scrolling: touch; touch-action: auto; scroll-padding-top: 20px; }
.messages-viewport::-webkit-scrollbar { width: 8px; }
.messages-viewport::-webkit-scrollbar-thumb { background: #d9d9df; border: 2px solid #fff; border-radius: 8px; }
.messages { width: min(100%, 820px); margin: auto; padding: 28px 28px 20px; min-width: 0; }
.welcome-card { text-align: center; margin: clamp(28px, 11vh, 120px) auto 20px; max-width: 680px; }
.welcome-mark { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 21px; background: #f0f3ff; color: #687df4; margin-bottom: 20px; }
.welcome-mark .ui-icon { width: 29px; height: 29px; }
.welcome-title { font-size: clamp(23px, 3vw, 30px); font-weight: 600; letter-spacing: -.8px; line-height: 1.6; }
.welcome-card > p { color: #a0a0aa; font-size: 13px; margin-top: 10px; line-height: 1.8; }
.example-queries { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 28px; }
.prompt-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e9e9ef; border-radius: 22px; font-size: 12px; padding: 8px 13px; min-height: 40px; color: #676775; }
.prompt-chip .ui-icon { width: 16px; height: 16px; flex-basis: 16px; color: #8a8aa0; }
.message { margin-bottom: 24px; display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.message-user { align-items: flex-end; }
.message-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.message-bubble { max-width: 100%; min-width: 0; line-height: 1.8; overflow-wrap: anywhere; }
.message-user .message-bubble { background: linear-gradient(120deg, #50baf4, #3474ff); color: white; border-radius: 20px; padding: 11px 17px; max-width: 85%; }
.message-assistant .message-bubble { width: auto; max-width: 100%; background: #f7f7f8; padding: 15px 17px; border-radius: 20px; }
.message-assistant .reply-summary:last-child { margin-bottom: 0; }
.user-message-text { white-space: pre-wrap; font-size: 15px; }
.message-actions { display: flex; gap: 1px; align-items: center; margin-top: 6px; color: #aaaab2; min-height: 36px; }
.message-action { display: grid; place-items: center; width: 36px; min-height: 36px; padding: 8px; color: #aaaab2; border-radius: 8px; }
.message-action .ui-icon { width: 16px; height: 16px; }
.message-user .message-actions { opacity: 0; }
.message-user:hover .message-actions, .message-user:focus-within .message-actions { opacity: 1; }
.action-feedback { font-size: 10px; color: #83839a; margin-left: 4px; }
.reply-pending { display: block; width: 100%; min-width: 0; min-height: 44px; color: #8a8a99; }
.pending-label { font-size: 13px; }
.structured-reply { min-width: 0; max-width: 100%; }
.reply-summary { font-size: 15px; line-height: 1.85; margin-bottom: 14px; color: #35353e; }
.conversation-prose { font-size: 15px; line-height: 1.85; color: #35353e; overflow-wrap: anywhere; }
.conversation-prose > :first-child { margin-top: 0; }
.conversation-prose > :last-child { margin-bottom: 0; }
.conversation-prose p { margin: 0 0 12px; }
.conversation-prose ul, .conversation-prose ol { padding-left: 1.5em; margin: 8px 0 12px; }
.conversation-prose li { margin: 6px 0; }
.conversation-prose pre { overflow-x: auto; max-width: 100%; }
.conversation-prose table { display: block; overflow-x: auto; max-width: 100%; }
.conversation-prose a { color: #4c66ee; text-decoration: underline; }
.chat-notice { flex-shrink: 0; width: min(100%, 820px); margin: 0 auto; padding: 0 28px; color: #b07934; font-size: 12px; line-height: 1.7; }
.chat-notice:not(:empty) { padding-top: 8px; padding-bottom: 8px; }
.composer-wrap { width: min(100%, 820px); flex-shrink: 0; align-self: center; padding: 6px 28px 12px; position: relative; }
.composer { background: #f5f5f7; border: 1px solid #ededf2; border-radius: 24px; padding: 17px 18px 12px; transition: border .15s; }
.composer:focus-within { border-color: #d8d9e7; }
.message-input { display: block; width: 100%; height: 48px; min-height: 44px; max-height: 160px; resize: none; border: 0; outline: none; padding: 0; background: transparent; font-size: 16px; line-height: 1.65; color: var(--ink); }
.message-input:focus-visible { outline: none; }
.message-input::placeholder { color: #a5a5af; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.composer-mode { display: flex; gap: 6px; align-items: center; color: #828291; font-size: 12px; }
.composer-mode .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.composer-actions { display: flex; align-items: center; gap: 7px; }
.voice-button { border-radius: 50%; color: #70707d; }
.voice-button.is-recording { background: #fee9eb; color: #cd5263; }
.voice-button.is-transcribing { opacity: .6; }
.send-button { width: 38px; height: 38px; min-height: 38px; padding: 8px; display: grid; place-items: center; background: #4b6bfb; border-radius: 50%; color: #fff; }
.send-button:hover { background: #3d5be5; }
.send-button.is-empty { background: #dedee5; }
.voice-feedback { display: flex; align-items: center; justify-content: center; gap: 8px; color: #7d7d8b; font-size: 11px; line-height: 1.7; }
.voice-feedback:has(#voice-status:not(:empty)) { padding-top: 7px; }
#voice-cancel { min-height: 30px; padding: 3px 8px; color: #5a72d8; font-size: 11px; }
.composer-disclaimer { text-align: center; font-size: 10px; color: #b2b2ba; line-height: 1.5; margin-top: 10px; }
.assistant-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: #4279e9; background: #e9f1ff; border-radius: 50%; }
.header-subtitle { display: block; font-size: 10px; color: #a5a5ad; margin-top: 3px; }
.quick-actions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; }
.quick-action { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 8px 12px; min-height: 38px; border: 1px solid #e4e4e8; background: #fff; border-radius: 10px; font-size: 12px; }
.quick-action .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.quick-actions-hidden .quick-actions { display: none; }
.voice-composer { display: flex; align-items: center; gap: 3px; height: 50px; padding: 2px 7px 2px 10px; border: 1px solid #f0f0f3; background: #fff; border-radius: 20px; box-shadow: 0 3px 14px #0000000a; }
.voice-hold-button { flex: 1; min-width: 0; height: 44px; min-height: 44px; padding: 5px 0 5px 50px; text-align: center; font-size: 16px; font-weight: 600; border-radius: 16px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.voice-hold-button.is-recording { background: #eef5ff; color: #3674e9; }
.voice-hold-button.is-cancelling { background: #fff0f2; color: #d35068; }
.voice-composer .icon-button { color: #1f2027; }
[data-input-mode="voice"] .composer { display: none; }
[data-input-mode="keyboard"] .voice-composer { display: none; }
.voice-overlay { position: fixed; z-index: 40; bottom: 135px; left: 50%; transform: translateX(-50%); width: 235px; padding: 25px 20px 20px; border-radius: 24px; text-align: center; color: white; background: #262d40f2; box-shadow: 0 12px 40px #0002; pointer-events: none; }
.voice-overlay.is-cancelling { background: #ab3754f2; }
.voice-overlay strong { display: block; font-size: 17px; margin-top: 16px; }
.voice-overlay p { font-size: 11px; opacity: .7; margin-top: 8px; }
.voice-wave { display: flex; justify-content: center; align-items: center; gap: 6px; height: 36px; }
.voice-wave span { width: 4px; height: 14px; border-radius: 5px; background: #a1c7ff; animation: voice-wave .8s ease-in-out infinite alternate; }
.voice-wave span:nth-child(2), .voice-wave span:nth-child(4) { animation-delay: -.3s; }
.voice-wave span:nth-child(3) { animation-delay: -.6s; }
@keyframes voice-wave { to { height: 35px; opacity: .8; } }
.message-assistant .message-actions { color: #3474ff; }
.message-assistant .message-action { color: #3474ff; background: #edf3ff; margin-right: 5px; }
.scroll-bottom { position: absolute; top: -46px; left: calc(50% - 19px); width: 38px; height: 38px; min-height: 38px; background: white; box-shadow: 0 2px 12px #20203012; border: 1px solid #eeeef2; border-radius: 50%; }
.scroll-bottom .ui-icon { width: 17px; height: 17px; }
.sidebar-backdrop { display: none; }
.sidebar-collapsed .chat-sidebar { margin-left: -260px; visibility: hidden; }
.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; }
@media (max-width: 767px) {
  .chat-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: min(82vw, 290px); transform: translateX(-100%); visibility: hidden; transition: transform .2s; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .sidebar-open .chat-sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-collapsed .chat-sidebar { margin-left: 0; }
  .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 29; width: 100%; height: 100%; border-radius: 0; background: #0005; }
  .app-header { flex-basis: calc(56px + env(safe-area-inset-top)); padding: 4px 10px; padding-top: calc(4px + env(safe-area-inset-top)); gap: 4px; }
  .conversation-title { font-size: 15px; max-width: 62vw; }
  .header-left { gap: 7px; }
  .header-subtitle { font-size: 9px; }
  .assistant-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .conversation-title { display: block; max-width: 36vw; }
  .messages { padding: 22px 18px 8px; }
  .message-user .message-bubble { max-width: 90%; padding: 10px 14px; }
  .message-assistant .message-bubble { padding: 13px 14px; }
  .message-user .message-actions { opacity: 1; }
  .reply-summary, .conversation-prose, .user-message-text { font-size: 14px; }
  .welcome-card { margin-top: clamp(26px, 7vh, 80px); }
  .welcome-mark { width: 52px; height: 52px; border-radius: 18px; }
  .welcome-title { font-size: 24px; }
  .welcome-card > p { font-size: 12px; }
  .example-queries { gap: 8px; margin-top: 23px; }
  .prompt-chip { font-size: 11px; padding: 8px 11px; }
  .composer-wrap { padding: 6px 14px max(8px, env(safe-area-inset-bottom)); }
  .composer { padding: 13px 14px 9px; border-radius: 22px; }
  .message-input { height: 44px; max-height: 115px; }
  .composer-footer { margin-top: 5px; }
  .composer-disclaimer { margin-top: 7px; font-size: 9px; }
  .voice-hold-button { padding-left: 32px; }
  .chat-notice { padding-left: 18px; padding-right: 18px; }
  .new-chat-button kbd { display: none; }
  .message-action { width: 40px; min-height: 40px; }
}
@media (max-width: 359px) { .messages { padding-left: 12px; padding-right: 12px; } .welcome-title { font-size: 22px; } .product-title { font-size: 13px; } .composer-wrap { padding-left: 10px; padding-right: 10px; } }
@media (max-height: 520px) { .welcome-card { margin-top: 5px; } .welcome-mark { display: none; } .composer-disclaimer { display: none; } .composer { padding-top: 8px; } .message-input { height: 44px; max-height: 80px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } .voice-wave span { animation: none; opacity: .65; } }
