diff-chat 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- adapters/README.md +28 -0
- adapters/__init__.py +48 -0
- adapters/_base.py +102 -0
- adapters/_cli.py +405 -0
- adapters/claude.py +141 -0
- adapters/gemini.py +323 -0
- adapters/gpt.py +217 -0
- adapters/local.py +146 -0
- adapters/registry.py +33 -0
- api_fallback.py +189 -0
- app.py +827 -0
- app_preferences.py +205 -0
- archive_schema.py +142 -0
- attachments.py +129 -0
- chat_titles.py +60 -0
- connection_handoff.py +64 -0
- context_engine.py +256 -0
- conversation_actions.py +160 -0
- diff_chat-0.1.0.dist-info/METADATA +101 -0
- diff_chat-0.1.0.dist-info/RECORD +91 -0
- diff_chat-0.1.0.dist-info/WHEEL +4 -0
- diff_chat-0.1.0.dist-info/entry_points.txt +2 -0
- diff_chat-0.1.0.dist-info/licenses/LICENSE +21 -0
- diff_chat_assets/memory.example.md +1 -0
- diff_chat_assets/prompts/about_you_export.md +19 -0
- diff_chat_assets/settings.json +6 -0
- diff_chat_assets/static/about-you-parser.js +46 -0
- diff_chat_assets/static/about-you.js +171 -0
- diff_chat_assets/static/actions.css +275 -0
- diff_chat_assets/static/actions.js +650 -0
- diff_chat_assets/static/app.css +345 -0
- diff_chat_assets/static/app.js +1344 -0
- diff_chat_assets/static/attachments.js +80 -0
- diff_chat_assets/static/brand/favicon-32.png +0 -0
- diff_chat_assets/static/brand/icon.svg +11 -0
- diff_chat_assets/static/brand/wordmark-dark.svg +15 -0
- diff_chat_assets/static/brand/wordmark-light.svg +13 -0
- diff_chat_assets/static/characters/CREDITS.md +7 -0
- diff_chat_assets/static/characters/characters.css +37 -0
- diff_chat_assets/static/characters/claude.json +507 -0
- diff_chat_assets/static/characters/claude.png +0 -0
- diff_chat_assets/static/characters/claude.webp +0 -0
- diff_chat_assets/static/characters/gemini.json +54 -0
- diff_chat_assets/static/characters/gemini.png +0 -0
- diff_chat_assets/static/characters/gemini.webp +0 -0
- diff_chat_assets/static/characters/gpt.json +507 -0
- diff_chat_assets/static/characters/gpt.png +0 -0
- diff_chat_assets/static/characters/gpt.webp +0 -0
- diff_chat_assets/static/characters/local.json +387 -0
- diff_chat_assets/static/characters/local.png +0 -0
- diff_chat_assets/static/characters/local.webp +0 -0
- diff_chat_assets/static/characters/player.js +318 -0
- diff_chat_assets/static/chat-filing.js +84 -0
- diff_chat_assets/static/controls.js +194 -0
- diff_chat_assets/static/corners.css +59 -0
- diff_chat_assets/static/craft.css +246 -0
- diff_chat_assets/static/drafts.js +41 -0
- diff_chat_assets/static/index.html +208 -0
- diff_chat_assets/static/library.css +30 -0
- diff_chat_assets/static/library.js +181 -0
- diff_chat_assets/static/memory.js +81 -0
- diff_chat_assets/static/preference-dialog.js +21 -0
- diff_chat_assets/static/preferences.css +56 -0
- diff_chat_assets/static/session.js +46 -0
- diff_chat_assets/static/settings.css +111 -0
- diff_chat_assets/static/settings.js +463 -0
- diff_chat_assets/static/setup.js +238 -0
- diff_chat_assets/static/utility.js +64 -0
- diff_chat_assets/static/vendor/LICENSES.txt +531 -0
- diff_chat_assets/static/vendor/highlight.min.js +1262 -0
- diff_chat_assets/static/vendor/markdown-it.min.js +13 -0
- diff_chat_assets/static/vendor/plex-mono.woff2 +0 -0
- diff_chat_assets/static/vendor/plex-sans.woff2 +0 -0
- diff_launcher.py +93 -0
- discussion.py +239 -0
- history_search.py +68 -0
- library_manager.py +251 -0
- model_options.py +132 -0
- plan_usage.py +72 -0
- private_store.py +71 -0
- probe.py +195 -0
- runtime_paths.py +195 -0
- server_security.py +100 -0
- setup_status.py +123 -0
- shared_memory.py +189 -0
- storage.py +185 -0
- usage_budget.py +77 -0
- usage_claude.py +110 -0
- usage_codex.py +170 -0
- usage_gemini.py +70 -0
- utility_models.py +104 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "IBM Plex Sans";
|
|
3
|
+
src: url("/static/vendor/plex-sans.woff2") format("woff2");
|
|
4
|
+
font-weight: 100 700;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
}
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: "IBM Plex Mono";
|
|
9
|
+
src: url("/static/vendor/plex-mono.woff2") format("woff2");
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
font-display: swap;
|
|
12
|
+
}
|
|
13
|
+
:root {
|
|
14
|
+
color-scheme: light dark;
|
|
15
|
+
--ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
|
|
16
|
+
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
17
|
+
--sans: var(--ui);
|
|
18
|
+
--paper: light-dark(#ffffff, #1c1d1f);
|
|
19
|
+
--ink: light-dark(#202124, #f0f0f1);
|
|
20
|
+
--secondary: light-dark(#4b4d53, #c4c5c9);
|
|
21
|
+
--muted: light-dark(#64676f, #a4a6ae);
|
|
22
|
+
--metadata: light-dark(#62666e, #a8abb3);
|
|
23
|
+
--rule: light-dark(#e5e6e8, #333538);
|
|
24
|
+
--inset: light-dark(#f1f2f3, #2a2c2f);
|
|
25
|
+
--library: light-dark(#f7f7f8, #17181a);
|
|
26
|
+
--selected: light-dark(#e8e9ec, #303237);
|
|
27
|
+
--surface: light-dark(#fff, #242528);
|
|
28
|
+
--edge: light-dark(#d8d9dd, #44464b);
|
|
29
|
+
--accent: var(--ink);
|
|
30
|
+
--on-accent: var(--paper);
|
|
31
|
+
}
|
|
32
|
+
:root[data-theme="light"] { color-scheme: light; }
|
|
33
|
+
:root[data-theme="dark"], :root[data-theme="codex"] { color-scheme: dark; }
|
|
34
|
+
:root[data-theme="codex"] {
|
|
35
|
+
--paper: #10151b; --library: #0d1116; --surface: #181e25;
|
|
36
|
+
--ink: #e3ebee; --secondary: #bac7cd; --muted: #9baab2; --metadata: #98a8b0;
|
|
37
|
+
--inset: #202830; --selected: #29333d; --rule: #28313a; --edge: #394651;
|
|
38
|
+
--accent: #a9dbc4; --on-accent: #14221b;
|
|
39
|
+
}
|
|
40
|
+
:root[data-font="mono"], :root[data-theme="codex"][data-font="theme"] { --sans: var(--mono); }
|
|
41
|
+
:root[data-font="serif"] { --sans: ui-serif, "Iowan Old Style", Georgia, serif; }
|
|
42
|
+
:root[data-font="plex"] { --sans: "IBM Plex Sans", var(--ui); }
|
|
43
|
+
:root[data-accent="blue"] { --accent: light-dark(#265cbc,#b3cbff); --on-accent: light-dark(#fff,#10234b); }
|
|
44
|
+
:root[data-accent="teal"] { --accent: light-dark(#126b66,#93d7ce); --on-accent: light-dark(#fff,#0e302b); }
|
|
45
|
+
:root[data-accent="violet"] { --accent: light-dark(#6b47a5,#d3baf8); --on-accent: light-dark(#fff,#31203e); }
|
|
46
|
+
:root[data-accent="amber"] { --accent: light-dark(#835812,#ebc78b); --on-accent: light-dark(#fff,#342708); }
|
|
47
|
+
* { box-sizing: border-box; }
|
|
48
|
+
[hidden] { display: none !important; }
|
|
49
|
+
html, body { margin: 0; height: 100%; }
|
|
50
|
+
body { background: var(--library); color: var(--ink); font: 15px/1.6 var(--ui); overflow: hidden; }
|
|
51
|
+
button, textarea, select { color: inherit; font: inherit; }
|
|
52
|
+
button, select { touch-action: manipulation; }
|
|
53
|
+
button {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
gap: 7px;
|
|
58
|
+
border: 0;
|
|
59
|
+
--corner-radius: 6px;
|
|
60
|
+
background: transparent;
|
|
61
|
+
padding: 5px 8px;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
font-size: 13px;
|
|
64
|
+
line-height: 1.45;
|
|
65
|
+
}
|
|
66
|
+
button:enabled:hover { background: var(--inset); }
|
|
67
|
+
button:disabled { color: var(--muted); cursor: default; }
|
|
68
|
+
select:enabled:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
69
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
70
|
+
.sr-only, .symbols { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; padding: 0; white-space: nowrap; }
|
|
71
|
+
.icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round; stroke-linecap: round; }
|
|
72
|
+
.desk { height: 100%; height: 100dvh; display: flex; }
|
|
73
|
+
.library { width: clamp(220px,17.5vw,260px); flex: none; min-height: 0; display: flex; flex-direction: column; }
|
|
74
|
+
.library-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 15px 12px 20px; min-height: 64px; }
|
|
75
|
+
.library-head h2 { margin: 0; }
|
|
76
|
+
.wordmark { display: block; width: 110px; height: 28px; object-fit: contain; }
|
|
77
|
+
.quiet-button { color: var(--muted); font-size: 12px; }
|
|
78
|
+
.library button:enabled:hover { background: var(--selected); }
|
|
79
|
+
.new-chat { justify-content: flex-start; gap: 11px; margin: 0 12px; padding: 8px 10px; color: var(--secondary); font-size: 14px; }
|
|
80
|
+
#search-shortcut { margin-left: auto; color: var(--metadata); font-size: 11px; }
|
|
81
|
+
#export-chat { margin-bottom: 6px; font-size: 13px; }
|
|
82
|
+
#chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 12px 14px; }
|
|
83
|
+
.list-group + .list-group { margin-top: 18px; }
|
|
84
|
+
.list-heading { margin: 0 0 5px; padding: 0 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
|
|
85
|
+
.chat-link { display: flex; justify-content: flex-start; width: 100%; align-items: baseline; gap: 8px; text-align: left; padding: 7px 10px; color: var(--secondary); font-size: 14px; }
|
|
86
|
+
.chat-link[aria-current="page"] { background: var(--selected); color: var(--ink); font-weight: 500; }
|
|
87
|
+
.list-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
88
|
+
.list-time { color: var(--metadata); font: 11px/1.5 var(--mono); white-space: nowrap; }
|
|
89
|
+
.select-wrap { position: relative; display: inline-flex; min-width: 0; }
|
|
90
|
+
.select-wrap::after { content: ""; position: absolute; right: 9px; top: calc(50% - 4px); border-bottom: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); width: 5px; height: 5px; transform: rotate(45deg); pointer-events: none; }
|
|
91
|
+
select { appearance: none; border: 0; --corner-radius: 5px; padding: 5px 22px 5px 6px; background: transparent; font-size: 13px; cursor: pointer; }
|
|
92
|
+
select option { color: var(--ink); background: var(--surface); }
|
|
93
|
+
.workspace { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid var(--rule); overflow: hidden; }
|
|
94
|
+
.header { flex: none; border-bottom: 1px solid var(--rule); min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 0 23px; }
|
|
95
|
+
.title-area { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
|
|
96
|
+
.doc-icon { width: 15px; height: 15px; color: var(--muted); }
|
|
97
|
+
#chat-title { min-width: 0; margin: 0; font: 550 16px/1.4 var(--ui); letter-spacing: -.02em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
|
|
98
|
+
.header-actions { display: flex; align-items: center; gap: 6px; color: var(--secondary); }
|
|
99
|
+
.header button { min-height: 32px; font-size: 13px; white-space: nowrap; }
|
|
100
|
+
#inspect[aria-expanded="true"] { background: var(--inset); color: var(--ink); }
|
|
101
|
+
.open-chats { display: none; color: var(--secondary); }
|
|
102
|
+
.desk.panel-hidden .library { display: none; }
|
|
103
|
+
.desk.panel-hidden .workspace { border: 0; border-radius: 0; }
|
|
104
|
+
.desk.panel-hidden .open-chats { display: inline-flex; }
|
|
105
|
+
.stage { flex: 1; min-height: 0; display: flex; position: relative; }
|
|
106
|
+
.document { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
|
|
107
|
+
#reader { min-height: 0; flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
|
|
108
|
+
.column { width: min(720px, calc(100% - 64px)); margin-inline: auto; }
|
|
109
|
+
.transcript { padding-block: 32px 36px; }
|
|
110
|
+
.empty { margin: 0; color: var(--secondary); font: 500 clamp(17px,2vw,23px)/1.35 var(--ui); letter-spacing: -.035em; }
|
|
111
|
+
#entries { display: grid; gap: 28px; }
|
|
112
|
+
.message { min-width: 0; animation: appear 120ms ease-out; }
|
|
113
|
+
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
|
|
114
|
+
@media (prefers-reduced-motion: reduce) { .message { animation: none; } }
|
|
115
|
+
article.message { padding-block: 2px; }
|
|
116
|
+
.message.me { --corner-radius: 13px; padding: 15px 18px; background: var(--library); }
|
|
117
|
+
.message.me .prose { margin-top: 4px; }
|
|
118
|
+
.message[data-participant] .speaker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--model-fill); }
|
|
119
|
+
.speaker { display: inline-flex; align-items: center; gap: 7px; }
|
|
120
|
+
.byline { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
|
|
121
|
+
.speaker, .stamp, .elapsed, .code-tools { font: 400 11px/1.5 var(--mono); letter-spacing: .08em; }
|
|
122
|
+
.speaker { color: var(--ink); font: 620 13px/1.55 var(--ui); letter-spacing: -.01em; }
|
|
123
|
+
.stamp, .elapsed { color: var(--metadata); letter-spacing: 0; }
|
|
124
|
+
.reply-choice { color: var(--metadata); font-size: 12px; }
|
|
125
|
+
.reply-choice:empty { display: none; }
|
|
126
|
+
.reply-workflow { color: var(--secondary); font-size: 12px; font-weight: 550; }
|
|
127
|
+
.reply-workflow:empty { display: none; }
|
|
128
|
+
.copy-answer { margin-left: auto; padding: 0 3px; font-size: 11px; color: var(--metadata); }
|
|
129
|
+
.manual-copy { margin-top: 8px; }
|
|
130
|
+
.manual-copy textarea { min-height: 70px; border: 1px solid var(--edge); padding: 7px; font: 13px/1.5 var(--mono); }
|
|
131
|
+
@media (hover: hover) and (pointer: fine) {
|
|
132
|
+
.message:not(:hover):not(:focus-within) .copy-answer { opacity: 0; }
|
|
133
|
+
}
|
|
134
|
+
.round-stamp { color: var(--metadata); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
135
|
+
.round-stamp:empty { display: none; }
|
|
136
|
+
.discussion-outcome { padding-top: 11px; border-top: 1px solid var(--rule); }
|
|
137
|
+
.outcome-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
|
|
138
|
+
.outcome-head strong { font-size: 13px; font-weight: 600; }
|
|
139
|
+
.discussion-outcome p { margin: 3px 0 0; font-family: var(--sans); overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
140
|
+
.discussion-status { margin: 0 3px 8px; color: var(--secondary); font-size: 13px; }
|
|
141
|
+
.prose, .failure { margin-top: 7px; overflow-wrap: anywhere; }
|
|
142
|
+
.prose { font: 15.5px/1.65 var(--sans); }
|
|
143
|
+
:root[data-font="mono"] .prose, :root[data-theme="codex"][data-font="theme"] .prose { font-size: 14px; }
|
|
144
|
+
:root[data-font="serif"] .prose { font-size: 17px; }
|
|
145
|
+
.prose:empty, .failure:empty { display: none; }
|
|
146
|
+
.prose > :first-child { margin-top: 0; }
|
|
147
|
+
.prose > :last-child { margin-bottom: 0; }
|
|
148
|
+
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .code-block, .prose .table-scroll { margin: 0 0 .8em; }
|
|
149
|
+
.prose p:last-child { margin-bottom: 0; }
|
|
150
|
+
.prose ul, .prose ol { padding-left: 1.55em; }
|
|
151
|
+
.prose li + li { margin-top: .2em; }
|
|
152
|
+
.prose li > p { margin: .35em 0; }
|
|
153
|
+
.prose blockquote { margin-left: 0; padding-left: 12px; border-left: 1px solid var(--muted); }
|
|
154
|
+
.prose :is(h1,h2,h3,h4,h5,h6) {
|
|
155
|
+
font: 600 16px/1.5 var(--sans);
|
|
156
|
+
margin: 1em 0 .35em;
|
|
157
|
+
overflow: visible;
|
|
158
|
+
white-space: normal;
|
|
159
|
+
}
|
|
160
|
+
.prose h1 { font-size: 20px; }
|
|
161
|
+
.prose h2 { font-size: 18px; }
|
|
162
|
+
.prose a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
|
|
163
|
+
.prose hr { margin: 16px 0; border: 0; border-top: 1px solid var(--rule); }
|
|
164
|
+
.prose code, .error-log { font: 400 13px/1.6 var(--mono); }
|
|
165
|
+
.prose :not(pre) > code { background: var(--inset); --corner-radius: 2px; padding: 1px 3px; }
|
|
166
|
+
.code-block {
|
|
167
|
+
background: var(--inset);
|
|
168
|
+
border: 1px solid var(--rule);
|
|
169
|
+
--corner-radius: 4px;
|
|
170
|
+
min-width: 0;
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
}
|
|
173
|
+
.code-tools { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px 0; min-height: 27px; color: var(--muted); }
|
|
174
|
+
.copy { font: inherit; padding: 0 2px; }
|
|
175
|
+
.code-block pre { margin: 0; padding: 3px 12px 11px; overflow-x: auto; tab-size: 4; }
|
|
176
|
+
.code-block code { display: block; white-space: pre; overflow-wrap: normal; }
|
|
177
|
+
.hljs-comment, .hljs-quote { color: var(--muted); font-style: italic; }
|
|
178
|
+
.hljs-keyword, .hljs-literal, .hljs-title, .hljs-strong, .hljs-selector-tag { font-weight: bold; }
|
|
179
|
+
.hljs-string, .hljs-regexp, .hljs-emphasis { font-style: italic; }
|
|
180
|
+
.hljs-number, .hljs-symbol, .hljs-built_in { text-decoration: underline; text-decoration-color: var(--rule); }
|
|
181
|
+
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
|
|
182
|
+
.table-scroll table { border-collapse: collapse; table-layout: auto; overflow-wrap: normal; word-break: normal; }
|
|
183
|
+
.table-scroll :is(th, td) {
|
|
184
|
+
padding: 8px 14px;
|
|
185
|
+
border-bottom: 1px solid var(--rule);
|
|
186
|
+
text-align: start;
|
|
187
|
+
vertical-align: top;
|
|
188
|
+
line-height: 1.5;
|
|
189
|
+
}
|
|
190
|
+
.table-scroll :is(th, td):first-child { padding-left: 0; }
|
|
191
|
+
.table-scroll :is(th, td):last-child { padding-right: 0; }
|
|
192
|
+
.table-scroll th { font-weight: 600; vertical-align: bottom; }
|
|
193
|
+
.table-scroll .narrative-cell { min-inline-size: 22ch; }
|
|
194
|
+
.table-scroll .quantity, .table-scroll .compact-heading { white-space: nowrap; }
|
|
195
|
+
.table-scroll .quantity { font-variant-numeric: tabular-nums; }
|
|
196
|
+
.table-scroll .numeric-column, .table-scroll .align-right { text-align: right; }
|
|
197
|
+
.table-scroll .align-left { text-align: left; }
|
|
198
|
+
.table-scroll .align-center { text-align: center; }
|
|
199
|
+
.failure p { margin: 0; white-space: pre-wrap; }
|
|
200
|
+
.failure details { margin-top: 4px; color: var(--muted); }
|
|
201
|
+
.failure summary { font: 11px/1.6 var(--mono); letter-spacing: .08em; cursor: pointer; }
|
|
202
|
+
.error-log { white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0 0; max-height: 15em; overflow-y: auto; }
|
|
203
|
+
.sources { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; margin-top: 9px; font-size: 12px; color: var(--secondary); }
|
|
204
|
+
.sources:empty { display: none; }
|
|
205
|
+
.source-label { color: var(--metadata); }
|
|
206
|
+
.source-results { min-width: 0; max-width: 100%; }
|
|
207
|
+
.source-results[open] { flex-basis: 100%; }
|
|
208
|
+
.source-results summary { cursor: pointer; }
|
|
209
|
+
.source-results ul { margin: 5px 0 0; padding-left: 18px; }
|
|
210
|
+
.source-results li + li { margin-top: 3px; }
|
|
211
|
+
.sources a { color: inherit; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--edge); }
|
|
212
|
+
.sources a:hover { text-decoration-color: currentColor; }
|
|
213
|
+
.code-block { --corner-radius: 10px; }
|
|
214
|
+
.code-tools { padding: 7px 12px 0; }
|
|
215
|
+
.code-block pre { padding: 5px 13px 12px; }
|
|
216
|
+
.composer { flex: none; padding: 10px 0 max(14px,env(safe-area-inset-bottom)); }
|
|
217
|
+
#compose-form { container-type: inline-size; padding: 12px; border: 1px solid var(--edge); --corner-radius: 18px; background: var(--surface); }
|
|
218
|
+
#compose-form:focus-within { border-color: var(--muted); }
|
|
219
|
+
#compose-form:has(textarea:focus-visible) { border-color: var(--accent); }
|
|
220
|
+
textarea {
|
|
221
|
+
display: block; width: 100%; min-height: 42px; max-height: 208px; margin: 0; padding: 7px 5px 9px;
|
|
222
|
+
resize: none; border: 0; --corner-radius: 5px; background: transparent; font: 15px/24px var(--sans);
|
|
223
|
+
}
|
|
224
|
+
textarea:focus-visible { outline: none; }
|
|
225
|
+
textarea::placeholder { color: var(--muted); opacity: 1; }
|
|
226
|
+
.compose-toolbar, .participants-tools, .submit-tools { display: flex; align-items: center; }
|
|
227
|
+
.compose-toolbar { justify-content: flex-start; gap: 8px; margin-top: 6px; }
|
|
228
|
+
.participants-tools, .submit-tools { gap: 3px; }
|
|
229
|
+
.model-toggle { min-height: 32px; gap: 6px; font-size: 13px; color: var(--metadata); }
|
|
230
|
+
.check { width: 8px; height: 8px; flex: none; border: 1px solid currentColor; border-radius: 50%; }
|
|
231
|
+
.model-toggle[aria-pressed="true"] { color: var(--secondary); }
|
|
232
|
+
.model-toggle[aria-pressed="true"] .check { background: var(--model); border-color: var(--model); }
|
|
233
|
+
.submit-tools button { min-height: 31px; padding-inline: 10px; }
|
|
234
|
+
.submit-tools .send { background: var(--accent); color: var(--on-accent); --corner-radius: 10px; padding: 5px 10px 5px 13px; gap: 4px; font-weight: 500; }
|
|
235
|
+
.send .icon { width: 14px; height: 14px; stroke-width: 2; }
|
|
236
|
+
.submit-tools .send:enabled:hover { background: color-mix(in srgb,var(--accent) 86%,var(--on-accent)); }
|
|
237
|
+
.send:disabled { background: var(--inset); color: var(--muted); }
|
|
238
|
+
#stop:disabled { color: var(--muted); }
|
|
239
|
+
.composer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 6px; min-height: 25px; padding: 5px 4px 0; color: var(--metadata); font-size: 11px; }
|
|
240
|
+
#char-count { font-variant-numeric: tabular-nums; }
|
|
241
|
+
.history-notice, .feedback { color: var(--secondary); font-size: 13px; margin: 0 3px 9px; }
|
|
242
|
+
.history-notice { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
|
|
243
|
+
.history-notice button { padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
|
|
244
|
+
.inspector {
|
|
245
|
+
align-self: stretch; flex: 0 0 clamp(254px,19vw,290px); min-width: 0; max-height: 100%; overflow-y: auto;
|
|
246
|
+
margin: 0; padding: 0 18px; border-left: 1px solid var(--rule); background: var(--library);
|
|
247
|
+
}
|
|
248
|
+
.inspector-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 0 13px; border-bottom: 1px solid var(--rule); }
|
|
249
|
+
.inspector h2, .inspector h3 { margin: 0; line-height: 1.4; }
|
|
250
|
+
.inspector h2 { color: var(--secondary); font-size: 14px; font-weight: 500; }
|
|
251
|
+
.inspector .quiet-button { padding: 3px 4px; }
|
|
252
|
+
.model-section { padding: 14px 0 16px; }
|
|
253
|
+
.model-section + .model-section { border-top: 1px solid var(--rule); }
|
|
254
|
+
.model-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
|
|
255
|
+
.model-section h3 { font-size: 16px; letter-spacing: -.02em; font-weight: 600; }
|
|
256
|
+
.participant-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--metadata); font-size: 13px; min-height: 28px; padding: 2px 4px; }
|
|
257
|
+
.track { position: relative; display: inline-block; width: 21px; height: 12px; border: 1px solid var(--muted); border-radius: 8px; }
|
|
258
|
+
.track::after { content: ""; position: absolute; width: 6px; height: 6px; inset: 2px auto auto 2px; border-radius: 50%; background: var(--muted); }
|
|
259
|
+
.participant-switch[aria-checked="true"] .track { border-color: var(--model); background: var(--model); }
|
|
260
|
+
.participant-switch[aria-checked="true"] .track::after { inset: 2px 2px auto auto; background: var(--surface); }
|
|
261
|
+
.model-field { display: grid; grid-template-columns: 69px minmax(0,1fr); align-items: center; gap: 5px; min-height: 38px; }
|
|
262
|
+
.model-field label { color: var(--secondary); font-size: 13px; }
|
|
263
|
+
.model-field .select-wrap { justify-self: stretch; }
|
|
264
|
+
.model-field select { background: var(--surface); width: 100%; min-width: 0; min-height: 32px; border: 1px solid var(--rule); --corner-radius: 6px; padding: 5px 20px 5px 8px; font-size: 13px; }
|
|
265
|
+
.model-field select:enabled:hover { background: var(--inset); text-decoration: none; }
|
|
266
|
+
.catalog-detail { margin: 7px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
|
|
267
|
+
.search-setting { display: flex; align-items: center; justify-content: space-between; min-height: 41px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--secondary); }
|
|
268
|
+
#web-search { --model: var(--secondary); }
|
|
269
|
+
.account-usage { margin-top: 11px; }
|
|
270
|
+
.plan-head, .usage-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
|
|
271
|
+
.plan-head h4 { margin: 0; color: var(--secondary); font-size: 12px; font-weight: 550; }
|
|
272
|
+
.usage-asof, .usage-reset { color: var(--metadata); font-size: 11px; }
|
|
273
|
+
.usage-asof, .percentage { white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
274
|
+
.readings { min-height: 34px; }
|
|
275
|
+
.usage-window { margin-top: 6px; }
|
|
276
|
+
.usage-caption { color: var(--secondary); font-size: 12px; }
|
|
277
|
+
.usage-caption span:first-child { overflow-wrap: anywhere; }
|
|
278
|
+
.percentage { color: var(--ink); }
|
|
279
|
+
.usage-bar { display: block; width: 100%; height: 4px; margin-top: 3px; appearance: none; border: 0; border-radius: 4px; background: var(--rule); color: var(--metadata); overflow: hidden; }
|
|
280
|
+
.usage-bar::-webkit-progress-bar { border-radius: 4px; background: var(--rule); }
|
|
281
|
+
.usage-bar::-webkit-progress-value { border-radius: 4px; background: var(--metadata); }
|
|
282
|
+
.usage-bar::-moz-progress-bar { border-radius: 4px; background: var(--metadata); }
|
|
283
|
+
.usage-reset { display: block; margin-top: 3px; }
|
|
284
|
+
.usage-note { color: var(--metadata); font-size: 12px; line-height: 1.45; margin: 4px 0 0; overflow-wrap: anywhere; }
|
|
285
|
+
.inspector-foot { border-top: 1px solid var(--rule); padding: 5px 0; }
|
|
286
|
+
.inspector-foot button { min-height: 30px; padding-inline: 0; color: var(--secondary); }
|
|
287
|
+
.inspector-foot button:enabled:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
|
|
288
|
+
|
|
289
|
+
@media (max-width: 1100px) {
|
|
290
|
+
.inspector { position: absolute; z-index: 1; inset: 0 0 0 auto; width: min(294px,calc(100% - 22px)); border-left-color: var(--edge); }
|
|
291
|
+
}
|
|
292
|
+
@media (max-width: 760px) {
|
|
293
|
+
.header { gap: 6px; padding-inline: 12px; }
|
|
294
|
+
.doc-icon { display: none; }
|
|
295
|
+
.key-hint { display: none; }
|
|
296
|
+
|
|
297
|
+
}
|
|
298
|
+
@media (max-width: 699px) {
|
|
299
|
+
.desk:not(.mobile-open) .library { display: none; }
|
|
300
|
+
.desk:not(.mobile-open) .open-chats { display: inline-flex; }
|
|
301
|
+
.library { position: fixed; z-index: 2; inset: 0 auto 0 0; width: min(270px,calc(100% - 38px)); border-right: 1px solid var(--edge); background: var(--library); height: 100%; height: 100dvh; }
|
|
302
|
+
.desk:not(.panel-hidden) .workspace { pointer-events: none; }
|
|
303
|
+
.header { min-height: 56px; }
|
|
304
|
+
.header button { padding: 5px; }
|
|
305
|
+
#chat-title { font-size: 15px; }
|
|
306
|
+
.column { width: min(720px, calc(100% - 32px)); }
|
|
307
|
+
.transcript { padding-block: 18px 24px; }
|
|
308
|
+
.composer { padding-bottom: max(5px,env(safe-area-inset-bottom)); }
|
|
309
|
+
textarea { font-size: 16px; }
|
|
310
|
+
}
|
|
311
|
+
@media (max-height: 510px) {
|
|
312
|
+
.composer { padding-block: 3px; }
|
|
313
|
+
textarea { max-height: 33dvh; }
|
|
314
|
+
}
|
|
315
|
+
.choice-summary { display: none; }
|
|
316
|
+
.library-foot { border-top: 1px solid var(--rule); margin: 4px 12px 0; padding: 7px 0 max(12px,env(safe-area-inset-bottom)); }
|
|
317
|
+
.library-foot .new-chat { width: 100%; margin: 0; font-size: 13px; }
|
|
318
|
+
.document-heading { min-width: 0; }
|
|
319
|
+
#chat-stats { display: block; color: var(--metadata); font: 10px/1.5 var(--mono); }
|
|
320
|
+
.inspector-links { border-top: 1px solid var(--rule); padding-block: 7px; }
|
|
321
|
+
.inspector-links button { width: 100%; min-height: 36px; justify-content: flex-start; padding: 5px 2px; color: var(--secondary); }
|
|
322
|
+
.inspector-links span { margin-left: auto; color: var(--metadata); }
|
|
323
|
+
#utility-choice { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
324
|
+
.summary-marker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--metadata); font: 11px/1.55 var(--mono); }
|
|
325
|
+
.summary-marker::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
|
|
326
|
+
.submit-tools { margin-left: auto; }
|
|
327
|
+
#stop { color: var(--ink); font-weight: 500; }
|
|
328
|
+
@media (max-width: 699px) {
|
|
329
|
+
#chat-stats { font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }
|
|
330
|
+
.header-actions { flex: none; }
|
|
331
|
+
.title-area { gap: 4px; }
|
|
332
|
+
#compose-form { padding: 8px 10px; }
|
|
333
|
+
.model-toggle, .submit-tools button { min-height: 34px; }
|
|
334
|
+
.compose-toolbar { row-gap: 5px; }
|
|
335
|
+
.message.me { padding: 12px 14px; }
|
|
336
|
+
.prose { font-size: 15px; }
|
|
337
|
+
}
|
|
338
|
+
.short-model-label { display: none; }
|
|
339
|
+
@media (max-width: 480px) {
|
|
340
|
+
.short-model-label { display: inline; }
|
|
341
|
+
.long-model-label { display: none; }
|
|
342
|
+
.header { gap: 4px; padding-inline: 8px; }
|
|
343
|
+
.header button { gap: 4px; }
|
|
344
|
+
#chat-stats { font-size: 9.5px; }
|
|
345
|
+
}
|