File size: 14,869 Bytes
4588abc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
:root {
  color-scheme: dark;
  --bg: #0c0d11;
  --panel: #111319;
  --panel-2: #171920;
  --panel-3: #1d2028;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f2eb;
  --muted: #9c9da7;
  --faint: #676a75;
  --accent: #f4a261;
  --accent-2: #9b87f5;
  --green: #58d6a1;
  --danger: #ff7b7b;
  --sidebar: 280px;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { overflow: hidden; }
button, textarea, input, select { font: inherit; }
button { color: inherit; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) 1fr; height: 100dvh; }
.sidebar {
  background: linear-gradient(180deg, #111218 0%, #0e0f14 100%);
  border-right: 1px solid var(--line);
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  z-index: 30;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 0 7px 22px; }
.brand strong { display: block; letter-spacing: -0.02em; }
.brand small { color: var(--faint); font-size: 11px; }
.spinor-mark { width: 35px; height: 35px; position: relative; display: grid; place-items: center; }
.spinor-mark::after { content: "ψ"; color: var(--text); font-family: Georgia, serif; font-size: 19px; z-index: 2; }
.spinor-mark span { position: absolute; width: 31px; height: 15px; border: 1px solid var(--accent-2); border-radius: 50%; transform: rotate(25deg); }
.spinor-mark span:last-child { border-color: var(--accent); transform: rotate(-32deg); }

.new-chat, .sidebar-action, .history-item, .suggestion, .icon-button, .send-button, .attach-button {
  border: 0; cursor: pointer; transition: 150ms ease;
}
.new-chat { background: var(--text); color: #111218; border-radius: 12px; padding: 11px 13px; font-weight: 700; text-align: left; }
.new-chat:hover { background: white; transform: translateY(-1px); }
.new-chat span { margin-right: 8px; }
.history-label { color: var(--faint); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; margin: 25px 9px 9px; }
.history { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; min-height: 80px; }
.history-item { background: transparent; color: var(--muted); border-radius: 10px; padding: 10px 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.history-item:hover, .history-item.active { color: var(--text); background: var(--panel-3); }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.sidebar-action { display: block; width: 100%; text-align: left; padding: 9px 8px; background: transparent; color: var(--muted); font-size: 12px; border-radius: 8px; }
.sidebar-action:hover { color: var(--text); background: var(--panel-3); }
.sidebar-action span { display: inline-block; width: 20px; }
.privacy-note { color: var(--faint); font-size: 10px; padding: 12px 8px 0; }
.privacy-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 9px var(--green); }

.workspace { min-width: 0; display: grid; grid-template-rows: 72px 1fr auto; height: 100dvh; background: radial-gradient(circle at 50% 18%, rgba(155, 135, 245, .055), transparent 34%), var(--bg); }
.topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 25px; backdrop-filter: blur(18px); }
.eyebrow { display: block; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .18em; margin-bottom: 5px; }
.model-row { display: flex; align-items: center; gap: 10px; }
.model-row strong { font-size: 14px; }
.status-pill { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 10px; }
.status-pill i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 5px; }
.status-pill.ready i { background: var(--green); box-shadow: 0 0 7px rgba(88,214,161,.8); }
.status-pill.error i { background: var(--danger); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.mode-select, .setting-group input, .setting-group textarea { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); outline: none; }
.mode-select { padding: 8px 31px 8px 11px; font-size: 12px; }
.icon-button { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; }
.icon-button:hover { background: var(--panel-3); border-color: var(--line-strong); }
.mobile-menu { display: none; }

.chat-stage { overflow-y: auto; min-height: 0; scroll-behavior: smooth; }
.empty-state { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px 24px 24px; text-align: center; }
.empty-state.hidden { display: none; }
.hero-orbit { width: 90px; height: 90px; position: relative; display: grid; place-items: center; margin-bottom: 19px; }
.hero-orbit b { font: 36px Georgia, serif; font-weight: 400; }
.hero-orbit span { position: absolute; border: 1px solid rgba(155, 135, 245, .7); width: 83px; height: 34px; border-radius: 50%; transform: rotate(24deg); box-shadow: 0 0 20px rgba(155,135,245,.08); }
.hero-orbit .orbit-two { border-color: rgba(244, 162, 97, .75); transform: rotate(-34deg); }
.hero-kicker { color: var(--accent); font-size: 9px; letter-spacing: .23em; font-weight: 800; }
.empty-state h1 { font: 500 clamp(30px, 4.5vw, 48px) Georgia, serif; letter-spacing: -.035em; margin: 12px 0 11px; }
.empty-state > p { color: var(--muted); line-height: 1.6; max-width: 610px; margin: 0; font-size: 14px; }
.suggestion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); gap: 9px; margin-top: 32px; }
.suggestion { background: rgba(23,25,32,.84); border: 1px solid var(--line); border-radius: 13px; text-align: left; padding: 14px 15px; }
.suggestion:hover { border-color: rgba(155,135,245,.42); transform: translateY(-2px); background: var(--panel-3); }
.suggestion span { display: block; color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 5px; }
.suggestion strong { font-size: 13px; }

.messages { max-width: 820px; margin: 0 auto; padding: 36px 24px 60px; }
.message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; margin: 0 0 28px; animation: rise .23s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.message.assistant .avatar { color: var(--accent-2); font-family: Georgia, serif; }
.message-head { color: var(--faint); font-size: 10px; margin: 2px 0 7px; text-transform: uppercase; letter-spacing: .11em; }
.message-content { color: #dddbe0; font-size: 14px; line-height: 1.72; overflow-wrap: anywhere; }
.message-content p { margin: 0 0 10px; }
.message-content code { background: #20232b; color: #f0c49c; padding: 2px 5px; border-radius: 5px; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.message-content pre { background: #090a0d; border: 1px solid var(--line); padding: 14px; border-radius: 12px; overflow-x: auto; }
.message-content pre code { background: transparent; padding: 0; color: #d8d8e5; }
.cursor::after { content: ""; display: inline-block; width: 6px; height: 15px; background: var(--accent-2); margin-left: 3px; vertical-align: -2px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.composer-wrap { padding: 8px 24px 17px; background: linear-gradient(180deg, transparent, var(--bg) 25%); }
.composer, .knowledge-strip, .composer-meta { max-width: 820px; margin-left: auto; margin-right: auto; }
.composer { background: #17191f; border: 1px solid var(--line-strong); border-radius: 18px; display: flex; align-items: flex-end; gap: 8px; padding: 9px; box-shadow: 0 16px 45px rgba(0,0,0,.28); }
.composer:focus-within { border-color: rgba(155,135,245,.47); box-shadow: 0 16px 50px rgba(0,0,0,.35), 0 0 0 3px rgba(155,135,245,.07); }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); min-height: 37px; max-height: 160px; line-height: 1.55; padding: 8px 3px; }
.composer textarea::placeholder { color: var(--faint); }
.attach-button, .send-button { flex: 0 0 37px; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; }
.attach-button { background: transparent; color: var(--muted); font-size: 21px; }
.attach-button:hover { color: var(--text); background: var(--panel-3); }
.attach-button input { display: none; }
.send-button { background: var(--text); color: #111218; font-size: 20px; font-weight: 700; }
.send-button:hover { background: white; transform: translateY(-1px); }
.send-button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.composer-meta { display: flex; justify-content: space-between; color: var(--faint); font-size: 9px; padding: 7px 6px 0; }
kbd { font: inherit; border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 4px; }
.knowledge-strip { display: flex; gap: 7px; overflow-x: auto; padding: 0 2px 8px; }
.knowledge-chip { border: 1px solid rgba(244,162,97,.3); color: #e8c4a7; background: rgba(244,162,97,.08); border-radius: 999px; padding: 5px 9px; font-size: 10px; white-space: nowrap; }

.settings-panel { position: fixed; z-index: 60; top: 0; right: 0; height: 100dvh; width: min(420px, 94vw); background: #12141a; border-left: 1px solid var(--line); padding: 25px; transform: translateX(102%); transition: transform .22s ease; overflow-y: auto; }
.settings-panel.open { transform: translateX(0); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(3px); z-index: 50; }
.settings-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.settings-header h2 { font: 27px Georgia, serif; margin: 0; }
.setting-group { margin-bottom: 20px; }
.setting-group label { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin: 0 0 8px; }
.setting-group textarea, .setting-group input[type="url"] { width: 100%; padding: 11px; resize: vertical; color: var(--text); }
.setting-group input:focus, .setting-group textarea:focus { border-color: rgba(155,135,245,.5); }
.setting-group input[type="range"] { accent-color: var(--accent-2); width: 100%; }
.setting-group small, .toggle-row small, .runtime-card small { display: block; color: var(--faint); font-size: 10px; line-height: 1.45; margin-top: 7px; }
.setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px 0; margin: 8px 0 20px; }
.toggle-row strong { font-size: 12px; }
.toggle-row input { width: 36px; height: 20px; accent-color: var(--accent-2); }
.runtime-card { display: flex; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); padding: 13px; border-radius: 13px; }
.runtime-icon { width: 31px; height: 31px; border: 1px solid rgba(155,135,245,.35); border-radius: 9px; display: grid; place-items: center; color: var(--accent-2); }
.runtime-card strong { font-size: 12px; }

.load-modal { position: fixed; z-index: 100; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(370px, calc(100vw - 32px)); background: #171920; border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 30px 100px rgba(0,0,0,.65); padding: 27px; text-align: center; }
.load-modal strong { display: block; font-size: 15px; margin-top: 13px; }
.load-modal p { color: var(--muted); font-size: 11px; min-height: 16px; }
.load-modal small { color: var(--faint); font-size: 9px; }
.loader-orbit { width: 54px; height: 54px; display: grid; place-items: center; margin: auto; position: relative; }
.loader-orbit span { position: absolute; inset: 5px; border: 1px solid var(--accent-2); border-radius: 50%; animation: orbit 1.4s linear infinite; }
.loader-orbit span::after { content: ""; position: absolute; top: -3px; left: 20px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.loader-orbit b { font: 21px Georgia, serif; }
@keyframes orbit { to { transform: rotate(360deg); } }
.progress-track { height: 5px; background: #252832; border-radius: 99px; overflow: hidden; margin: 17px 0 10px; }
.progress-track div { height: 100%; width: 4%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: inherit; transition: width .2s; }
.toast { position: fixed; z-index: 120; bottom: 25px; left: 50%; transform: translateX(-50%); color: var(--text); background: #232630; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; font-size: 11px; box-shadow: 0 12px 35px rgba(0,0,0,.4); }
.hidden { display: none !important; }

@media (max-width: 760px) {
  html, body, .app-shell { width: 100vw; max-width: 100vw; overflow: hidden; }
  .app-shell { display: block; }
  .workspace { width: 100vw; max-width: 100vw; overflow: hidden; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(285px, 88vw); transform: translateX(-102%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0,0,0,.4); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 14px; }
  .model-identity { display: none; }
  .mobile-menu { margin-right: auto; }
  .status-pill { display: none; }
  .mode-select { width: 145px; max-width: 145px; }
  .topbar-actions { min-width: 0; }
  .chat-stage, .composer-wrap { width: 100vw; max-width: 100vw; overflow-x: hidden; }
  .empty-state { width: 100%; overflow: hidden; }
  .empty-state h1 { max-width: 345px; font-size: 33px; line-height: 1.08; }
  .empty-state > p { max-width: 345px; }
  .suggestion-grid { grid-template-columns: 1fr; width: 100%; max-width: 360px; }
  .suggestion:nth-child(n+3) { display: none; }
  .messages { padding-left: 15px; padding-right: 15px; }
  .composer-wrap { padding-left: 10px; padding-right: 10px; }
  .composer { width: calc(100vw - 20px); max-width: calc(100vw - 20px); }
  .composer textarea { min-width: 0; }
  .composer-meta span:first-child { display: none; }
  .composer-meta { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}