| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- /* Original dark palette, shared by the workspace and Markdown content. */
- :root {
- color-scheme: dark;
- --bg: #0f1115; --panel: #171a21; --panel-2: #1e222b; --line: #2a2f3a;
- --fg: #e6e9ef; --fg-dim: #98a1b3; --accent: #4f8cff;
- --ok: #34d399; --warn: #fbbf24; --err: #f87171;
- --muted: #7e899d; --accent-soft: #24324a; --accent-line: #354d73;
- }
- * { box-sizing: border-box; }
- [hidden] { display: none !important; }
- body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
- button, textarea, select { font: inherit; }
- button, a, select, textarea { -webkit-tap-highlight-color: transparent; }
- button { cursor: pointer; color: inherit; background: transparent; border: 0; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
- button:disabled { cursor: not-allowed; opacity: .45; }
- button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
- a { color: var(--accent); }
- svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
- .icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
- .sidebar { width: 258px; flex-shrink: 0; padding: 32px 20px 18px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
- .brand { display: flex; align-items: center; gap: 10px; margin: 0 6px 35px; color: var(--fg); text-decoration: none; font-size: 19px; font-weight: 650; letter-spacing: -.5px; line-height: 1.25; }
- .brand-mark { background: var(--accent); color: #fff; border-radius: 11px; width: 37px; height: 40px; display: grid; place-items: center; }
- .brand-mark svg { width: 26px; height: 26px; }
- .brand small { display: block; font-size: 8px; letter-spacing: 2.5px; margin-top: 6px; color: var(--fg-dim); font-weight: 500; }
- .version { font-size: 10px; padding: 2px 5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; margin-left: auto; letter-spacing: 0; align-self: flex-start; }
- .new-chat { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 15px; border: 1px solid var(--accent-line); border-radius: 9px; background: var(--accent-soft); color: #b8d0ff; font-weight: 550; }
- .new-chat:hover { background: #2d4060; border-color: var(--accent); }
- .new-hint { margin-left: auto; font-size: 19px; font-weight: 400; color: var(--accent); }
- .section-label { font-size: 11px; color: var(--fg-dim); letter-spacing: 1px; margin: 32px 10px 12px; display: flex; align-items: center; justify-content: space-between; }
- .text-button { font-size: 11px; color: var(--fg-dim); padding: 3px; }
- .text-button:hover { color: var(--accent); }
- .session-list { flex: 1; min-height: 90px; overflow: auto; }
- .list-empty { color: var(--fg-dim); font-size: 12px; padding: 8px 10px; line-height: 1.9; }
- .session-button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 11px 10px; border-radius: 7px; color: var(--fg-dim); font-size: 12px; margin: 3px 0; align-items: center; }
- .session-button svg { width: 16px; height: 16px; opacity: .7; }
- .session-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .session-button:hover, .session-button.active { background: var(--accent-soft); color: #b8d0ff; }
- .sidebar-note { border: 1px solid var(--line); border-radius: 10px; padding: 17px; margin: 22px 2px; background: linear-gradient(120deg, var(--panel-2), var(--panel)); }
- .note-icon { display: block; color: var(--accent); margin-bottom: 6px; }
- .sidebar-note strong { font-size: 12px; font-weight: 550; }
- .sidebar-note p { font-size: 11px; color: var(--fg-dim); line-height: 1.9; margin: 6px 0 0; }
- .profile { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 20px 8px 0; }
- .avatar { width: 33px; height: 33px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--fg-dim); }
- .profile strong, .profile span:not(.profile-dot) { display: block; font-size: 11px; font-weight: 500; }
- .profile span:not(.profile-dot) { font-size: 10px; color: var(--muted); margin-top: 2px; }
- .profile-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-left: auto; }
- .workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
- .topbar { height: 79px; flex-shrink: 0; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 18px; }
- .page-heading { display: flex; align-items: center; gap: 15px; min-width: 0; font-size: 12px; }
- .breadcrumb { color: var(--fg-dim); white-space: nowrap; }
- .slash { color: var(--muted); }
- h1 { font-size: 12px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
- .connection { display: flex; align-items: center; gap: 7px; color: var(--fg-dim); font-size: 11px; min-width: 0; }
- #statusPill { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
- .status-dot, .mini-dot { height: 6px; width: 6px; background: var(--muted); border-radius: 50%; display: inline-block; flex-shrink: 0; }
- .status-dot.ready { background: var(--ok); box-shadow: 0 0 0 3px #34d39918; }
- .status-dot.busy { background: var(--warn); animation: pulse 1.3s ease-in-out infinite; }
- .status-dot.error { background: var(--err); }
- .conversation-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 40px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
- .welcome { max-width: 790px; margin: auto; padding: clamp(36px, 7vh, 85px) 0 28px; text-align: center; }
- .eyebrow { color: var(--fg-dim); font-size: 9px; letter-spacing: 2.3px; display: flex; gap: 7px; align-items: center; justify-content: center; }
- .eyebrow span { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
- .welcome-mark { position: relative; width: 64px; height: 64px; border: 1px solid var(--accent-line); border-radius: 20px; margin: 24px auto 22px; display: grid; place-items: center; color: #92b8ff; background: linear-gradient(140deg, #263853, var(--panel-2)); box-shadow: 0 8px 23px #00000026, inset 0 1px 0 #ffffff0a; transform: rotate(-7deg); }
- .welcome-mark svg { width: 37px; height: 37px; stroke-width: 1.3; transform: rotate(7deg); }
- .little-spark { position: absolute; right: -9px; top: -14px; font-size: 23px; color: var(--accent); }
- h2 { font-size: clamp(25px, 2.6vw, 35px); line-height: 1.4; margin: 0; font-weight: 560; letter-spacing: -1px; color: var(--fg); }
- .welcome-description { font-size: 13px; color: var(--fg-dim); margin: 16px 0 39px; line-height: 1.95; }
- #log { max-width: 790px; margin: 0 auto; padding: 28px 0 16px; display: flex; flex-direction: column; gap: 26px; }
- #log:empty { display: none; }
- .msg { width: 100%; min-width: 0; }.msg.user { display: flex; justify-content: flex-end; }
- .msg.user .bubble { background: var(--accent-soft); color: var(--fg); border: 1px solid var(--accent-line); border-radius: 16px 16px 4px 16px; padding: 12px 17px; max-width: 82%; white-space: pre-wrap; overflow-wrap: anywhere; }
- .msg.assistant::before { content: "✧ Deep Agent"; display: block; color: #92b8ff; font-size: 11px; font-weight: 600; letter-spacing: .3px; margin-bottom: 10px; }
- .msg.assistant .bubble { background: var(--panel); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 20px 22px; overflow-wrap: anywhere; line-height: 1.9; }
- .segment { white-space: normal; min-width: 0; }
- .segment.plain-text { white-space: pre-wrap; }.segment + .segment { margin-top: 12px; }
- .card { border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 10px 13px; margin: 10px 0; font-size: 12px; }
- .card .title { color: var(--fg-dim); font-size: 11px; margin-bottom: 4px; font-weight: 550; }
- pre { white-space: pre-wrap; overflow-wrap: anywhere; }
- .card pre { margin: 4px 0 0; font-size: 11px; color: var(--fg-dim); max-height: 180px; overflow: auto; line-height: 1.7; }
- .card.pending, .card.approval { border-left: 3px solid var(--warn); background: #29251b; }.card.done { border-left: 3px solid var(--ok); }.card.error { border-left: 3px solid var(--err); background: #2b1e23; }
- .approval .actions { display: flex; gap: 8px; margin-top: 12px; }.actions button { border: 1px solid var(--line); border-radius: 6px; padding: 5px 16px; background: var(--panel); }.actions button.ok { color: var(--ok); border-color: #34d39955; }.actions button.no { color: var(--err); }
- .cite { font-size: 11px; color: var(--fg-dim); }.cite a { margin: 0 5px; }
- details summary { cursor: pointer; font-size: 12px; }.status { text-align: center; color: var(--fg-dim); font-size: 12px; }
- .composer-area { padding: 20px 40px 23px; background: var(--bg); }
- .composer { max-width: 790px; margin: auto; border: 1px solid var(--line); border-radius: 16px; padding: 17px 18px 12px; background: var(--panel); box-shadow: 0 7px 28px #00000026, 0 2px 6px #00000014; transition: border-color .2s, box-shadow .2s; }
- .composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #4f8cff14, 0 7px 28px #00000026; }
- textarea { width: 100%; border: 0; outline: none !important; resize: none; background: transparent; color: var(--fg); padding: 2px 2px 10px; font-size: 13px; line-height: 1.7; min-height: 65px; max-height: 160px; }
- textarea::placeholder { color: var(--muted); }
- .composer-toolbar, .composer-options, .send-actions { display: flex; align-items: center; gap: 12px; }.composer-toolbar { justify-content: space-between; }
- .icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: var(--fg-dim); flex-shrink: 0; }.icon-button:hover { background: var(--panel-2); color: var(--accent); }
- .toolbar-divider { width: 1px; height: 15px; background: var(--line); }
- .mode-select { display: flex; align-items: center; gap: 4px; color: var(--fg-dim); }.mode-select svg { width: 14px; height: 14px; }.mode-select select { color: var(--fg-dim); border: 0; background: transparent; font-size: 11px; cursor: pointer; max-width: 110px; padding: 5px 0; }
- .keyboard-hint { font-size: 10px; color: var(--muted); }.send-button { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 10px; }.send-button:hover:not(:disabled) { background: #679cff; transform: translateY(-1px); }.send-button:disabled { opacity: 1; background: var(--panel-2); color: var(--muted); }
- .stop-button { display: flex; align-items: center; gap: 7px; border-radius: 8px; padding: 7px 11px; background: #f8717118; color: var(--err); font-size: 11px; }.stop-button span { width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
- .composer-meta { max-width: 790px; margin: 13px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }.composer-meta > span:first-child { display: flex; align-items: center; gap: 6px; }.mini-dot { width: 4px; height: 4px; background: var(--muted); }
- .attachment { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 3px 8px; border-radius: 8px; width: fit-content; max-width: 100%; background: var(--panel-2); margin-bottom: 12px; font-size: 11px; }.attachment > svg { width: 16px; height: 16px; }#fileName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- #sidebarToggle { display: none; }.sidebar-backdrop { position: fixed; inset: 0; background: #00000088; z-index: 5; }
- @keyframes pulse { 50% { opacity: .35; } }
- @media (min-width: 1500px) { .welcome { padding-top: 10vh; } }
- @media (max-width: 1100px) { .sidebar { width: 224px; padding-inline: 15px; }.brand { font-size: 17px; }.brand small { font-size: 7px; }.topbar { padding-inline: 26px; }.conversation-scroll { padding-inline: 28px; }.composer-area { padding-inline: 28px; }.desktop-hint { display: none; } }
- @media (max-width: 800px) { .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 6; width: 258px; visibility: hidden; transform: translateX(-100%); transition: transform .2s; }.sidebar.open { visibility: visible; transform: translateX(0); }#sidebarToggle { display: inline-grid; }.topbar { height: 65px; padding-inline: 18px; }.page-heading { gap: 10px; }.breadcrumb, .slash { display: none; }h1 { max-width: 200px; }.connection { max-width: 40%; }.welcome { padding-top: 42px; }.welcome-description { margin-bottom: 27px; }.conversation-scroll { padding-inline: 24px; }.composer-area { padding: 14px 24px max(16px, env(safe-area-inset-bottom)); } }
- @media (max-width: 440px) { .topbar { padding-inline: 12px; }h1 { max-width: 140px; }.conversation-scroll { padding-inline: 18px; }.welcome { padding-top: 30px; }.welcome-mark { margin-top: 20px; margin-bottom: 20px; }.eyebrow { font-size: 8px; letter-spacing: 1.6px; }h2 { font-size: 25px; }.welcome-description { font-size: 12px; }.composer-area { padding-inline: 14px; }.composer { padding: 13px 12px 10px; }.keyboard-hint { display: none; }.msg.assistant .bubble { padding: 15px; } }
- @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
- /* Compact welcome spacing on common laptop screens. */
- @media (min-width: 801px) and (max-height: 800px) {
- .welcome { padding-top: 25px; padding-bottom: 16px; }
- .welcome-mark { width: 54px; height: 54px; margin: 16px auto; border-radius: 17px; }
- .welcome-mark svg { width: 32px; height: 32px; }
- .welcome-description { margin: 12px 0 22px; }
- }
- /* Markdown typography is scoped so message headings do not inherit the topbar. */
- .segment { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
- .segment > :first-child { margin-top: 0; }
- .segment > :last-child { margin-bottom: 0; }
- .segment p { margin: 0 0 12px; }
- .segment h1, .segment h2, .segment h3, .segment h4, .segment h5, .segment h6 {
- color: var(--fg); font-weight: 650; line-height: 1.45; letter-spacing: 0;
- margin: 22px 0 12px; max-width: none; white-space: normal; overflow: visible;
- }
- .segment h1 { font-size: 25px; }
- .segment h2 { font-size: 21px; }
- .segment h3 { font-size: 18px; }
- .segment h4, .segment h5, .segment h6 { font-size: 15px; }
- .segment ul, .segment ol { margin: 8px 0 14px; padding-left: 25px; }
- .segment li { margin: 5px 0; padding-left: 2px; }
- .segment li > p { margin-bottom: 6px; }
- .segment li > ul, .segment li > ol { margin-block: 4px; }
- .segment li input { margin-right: 7px; accent-color: var(--accent); }
- .segment blockquote { margin: 14px 0; padding: 9px 15px; border-left: 3px solid var(--accent); color: var(--fg-dim); background: var(--panel-2); border-radius: 0 6px 6px 0; }
- .segment blockquote > :last-child { margin-bottom: 0; }
- .segment code { font: .9em/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; background: var(--panel-2); color: #bfd4ff; border-radius: 4px; padding: 2px 5px; }
- .segment pre { margin: 14px 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); white-space: pre; overflow: auto; overflow-wrap: normal; tab-size: 2; }
- .segment pre code { display: block; padding: 0; color: var(--fg); background: transparent; border-radius: 0; font-size: 12px; white-space: pre; }
- .segment a { color: #82afff; text-decoration: underline; text-underline-offset: 3px; }
- .segment a:hover { color: #b7d0ff; }
- .segment hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
- .segment img { max-width: 100%; height: auto; border-radius: 8px; }
- .markdown-table { max-width: 100%; overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; scrollbar-width: thin; }
- .segment table { border-collapse: collapse; width: 100%; font-size: 13px; }
- .segment th, .segment td { padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 90px; }
- .segment th { background: var(--panel-2); font-weight: 600; }
- .segment th[align="center"], .segment td[align="center"] { text-align: center; }
- .segment th[align="right"], .segment td[align="right"] { text-align: right; }
- .segment tr:last-child td { border-bottom: 0; }
- .segment th:last-child, .segment td:last-child { border-right: 0; }
- .segment tbody tr:nth-child(even) { background: #ffffff03; }
|