:root { --shell-bg: #eef2f7; --frame-bg: #ffffff; --surface: #f8fafc; --surface-2: #f1f5f9; --user-bubble: #eef2ff; --border: rgba(15, 23, 42, 0.09); --border-strong: rgba(15, 23, 42, 0.16); --text: #0f172a; --text-2: #475569; --text-muted: #64748b; --accent: #4f46e5; --accent-soft: rgba(79, 70, 229, 0.1); --code-bg: #0f172a; --code-head: #1e293b; } html.dark { color-scheme: dark; --shell-bg: #111318; --frame-bg: #0a0b0f; --surface: #141720; --surface-2: #1a1e2a; --user-bubble: #1b2238; --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.15); --text: #eceef4; --text-2: #9aa4b8; --text-muted: #6b768c; --accent: #6366f1; --accent-soft: rgba(99, 102, 241, 0.15); --code-bg: #07080c; --code-head: #12151f; } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; padding: 0; background: var(--shell-bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; } .hidden { display: none !important; } ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { background: rgba(120, 130, 150, 0.28); border-radius: 999px; } .app-shell { display: flex; height: 100vh; width: 100vw; overflow: hidden; background: var(--shell-bg); } .sidebar { width: 268px; flex-shrink: 0; display: flex; flex-direction: column; padding: 12px 10px; background: var(--shell-bg); user-select: none; } .sidebar.collapsed { display: none; } .sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; } .brand { display: flex; align-items: center; gap: 10px; } .brand-icon { width: 26px; height: 26px; border-radius: 8px; } .brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; } .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; border: none; background: transparent; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s; } .icon-btn:hover { background: rgba(128, 128, 128, 0.14); color: var(--text); } .sidebar-actions { padding: 0 2px 12px; } .new-chat-btn { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; } .new-chat-btn:hover { border-color: var(--accent); background: var(--accent-soft); } .conv-section-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; } .history-badge { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); text-transform: none; letter-spacing: 0; } .conversation-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 2px; } .conv-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 11px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s; border: 1px solid transparent; } .conv-item:hover { background: rgba(128, 128, 128, 0.1); color: var(--text); } .conv-item.active { background: var(--surface); border-color: var(--border); color: var(--text); } .conv-item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .conv-item-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; } .conv-item-del { display: none; border: none; background: transparent; color: #f43f5e; cursor: pointer; padding: 2px; } .conv-item:hover .conv-item-time { display: none; } .conv-item:hover .conv-item-del { display: inline-flex; } .sidebar-footer { padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; } .quota-card { padding: 9px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; line-height: 1.45; color: var(--text-2); } .footer-row { display: flex; align-items: center; gap: 6px; } .auth-footer-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .auth-footer-btn:hover { border-color: var(--accent); } .auth-dot { width: 8px; height: 8px; border-radius: 999px; background: #f59e0b; flex-shrink: 0; } .auth-dot.online { background: #10b981; } .main-stage { flex: 1; min-width: 0; padding: 10px 10px 10px 2px; display: flex; } .chat-frame { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--frame-bg); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25); } html:not(.dark) .chat-frame { box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06); } .topbar { height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--border); } .topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; } .conv-title-header { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; } .quota-pill { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); } .quota-pill.unlimited { color: #34d399; border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); } .topbar-login-btn { padding: 6px 12px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; } .topbar-login-btn:hover { filter: brightness(1.1); } .messages-scroll { flex: 1; overflow-y: auto; padding: 20px 18px; } .welcome-view { max-width: 740px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 24px; } .announcement-banner { padding: 10px 14px; border-radius: 13px; background: var(--accent-soft); border: 1px solid rgba(99, 102, 241, 0.28); font-size: 12.5px; text-align: center; color: var(--text); } .welcome-hero { text-align: center; } .welcome-logo { width: 52px; height: 52px; margin-bottom: 10px; } .welcome-hero h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; } .welcome-hero p { margin: 0; font-size: 14px; color: var(--text-2); } .starter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .starter-card { padding: 14px 16px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; color: var(--text); transition: border-color 0.15s, transform 0.15s; } .starter-card:hover { border-color: var(--accent); transform: translateY(-1px); } .starter-card-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; } .starter-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; } .messages-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; } .msg-user-row { display: flex; justify-content: flex-end; } .msg-user-bubble { max-width: 82%; padding: 11px 15px; border-radius: 16px; background: var(--user-bubble); border: 1px solid var(--border); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; } .msg-user-images { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; } .msg-user-images img { max-height: 160px; border-radius: 10px; border: 1px solid var(--border); } .msg-ai-row { display: flex; align-items: flex-start; gap: 12px; } .msg-ai-avatar { width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0; margin-top: 2px; } .msg-ai-body { flex: 1; min-width: 0; } .reasoning-box { margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; } .reasoning-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: none; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 500; cursor: pointer; } .reasoning-content { padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; line-height: 1.5; color: var(--text-2); white-space: pre-wrap; max-height: 220px; overflow-y: auto; } .md-content { font-size: 14.5px; line-height: 1.65; word-break: break-word; } .md-content > *:first-child { margin-top: 0; } .md-content > *:last-child { margin-bottom: 0; } .md-content p { margin: 0.6em 0; } .md-content h1, .md-content h2, .md-content h3 { margin: 1em 0 0.45em; font-weight: 600; } .md-content h1 { font-size: 1.3em; } .md-content h2 { font-size: 1.15em; } .md-content h3 { font-size: 1.04em; } .md-content ul, .md-content ol { padding-left: 1.4em; margin: 0.5em 0; } .md-content li { margin: 0.25em 0; } .md-content blockquote { margin: 0.7em 0; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; color: var(--text-2); } .md-content table { border-collapse: collapse; width: 100%; margin: 0.8em 0; font-size: 13px; } .md-content th, .md-content td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; } .md-content th { background: var(--surface-2); } .md-content code.inline-code { font-family: 'JetBrains Mono', monospace; font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); } .code-card { margin: 10px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--code-bg); } .code-card-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; background: var(--code-head); color: #94a3b8; font-family: 'JetBrains Mono', monospace; font-size: 11px; } .copy-code-btn { border: none; background: transparent; color: #cbd5e1; cursor: pointer; font-size: 11px; padding: 2px 8px; border-radius: 6px; } .copy-code-btn:hover { background: rgba(255, 255, 255, 0.1); } .code-card pre { margin: 0; padding: 12px 14px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.55; color: #e2e8f0; } .gen-images-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; } .gen-image-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); } .gen-image-card img { width: 100%; display: block; } .gen-image-actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 11.5px; color: var(--text-muted); } .download-img-btn { padding: 4px 10px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 11.5px; } .msg-meta { margin-top: 6px; font-size: 11px; color: var(--text-muted); display: flex; gap: 10px; } .composer-wrap { padding: 8px 18px 16px; } .composer-box { position: relative; max-width: 820px; margin: 0 auto; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); } .attachment-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 4px; } .att-thumb { position: relative; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); } .att-thumb img { width: 100%; height: 100%; object-fit: cover; } .att-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 999px; border: none; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 11px; cursor: pointer; } .composer-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; } .attach-btn { width: 34px; height: 34px; border-radius: 10px; border: none; background: transparent; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .attach-btn:hover { background: rgba(128, 128, 128, 0.14); color: var(--text); } #chat-input { flex: 1; border: none; background: transparent; color: var(--text); outline: none; resize: none; font-family: inherit; font-size: 14.5px; line-height: 1.5; padding: 5px 2px; max-height: 180px; } .send-btn { width: 36px; height: 36px; border-radius: 11px; border: none; background: var(--accent); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; } .send-btn.stopping { background: #e11d48; } .send-btn:disabled { opacity: 0.4; cursor: default; } .composer-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 17px 17px; } .controls-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .mode-switch { display: inline-flex; padding: 2px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); } .mode-tab { padding: 4px 10px; border-radius: 8px; border: none; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; } .mode-tab.active { background: var(--accent); color: #fff; } .control-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; cursor: pointer; } .control-pill:hover { border-color: var(--accent); } .dot-accent { width: 7px; height: 7px; border-radius: 999px; background: #818cf8; } .effort-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; } .effort-bars span { width: 3px; border-radius: 99px; background: rgba(148, 163, 184, 0.3); } .effort-bars span.on { background: #818cf8; } .composer-hint { font-size: 11px; color: var(--text-muted); } .popover { position: absolute; bottom: calc(100% + 8px); z-index: 40; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); padding: 6px; } .popover-model { left: 12px; width: min(92vw, 390px); max-height: 340px; overflow-y: auto; } .popover-effort { left: 170px; width: 280px; } .popover-size { left: 170px; width: 200px; } .pop-group-title { padding: 6px 10px 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); } .pop-item { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 11px; border: none; background: transparent; color: var(--text); text-align: left; cursor: pointer; } .pop-item:hover { background: rgba(128, 128, 128, 0.12); } .pop-item.active { background: var(--accent-soft); } .pop-item-name { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; } .pop-item-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; } .badge-pill { font-size: 10px; padding: 1px 6px; border-radius: 6px; background: rgba(139, 92, 246, 0.18); color: #c4b5fd; font-weight: 600; } .modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; } .modal-card { width: 100%; max-width: 420px; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface); padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); } .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .modal-header h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; } .modal-header p { margin: 0; font-size: 12px; color: var(--text-2); } .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; } .auth-tab { padding: 7px; border-radius: 9px; border: none; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; } .auth-tab.active { background: var(--accent); color: #fff; } .auth-form { display: flex; flex-direction: column; gap: 12px; } .space-y { display: flex; flex-direction: column; gap: 12px; } .field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; } .field input { padding: 9px 12px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--frame-bg); color: var(--text); font-size: 13px; outline: none; } .field input:focus { border-color: var(--accent); } .auth-error { padding: 9px 12px; border-radius: 10px; background: rgba(244, 63, 94, 0.14); border: 1px solid rgba(244, 63, 94, 0.35); color: #fda4af; font-size: 12px; } .auth-submit-btn { padding: 10px; border-radius: 12px; border: none; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; } .mobile-only { display: none; } @media (max-width: 768px) { .mobile-only { display: inline-flex; } .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform 0.2s ease; border-right: 1px solid var(--border); } .sidebar.mobile-open { transform: translateX(0); display: flex; } .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.55); } .main-stage { padding: 6px; } .starter-grid { grid-template-columns: 1fr; } .composer-hint { display: none; } }