main
css 43 lines 3.82 KB
Raw
1 :root { color-scheme: dark; --bg: #060a0d; --panel: #080c0f; --line: #1e2a30; --text: #d0e0e8; --muted: #4a6270; --accent: #00e5a0; }
2 * { box-sizing: border-box; }
3 html, body, #root { height: 100%; margin: 0; background: var(--bg); color: var(--text); }
4 body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
5 button, textarea, input { font: inherit; }
6 button { cursor: pointer; }
7 .app { display: flex; flex-direction: column; height: 100%; }
8 .top { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
9 .mark { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #00e5a0, #00b8ff); color: #060a0d; display: grid; place-items: center; font-weight: 700; }
10 .title { font-weight: 700; letter-spacing: 0.08em; }
11 .sub { color: var(--muted); font-size: 11px; }
12 .grow { margin-left: auto; display: flex; gap: 8px; }
13 .chip, .ghost { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 4px; padding: 4px 8px; font-size: 11px; }
14 .chip.on { color: var(--accent); border-color: var(--accent); }
15 .body { display: flex; min-height: 0; flex: 1; }
16 .side { width: 230px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
17 .tabs { display: flex; border-bottom: 1px solid var(--line); }
18 .tabs button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 8px 0; font-size: 10px; }
19 .tabs button.on { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
20 .list { overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
21 .worker { text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 8px; color: var(--text); }
22 .worker.on { border-color: var(--accent); background: #00e5a012; }
23 .worker b { display: block; font-size: 12px; }
24 .worker span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
25 .main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
26 .head { padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel); display: flex; gap: 10px; align-items: center; font-size: 12px; }
27 .dot { width: 8px; height: 8px; border-radius: 50%; }
28 .msgs { flex: 1; overflow: auto; padding: 14px; }
29 .msg { max-width: 820px; margin: 0 auto 14px; }
30 .meta { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
31 .bubble { white-space: pre-wrap; line-height: 1.55; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #0a1218; }
32 .msg.user .bubble { background: #0e1a20; }
33 .composer { border-top: 1px solid var(--line); background: var(--panel); padding: 10px 12px; }
34 .quick { display: flex; gap: 6px; overflow: auto; padding-bottom: 8px; }
35 .quick button { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 4px 8px; font-size: 10px; }
36 .row { display: flex; gap: 8px; }
37 textarea { flex: 1; resize: none; min-height: 44px; background: #0a1218; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
38 .send { width: 44px; border: 0; border-radius: 8px; background: var(--accent); color: #060a0d; font-weight: 700; }
39 .send:disabled { opacity: 0.4; }
40 .status { height: 28px; display: flex; gap: 12px; align-items: center; padding: 0 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; background: #080c0f; }
41 .card { border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 11px; color: var(--muted); }
42 .card b { color: var(--text); display: block; margin-bottom: 4px; }
43 @media (max-width: 800px) { .side { display: none; } .side.open { display: flex; position: absolute; inset: 48px 0 28px auto; width: min(320px, 100%); z-index: 5; } }