File size: 4,310 Bytes
5bb7ffa
 
 
 
bb1891d
5bb7ffa
 
 
bb1891d
5bb7ffa
 
d36cf5b
 
5bb7ffa
 
 
 
bb1891d
5bb7ffa
 
 
 
 
 
 
 
 
bb1891d
5bb7ffa
 
 
 
bb1891d
5bb7ffa
 
 
 
87e03d2
5bb7ffa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
  --bg: #f4f2ee; --panel: #ffffff; --ink: #1d1c1a; --muted: #6b6760; --line: #d8d4cc;
  --accent: #b4441b; --accent-ink: #ffffff; --bad: #a3261b; --tool: #2b5f8a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151413; --panel: #1f1d1b; --ink: #ece8e1; --muted: #a29d94; --line: #3a3732;
          --accent: #e0703f; --accent-ink: #151413; --bad: #ff8a7a; --tool: #7db6e8; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html { height: 100%; overflow: hidden; }
body { height: 100%; overflow-y: auto; overscroll-behavior: contain; }   /* body is the scroller: wheel scrolling also works when the Space's iframe does not scroll its document */
main { display: grid; gap: 10px; padding: 10px 12px 24px; max-width: 860px; margin: 0 auto; }
#line { margin: 0; font-size: 14px; color: var(--muted); }
#line b { color: var(--ink); }
a { color: var(--accent); }

#ask { display: grid; gap: 8px; }
textarea { width: 100%; resize: vertical; min-height: 4.2em; padding: 8px 10px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
#row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
button { font: inherit; font-weight: 600; min-height: 38px; padding: 0 16px; cursor: pointer; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 5px; }
button:disabled { opacity: .55; cursor: default; }
#stop { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
#examples { display: flex; flex-wrap: wrap; gap: 6px; }
#examples button { min-height: 28px; padding: 0 10px; font-size: 13px; font-weight: 400; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 14px; }
#examples button:hover { color: var(--accent); border-color: var(--accent); }

#status { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
#status.bad { color: var(--bad); }
#bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: -4px; }
#bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

#answer { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 8px 14px 12px; }
#answer h2 { margin: 4px 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
#short { margin: 4px 0 8px; font-size: 20px; font-weight: 600; }
#short:empty { display: none; }
#report { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow-y: auto; }   /* the answer scrolls by itself too */

#trail { display: grid; gap: 6px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 13.5px; }
.step > summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.step .n { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.2em; }
.step .tool { color: var(--tool); font-weight: 600; }
.step .arg { overflow-wrap: anywhere; }
.step pre { margin: 6px 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 16em; overflow: auto; color: var(--muted); }
.think { color: var(--muted); font-size: 13px; border-left: 2px solid var(--line); padding: 2px 10px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9em; overflow: auto; }
.live { border-style: dashed; }

#more { color: var(--muted); font-size: 13px; }
#more p { margin: 6px 0; }
summary { cursor: pointer; }
#wipe { min-height: 30px; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--line); }
code { font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:where(button, textarea, summary, a, [tabindex]):focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }