@yanzc/claude-pro 0.12.0 → 0.14.0
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.
- package/README.md +8 -7
- package/package.json +1 -1
- package/src/agents.js +0 -52
- package/src/commands.js +111 -36
- package/src/config.js +16 -0
- package/src/gateway.js +33 -0
- package/src/providers.js +25 -6
- package/src/remote.js +11 -3
- package/src/session.js +12 -1
- package/src/ui/repl.js +80 -30
- package/src/web/api.js +146 -57
- package/src/web/app.css +303 -177
- package/src/web/app.js +558 -113
- package/src/web/data.js +21 -6
- package/src/web/host.js +2 -4
- package/src/web/login.html +3 -2
- package/src/web/logo.svg +1 -0
- package/src/web/page.html +7 -4
- package/src/web/remote-access.js +24 -0
- package/src/web/server.js +32 -3
package/src/web/app.css
CHANGED
|
@@ -1,200 +1,242 @@
|
|
|
1
|
+
/* claude-pro web console. Warm neutrals with Claude's terracotta; one radius, shadow and type scale throughout. */
|
|
1
2
|
:root {
|
|
2
|
-
--bg: #
|
|
3
|
-
--text: #
|
|
4
|
-
--accent: #
|
|
5
|
-
--ok: #
|
|
6
|
-
--code-bg: #
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
3
|
+
--bg: #f6f5f1; --surface: #fff; --surface-2: #f5f3ef; --surface-3: #eeebe5; --line: #ebe7e0; --line-strong: #ddd8cf;
|
|
4
|
+
--text: #1f1d1a; --text-2: #3e3a35; --muted: #77716a; --faint: #a69f96;
|
|
5
|
+
--accent: #c96442; --accent-hover: #b4552f; --accent-soft: #f8ece6; --accent-text: #a64d2b; --accent-line: #ecc8b8;
|
|
6
|
+
--ok: #2f855a; --ok-soft: #e5f3ea; --warn: #b7791f; --warn-soft: #fbf1df; --danger: #c8372d; --danger-soft: #fbeae8;
|
|
7
|
+
--code-bg: #f4f2ed; --term-bg: #fbfaf8;
|
|
8
|
+
--shadow-sm: 0 1px 2px rgba(31, 29, 26, .05);
|
|
9
|
+
--shadow: 0 1px 2px rgba(31, 29, 26, .04), 0 3px 12px rgba(31, 29, 26, .045);
|
|
10
|
+
--shadow-lg: 0 18px 46px rgba(31, 29, 26, .15), 0 3px 10px rgba(31, 29, 26, .06);
|
|
11
|
+
--radius: 12px; --radius-sm: 9px;
|
|
12
|
+
--rc-fg: #1f1d1a; --rc-bg: #fff;
|
|
13
|
+
--side-bg: #f3f1ec; --main-bg: #fbfaf8; --bubble: #efebe4;
|
|
14
|
+
--diff-add-bg: #e6f7ea; --diff-add-fg: #1a6b34; --diff-del-bg: #fdecea; --diff-del-fg: #a3222a; --diff-add-word: #b6ebc3; --diff-del-word: #f8c4c0;
|
|
15
|
+
--hover: rgba(70, 55, 40, .055); --active: rgba(70, 55, 40, .09);
|
|
16
|
+
--font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
|
|
17
|
+
--mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Microsoft YaHei UI", monospace;
|
|
10
18
|
color-scheme: light;
|
|
11
19
|
}
|
|
12
20
|
:root[data-theme="dark"] {
|
|
13
|
-
--bg: #
|
|
14
|
-
--text: #
|
|
15
|
-
--accent: #
|
|
16
|
-
--ok: #
|
|
17
|
-
--code-bg: #
|
|
18
|
-
--
|
|
21
|
+
--bg: #1a1917; --surface: #242320; --surface-2: #2b2926; --surface-3: #33312d; --line: #34322e; --line-strong: #45423c;
|
|
22
|
+
--text: #ece9e3; --text-2: #d2cdc5; --muted: #a29c93; --faint: #77726a;
|
|
23
|
+
--accent: #d9805f; --accent-hover: #e6926f; --accent-soft: rgba(217, 128, 95, .15); --accent-text: #eb9b7b; --accent-line: rgba(217, 128, 95, .45);
|
|
24
|
+
--ok: #6fcf97; --ok-soft: rgba(111, 207, 151, .13); --warn: #f0be52; --warn-soft: rgba(240, 190, 82, .13); --danger: #f08279; --danger-soft: rgba(240, 130, 121, .13);
|
|
25
|
+
--code-bg: #2a2825; --term-bg: #1f1e1c;
|
|
26
|
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
|
|
27
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .18);
|
|
28
|
+
--shadow-lg: 0 18px 46px rgba(0, 0, 0, .5), 0 3px 10px rgba(0, 0, 0, .3);
|
|
29
|
+
--rc-fg: #ece9e3; --rc-bg: #242320;
|
|
30
|
+
--side-bg: #1e1d1b; --main-bg: #1a1917; --bubble: #312f2b;
|
|
31
|
+
--diff-add-bg: rgba(46, 160, 67, .2); --diff-add-fg: #7ee787; --diff-del-bg: rgba(248, 81, 73, .2); --diff-del-fg: #ffa198; --diff-add-word: rgba(46, 160, 67, .45); --diff-del-word: rgba(248, 81, 73, .45);
|
|
32
|
+
--hover: rgba(255, 255, 255, .055); --active: rgba(255, 255, 255, .09);
|
|
19
33
|
color-scheme: dark;
|
|
20
34
|
}
|
|
21
35
|
* { box-sizing: border-box; }
|
|
36
|
+
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
|
|
37
|
+
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
38
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
39
|
+
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
|
|
40
|
+
::-webkit-scrollbar-thumb:hover { background-color: var(--faint); }
|
|
41
|
+
::selection { background: var(--accent-soft); }
|
|
22
42
|
html, body { margin: 0; height: 100%; }
|
|
23
|
-
body { background: var(--bg); color: var(--text); font: 14px/1.
|
|
43
|
+
body { background: var(--main-bg); color: var(--text); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
|
|
24
44
|
a { color: var(--accent-text); text-decoration: none; }
|
|
25
45
|
a:hover { text-decoration: underline; }
|
|
46
|
+
:is(a, button, summary, [role=button]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
26
47
|
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
|
|
27
|
-
code { padding: 1px
|
|
28
|
-
h1 { font-size:
|
|
29
|
-
h2 { font-size:
|
|
30
|
-
h3 { font-size: 14px; margin: 0 0 6px; }
|
|
31
|
-
.sub { color: var(--muted); font-size:
|
|
48
|
+
code { padding: 1px 6px; border-radius: 5px; background: var(--code-bg); border: 1px solid var(--line); }
|
|
49
|
+
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 4px; font-weight: 700; letter-spacing: -.01em; }
|
|
50
|
+
h2 { font-size: 15.5px; margin: 0; font-weight: 650; letter-spacing: -.005em; }
|
|
51
|
+
h3 { font-size: 14px; margin: 0 0 6px; font-weight: 650; }
|
|
52
|
+
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
|
|
32
53
|
.hidden { display: none !important; }
|
|
33
54
|
|
|
34
55
|
/* layout: the sidebar (工作区) and the main pane */
|
|
35
|
-
.app { display: grid; grid-template-columns:
|
|
56
|
+
.app { display: grid; grid-template-columns: 276px minmax(0, 1fr); height: 100vh; height: 100dvh; }
|
|
36
57
|
.drawer-close { display: none !important; }
|
|
37
58
|
.composer-left, .composer-right { display: flex; align-items: center; gap: 2px; min-width: 0; }
|
|
38
59
|
.side { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--side-bg); border-right: 1px solid var(--line); padding: 14px 12px 10px; }
|
|
39
|
-
.brand { display: flex; align-items: center; gap:
|
|
40
|
-
.brand-logo { width: 28px; height: 28px; border-radius:
|
|
41
|
-
.brand strong { font-size:
|
|
42
|
-
.brand-tag { font-size:
|
|
60
|
+
.brand { display: flex; align-items: center; gap: 9px; padding: 3px 6px 16px; }
|
|
61
|
+
.brand-logo { display: block; width: 28px; height: 28px; border-radius: 7px; flex: none; box-shadow: 0 1px 3px rgba(140, 55, 25, .3); }
|
|
62
|
+
.brand strong { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; }
|
|
63
|
+
.brand-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .7px; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); }
|
|
43
64
|
.brand-release { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; }
|
|
44
|
-
.brand-ver { color: var(--faint); font-size: 11.5px; }
|
|
45
|
-
.brand-update { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius:
|
|
46
|
-
.brand-update:hover:not(:disabled) { background: var(--
|
|
65
|
+
.brand-ver { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
|
|
66
|
+
.brand-update { width: 22px; height: 22px; padding: 0; border: 1px solid var(--accent-line); border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; }
|
|
67
|
+
.brand-update:hover:not(:disabled) { background: var(--accent); color: #fff; }
|
|
47
68
|
.brand-update:disabled { opacity: .65; cursor: wait; }
|
|
48
|
-
.side-new { display: flex; align-items: center; justify-content: center; gap:
|
|
49
|
-
.side-new
|
|
69
|
+
.side-new { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm); margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
|
|
70
|
+
.side-new svg { color: var(--accent); }
|
|
71
|
+
.side-new:hover { text-decoration: none; border-color: var(--accent-line); box-shadow: var(--shadow); }
|
|
72
|
+
.side-new.active { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
50
73
|
.side-nav { display: grid; gap: 1px; }
|
|
51
74
|
.side-nav a, .side-more > summary { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; cursor: pointer; list-style: none; }
|
|
75
|
+
.side-nav a svg { color: var(--muted); flex: none; }
|
|
52
76
|
.side-more > summary::-webkit-details-marker { display: none; }
|
|
53
77
|
.side-nav a:hover, .side-more > summary:hover { background: var(--hover); text-decoration: none; }
|
|
54
|
-
.side-nav a.active { background: var(--
|
|
78
|
+
.side-nav a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
|
|
79
|
+
.side-nav a.active svg { color: var(--accent-text); }
|
|
55
80
|
.side-more a { padding-left: 37px; font-size: 13.5px; }
|
|
56
|
-
.ws-head { display: flex; align-items: center; justify-content: space-between; padding:
|
|
81
|
+
.ws-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 6px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
|
|
57
82
|
.ws-tools { display: flex; gap: 2px; }
|
|
58
|
-
.ws-tools button, .ws-tools a { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius:
|
|
83
|
+
.ws-tools button, .ws-tools a { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--faint); cursor: pointer; }
|
|
59
84
|
.ws-tools button:hover, .ws-tools a:hover { background: var(--hover); color: var(--text); }
|
|
60
|
-
.ws-search { margin: 0 4px 6px; font-size: 13px; padding: 6px
|
|
61
|
-
.ws { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
|
|
85
|
+
.ws-search { margin: 0 4px 6px; font-size: 13px; padding: 6px 10px; }
|
|
86
|
+
.ws { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px 6px; }
|
|
62
87
|
.ws-empty { color: var(--faint); font-size: 13px; padding: 10px; }
|
|
63
|
-
.ws-group { margin-bottom:
|
|
64
|
-
.ws-folder { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; font-size:
|
|
88
|
+
.ws-group { margin-bottom: 6px; }
|
|
89
|
+
.ws-folder { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
|
|
65
90
|
.ws-folder:hover { background: var(--hover); }
|
|
66
91
|
.ws-folder-row { position: relative; }
|
|
67
92
|
.ws-folder-row:hover .ws-folder { background: var(--hover); }
|
|
68
93
|
.ws-add { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; opacity: 0; }
|
|
69
94
|
.ws-add svg { width: 16px; height: 16px; }
|
|
70
95
|
.ws-folder-row:hover .ws-add, .ws-add:focus-visible { opacity: 1; }
|
|
71
|
-
.ws-add:hover, .ws-pmenu:hover { background: var(--
|
|
96
|
+
.ws-add:hover, .ws-pmenu:hover { background: var(--active); color: var(--text); }
|
|
72
97
|
.ws-pmenu { position: absolute; top: 50%; right: 32px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; opacity: 0; }
|
|
73
98
|
.ws-pmenu svg { width: 16px; height: 16px; }
|
|
74
99
|
.ws-folder-row:hover .ws-pmenu, .ws-pmenu:focus-visible, .ws-pmenu[aria-expanded=true] { opacity: 1; }
|
|
75
|
-
.ws-pmenu[aria-expanded=true] { background: var(--
|
|
100
|
+
.ws-pmenu[aria-expanded=true] { background: var(--active); color: var(--text); }
|
|
76
101
|
.ws-folder-row:hover .ws-count, .ws-folder-row:has(.ws-pmenu[aria-expanded=true]) .ws-count { visibility: hidden; }
|
|
77
102
|
@media (hover: none) { .ws-add, .ws-pmenu { opacity: .7; } .ws-folder-row .ws-count { margin-right: 52px; } }
|
|
78
|
-
.ws-folder svg { color: var(--
|
|
103
|
+
.ws-folder svg { color: var(--faint); flex: none; }
|
|
79
104
|
.ws-folder span:not(.ws-count) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
80
|
-
.ws-count { min-width: 18px; padding: 0
|
|
105
|
+
.ws-count { min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
|
|
81
106
|
.ws-row { position: relative; }
|
|
82
|
-
.ws-item { display: flex; align-items: center; gap: 7px; padding:
|
|
107
|
+
.ws-item { display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 34px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; position: relative; transition: background .12s; }
|
|
83
108
|
.ws-row:hover .ws-item, .ws-row:focus-within .ws-item, .ws-row:has(.ws-menu[aria-expanded=true]) .ws-item { background: var(--hover); text-decoration: none; }
|
|
84
|
-
.ws-row .ws-item.active { background: var(--
|
|
109
|
+
.ws-row .ws-item.active { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
|
|
85
110
|
.ws-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
86
|
-
.ws-ago { color: var(--faint); font-size:
|
|
111
|
+
.ws-ago { color: var(--faint); font-size: 11.5px; flex: none; font-variant-numeric: tabular-nums; }
|
|
87
112
|
.ws-menu { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; opacity: 0; pointer-events: none; }
|
|
88
|
-
.ws-menu:hover, .ws-menu[aria-expanded=true] { background: var(--
|
|
113
|
+
.ws-menu:hover, .ws-menu[aria-expanded=true] { background: var(--active); color: var(--text); }
|
|
89
114
|
.ws-row:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-menu { opacity: 1; pointer-events: auto; }
|
|
90
115
|
.ws-row.has-menu:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-item { padding-right: 34px; }
|
|
91
116
|
.ws-row.has-menu:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-ago { display: none; }
|
|
92
117
|
@media (hover: none) { .ws-menu { opacity: 1; pointer-events: auto; } .ws-row.has-menu .ws-item { padding-right: 34px; } }
|
|
93
118
|
.ws-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
|
|
94
119
|
.ws-item .ws-dot { position: absolute; left: 20px; }
|
|
95
|
-
.ws-dot.busy { background: var(--
|
|
120
|
+
.ws-dot.busy { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
|
|
96
121
|
.ws-dot.ask { background: var(--danger); }
|
|
97
122
|
.ws-dot.off { background: var(--faint); }
|
|
98
|
-
.ws-more { border: 0; background: none; color: var(--
|
|
123
|
+
.ws-more { border: 0; background: none; color: var(--faint); font: inherit; font-size: 12.5px; padding: 4px 10px 4px 34px; cursor: pointer; }
|
|
99
124
|
.ws-more:hover { color: var(--text); }
|
|
125
|
+
.ws-hint { color: var(--faint); font-size: 12.5px; padding: 3px 10px 6px 34px; }
|
|
100
126
|
.side-foot { display: flex; align-items: center; gap: 4px; padding: 8px 0 0; border-top: 1px solid var(--line); margin-top: 6px; }
|
|
101
|
-
.side-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding:
|
|
127
|
+
.side-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px 7px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
|
|
102
128
|
.side-me:hover, .side-me.open, .side-me.active { background: var(--hover); }
|
|
103
|
-
.side-caret { flex: none; color: var(--faint); }
|
|
104
|
-
.
|
|
129
|
+
.side-caret { flex: none; color: var(--faint); transition: transform .15s ease; }
|
|
130
|
+
.side-me.open .side-caret { transform: rotate(180deg); }
|
|
131
|
+
.side-me-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); box-shadow: var(--shadow-sm); }
|
|
132
|
+
.side-me:hover .side-me-icon svg, .side-me.open .side-me-icon svg { transform: rotate(30deg); }
|
|
133
|
+
.side-me-icon svg { transition: transform .3s ease; }
|
|
134
|
+
.user-menu { position: absolute; z-index: 60; left: 10px; right: 10px; bottom: 58px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); animation: pop-in .12s ease; }
|
|
105
135
|
.user-menu .side-nav a { padding: 8px 10px; }
|
|
106
|
-
.menu-sep { height: 1px; margin: 5px
|
|
136
|
+
.menu-sep { height: 1px; margin: 5px 6px; background: var(--line); }
|
|
107
137
|
.user-menu .remote-links { margin-top: 0; }
|
|
108
|
-
.
|
|
109
|
-
.side-user { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
|
|
138
|
+
.side-user { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; }
|
|
110
139
|
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: 15px; flex: none; }
|
|
111
140
|
.icon-btn:hover { background: var(--hover); color: var(--text); }
|
|
112
|
-
.
|
|
141
|
+
.theme-icon .moon { display: none; }
|
|
142
|
+
:root[data-theme="dark"] .theme-icon .sun { display: none; }
|
|
143
|
+
:root[data-theme="dark"] .theme-icon .moon { display: inline; }
|
|
144
|
+
.tip { position: fixed; z-index: 60; max-width: 320px; padding: 10px 13px; border-radius: 10px; background: #2a2825; color: #f3f0eb; font-size: 12.5px; line-height: 1.6; box-shadow: 0 12px 32px rgba(0,0,0,.28); pointer-events: none; }
|
|
113
145
|
.tip strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
|
|
114
|
-
.tip-path { color: #
|
|
146
|
+
.tip-path { color: #b9b3aa; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
|
|
115
147
|
.tip-state { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
|
|
116
148
|
.main { overflow-y: auto; min-width: 0; background: var(--main-bg); }
|
|
117
|
-
.page { max-width:
|
|
149
|
+
.page { max-width: 1120px; margin: 0 auto; padding: 32px 36px 72px; }
|
|
118
150
|
.page.wide { max-width: none; padding: 14px 24px; }
|
|
119
151
|
.page.chat { max-width: none; padding: 0; height: 100%; }
|
|
120
152
|
|
|
121
153
|
/* the conversation (new, live, history): a centered column, the message box at the bottom */
|
|
122
154
|
.chat-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
123
|
-
.chat-head { display: flex; align-items: center; gap: 10px; padding:
|
|
155
|
+
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 28px 12px; border-bottom: 1px solid var(--line); background: var(--main-bg); }
|
|
124
156
|
.chat-titles { flex: 1; min-width: 0; }
|
|
125
|
-
.chat-titles h2 { font-size:
|
|
126
|
-
.chat-sub { color: var(--
|
|
157
|
+
.chat-titles h2 { font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
158
|
+
.chat-sub { color: var(--faint); font-size: 11.5px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
|
|
127
159
|
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; }
|
|
128
|
-
.chat-log { max-width:
|
|
160
|
+
.chat-log { max-width: 820px; margin: 0 auto; padding: 26px 28px 34px; display: grid; gap: 16px; }
|
|
129
161
|
.chat-empty { color: var(--faint); text-align: center; padding: 60px 0; }
|
|
130
162
|
.chat-foot { padding: 0 24px 10px; }
|
|
131
|
-
.chat-foot > * { max-width:
|
|
132
|
-
.chat-extra { display: grid; gap: 8px; margin-bottom:
|
|
163
|
+
.chat-foot > * { max-width: 820px; margin-left: auto; margin-right: auto; }
|
|
164
|
+
.chat-extra { display: grid; gap: 8px; margin-bottom: 10px; }
|
|
133
165
|
.chat-extra:empty { display: none; }
|
|
134
|
-
.chat-
|
|
135
|
-
.chat-
|
|
136
|
-
.
|
|
166
|
+
.chat-extra > :empty { display: none; }
|
|
167
|
+
.chat-composer { max-width: 820px; margin: 0 auto; width: 100%; }
|
|
168
|
+
.chat-stats { color: var(--faint); font-size: 11.5px; text-align: center; padding-top: 8px; min-height: 18px; font-variant-numeric: tabular-nums; }
|
|
169
|
+
.status-line { font-size: 13px; color: var(--muted); min-height: 0; padding: 0 8px 8px; font-variant-numeric: tabular-nums; }
|
|
137
170
|
.status-line:empty { padding: 0; }
|
|
138
|
-
.status-line .work { color: var(--accent-text); }
|
|
139
|
-
.welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 24px
|
|
140
|
-
.welcome h1 { font-size:
|
|
141
|
-
.welcome p { margin: 0; max-width:
|
|
142
|
-
.welcome-logo { width:
|
|
171
|
+
.status-line .work { color: var(--accent-text); font-weight: 600; }
|
|
172
|
+
.welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 24px 28px; text-align: center; }
|
|
173
|
+
.welcome h1 { font-size: 28px; letter-spacing: -.02em; }
|
|
174
|
+
.welcome p { margin: 0; max-width: 540px; font-size: 14px; color: var(--muted); }
|
|
175
|
+
.welcome-logo { display: block; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 22px rgba(194, 88, 54, .3); margin-bottom: 4px; }
|
|
143
176
|
.chat-page > .chat-composer { flex: 1; padding: 0 24px; }
|
|
144
|
-
.composer { border: 1px solid var(--line-strong); border-radius:
|
|
145
|
-
.composer:focus-within { border-color: var(--accent); }
|
|
177
|
+
.composer { border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(31, 29, 26, .04), 0 8px 26px rgba(31, 29, 26, .06); padding: 12px 12px 8px 18px; display: grid; gap: 6px; transition: border-color .15s, box-shadow .15s; }
|
|
178
|
+
.composer:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 26px rgba(31, 29, 26, .06); }
|
|
179
|
+
:root[data-theme="dark"] .composer { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 26px rgba(0, 0, 0, .25); }
|
|
180
|
+
:root[data-theme="dark"] .composer:focus-within { box-shadow: 0 0 0 3px rgba(217, 128, 95, .1), 0 8px 26px rgba(0, 0, 0, .25); }
|
|
146
181
|
.dropping .composer { border-color: var(--accent); border-style: dashed; }
|
|
147
182
|
.composer textarea { border: 0; padding: 4px 0; box-shadow: none !important; background: transparent; resize: none; min-height: 28px; max-height: 240px; font-size: 14.5px; line-height: 1.6; }
|
|
183
|
+
.composer textarea::placeholder { color: var(--faint); }
|
|
148
184
|
.composer-bar { display: flex; align-items: center; gap: 6px; }
|
|
149
185
|
.composer-bar .grow { flex: 1; }
|
|
150
186
|
.composer-bar .icon-btn { border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; }
|
|
151
|
-
.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 280px; padding: 5px 10px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
|
|
187
|
+
.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 280px; padding: 5px 10px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: background .12s, color .12s; }
|
|
152
188
|
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
189
|
+
.chip svg { flex: none; opacity: .7; }
|
|
153
190
|
.chip:hover { background: var(--hover); color: var(--text); }
|
|
154
191
|
.chip[hidden] { display: none; }
|
|
155
|
-
.round-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; flex: none; }
|
|
192
|
+
.round-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; flex: none; box-shadow: 0 1px 2px rgba(140, 55, 25, .25); transition: background .12s, opacity .12s; }
|
|
156
193
|
.round-btn:hover { background: var(--accent-hover); }
|
|
157
|
-
.round-btn:disabled { opacity: .
|
|
158
|
-
.round-btn.stop { background: var(--text); }
|
|
159
|
-
.pop { position: fixed; z-index: 70; min-width: 220px; max-width: 380px; max-height: 60vh; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius:
|
|
160
|
-
|
|
194
|
+
.round-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
|
|
195
|
+
.round-btn.stop { background: var(--text); color: var(--surface); }
|
|
196
|
+
.pop { position: fixed; z-index: 70; min-width: 220px; max-width: 380px; max-height: 60vh; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); animation: pop-in .12s ease; }
|
|
197
|
+
@keyframes pop-in { from { opacity: 0; transform: translateY(4px) scale(.985); } }
|
|
198
|
+
.pop-head { padding: 6px 10px 4px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
|
|
161
199
|
.pop-head:empty { display: none; }
|
|
162
|
-
.pop button { display: grid; width: 100%; padding:
|
|
200
|
+
.pop button { position: relative; display: grid; width: 100%; padding: 8px 30px 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
|
|
163
201
|
.pop button:hover { background: var(--hover); }
|
|
164
202
|
.pop button.current { color: var(--accent-text); font-weight: 600; }
|
|
203
|
+
.pop button.current::after { content: ""; position: absolute; right: 11px; top: 13px; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
|
|
165
204
|
.pop button.danger { color: var(--danger); }
|
|
166
|
-
.pop
|
|
205
|
+
.pop .pop-default { margin-left: 6px; padding: 0 6px; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
|
|
206
|
+
.pop small { color: var(--muted); font-size: 11.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
167
207
|
|
|
168
208
|
/* parts */
|
|
169
209
|
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
|
|
170
|
-
.panel-pad { padding:
|
|
171
|
-
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin:
|
|
172
|
-
.section-head p { margin:
|
|
173
|
-
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap:
|
|
174
|
-
.stat { padding:
|
|
175
|
-
a.panel { color: inherit; }
|
|
176
|
-
a.panel:hover { text-decoration: none; border-color: var(--accent); }
|
|
177
|
-
.stat .label { color: var(--muted); font-size: 12.5px; }
|
|
178
|
-
.stat .value { font-size:
|
|
179
|
-
.stat .hint { color: var(--faint); font-size: 12px; margin-top:
|
|
180
|
-
.kv { display: grid; grid-template-columns: 140px 1fr; gap:
|
|
210
|
+
.panel-pad { padding: 18px 20px; }
|
|
211
|
+
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
|
|
212
|
+
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
|
|
213
|
+
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
|
|
214
|
+
.stat { padding: 16px 18px; }
|
|
215
|
+
a.panel { color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
|
|
216
|
+
a.panel:hover { text-decoration: none; border-color: var(--accent-line); box-shadow: var(--shadow), 0 0 0 3px var(--accent-soft); }
|
|
217
|
+
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
|
|
218
|
+
.stat .value { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
|
|
219
|
+
.stat .hint { color: var(--faint); font-size: 12px; margin-top: 3px; word-break: break-all; }
|
|
220
|
+
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 13px; }
|
|
181
221
|
.kv dt { color: var(--muted); }
|
|
182
222
|
.kv dd { margin: 0; word-break: break-all; }
|
|
183
|
-
.button { display: inline-flex; align-items: center; gap: 6px; padding: 7px
|
|
184
|
-
.button:hover { background: var(--accent-hover); }
|
|
185
|
-
.button.secondary { background: var(--surface); color: var(--text-2); border-color: var(--line-strong); }
|
|
186
|
-
.button.secondary:hover { background: var(--surface-2); color: var(--text); }
|
|
187
|
-
.button.danger { background: var(--surface); color: var(--danger); border-color: var(--line-strong); }
|
|
188
|
-
.button.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
|
|
189
|
-
.button.small { padding: 4px
|
|
223
|
+
.button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(140, 55, 25, .2); transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
|
|
224
|
+
.button:hover { background: var(--accent-hover); text-decoration: none; }
|
|
225
|
+
.button.secondary { background: var(--surface); color: var(--text-2); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
|
|
226
|
+
.button.secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
|
|
227
|
+
.button.danger { background: var(--surface); color: var(--danger); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
|
|
228
|
+
.button.danger:hover { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
|
|
229
|
+
.button.small { padding: 4px 11px; font-size: 12.5px; }
|
|
190
230
|
.button:disabled { opacity: .5; cursor: not-allowed; }
|
|
191
231
|
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
|
192
|
-
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius:
|
|
193
|
-
input
|
|
232
|
+
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 7px 11px; outline: none; transition: border-color .12s, box-shadow .12s; }
|
|
233
|
+
input::placeholder, textarea::placeholder { color: var(--faint); }
|
|
234
|
+
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--line-strong) 70%, var(--muted)); }
|
|
235
|
+
input:focus, select:focus, textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
194
236
|
textarea { width: 100%; resize: vertical; }
|
|
195
|
-
label.field { display: grid; gap:
|
|
237
|
+
label.field { display: grid; gap: 5px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
|
|
196
238
|
label.field small { color: var(--muted); }
|
|
197
|
-
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size:
|
|
239
|
+
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line); }
|
|
198
240
|
.pill[hidden] { display: none; }
|
|
199
241
|
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
|
|
200
242
|
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
|
|
@@ -202,56 +244,92 @@ label.field small { color: var(--muted); }
|
|
|
202
244
|
.pill.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
|
|
203
245
|
.muted { color: var(--muted); }
|
|
204
246
|
.faint { color: var(--faint); }
|
|
205
|
-
.empty { padding:
|
|
206
|
-
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom:
|
|
247
|
+
.empty { padding: 44px 20px; text-align: center; color: var(--faint); }
|
|
248
|
+
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
|
|
207
249
|
.toolbar input[type="search"] { flex: 1; min-width: 220px; }
|
|
208
250
|
select { max-width: 100%; } /* (a select is as wide as its longest option: a long project path) */
|
|
209
251
|
.file-row .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
|
|
210
|
-
.tabs { display: flex; gap:
|
|
211
|
-
.tabs a { padding:
|
|
212
|
-
.tabs a.active { color: var(--
|
|
252
|
+
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
|
|
253
|
+
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
|
|
254
|
+
.tabs a.active { color: var(--text); border-color: var(--accent); font-weight: 600; }
|
|
213
255
|
.tabs a:hover { text-decoration: none; color: var(--text); }
|
|
214
256
|
|
|
215
257
|
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
216
|
-
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding:
|
|
217
|
-
table.list
|
|
258
|
+
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
|
|
259
|
+
table.list tr:first-child th:first-child { border-top-left-radius: calc(var(--radius) - 1px); }
|
|
260
|
+
table.list tr:first-child th:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
|
|
261
|
+
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
218
262
|
table.list tr:last-child td { border-bottom: 0; }
|
|
219
263
|
table.list tr.click { cursor: pointer; }
|
|
264
|
+
table.list tbody tr { transition: background .1s; }
|
|
220
265
|
table.list tr.click:hover td { background: var(--surface-2); }
|
|
221
266
|
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
222
267
|
.title-cell strong { display: block; font-weight: 600; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
223
268
|
.title-cell .path { color: var(--faint); font-family: var(--mono); font-size: 11.5px; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
224
269
|
|
|
225
270
|
/* toast and modal */
|
|
226
|
-
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; padding:
|
|
271
|
+
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 11px 16px; border-radius: 11px; background: var(--text); color: var(--surface); font-size: 13px; box-shadow: var(--shadow-lg); max-width: 480px; animation: pop-in .15s ease; }
|
|
227
272
|
.toast.error { background: var(--danger); color: #fff; }
|
|
228
|
-
.
|
|
229
|
-
.modal {
|
|
273
|
+
.reload-note { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 55; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 12px; background: var(--text); color: var(--surface); font-size: 13px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 24px); }
|
|
274
|
+
.modal-back { position: fixed; inset: 0; z-index: 40; background: rgba(24, 20, 16, .42); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px; }
|
|
275
|
+
.modal { width: min(760px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop-in .15s ease; }
|
|
230
276
|
.modal.big { width: min(1100px, 100%); height: calc(100vh - 40px); }
|
|
231
|
-
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding:
|
|
277
|
+
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
|
|
232
278
|
.modal-head .path { color: var(--faint); font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
|
|
233
|
-
.modal-body { padding:
|
|
234
|
-
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px
|
|
279
|
+
.modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
|
|
280
|
+
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
|
|
235
281
|
.editor { width: 100%; height: 100%; min-height: 360px; font-family: var(--mono); font-size: 13px; line-height: 1.55; resize: none; tab-size: 2; }
|
|
236
282
|
.modal.big .modal-body { display: flex; }
|
|
237
283
|
.modal-error { color: var(--danger); font-size: 13px; margin-right: auto; align-self: center; }
|
|
238
284
|
|
|
239
285
|
/* providers */
|
|
240
|
-
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap:
|
|
241
|
-
.prov { padding:
|
|
286
|
+
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
|
|
287
|
+
.prov { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
|
|
242
288
|
.prov > .actions { margin-top: auto; }
|
|
243
|
-
.prov.connected { border-color: color-mix(in srgb, var(--ok)
|
|
289
|
+
.prov.connected { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
|
|
244
290
|
.prov-top { display: flex; align-items: center; gap: 8px; }
|
|
245
291
|
.prov-top strong { flex: 1; }
|
|
246
292
|
.prov .meta { color: var(--muted); font-size: 12px; word-break: break-all; }
|
|
247
|
-
.model-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius:
|
|
248
|
-
.model-list label { display: flex; gap: 10px; align-items: baseline; padding:
|
|
293
|
+
.model-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
|
|
294
|
+
.model-list label { display: flex; gap: 10px; align-items: baseline; padding: 8px 11px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
|
|
249
295
|
.model-list label:last-child { border-bottom: 0; }
|
|
250
296
|
.model-list label:hover { background: var(--surface-2); }
|
|
251
297
|
.model-list small { color: var(--muted); margin-left: auto; white-space: nowrap; }
|
|
252
298
|
|
|
299
|
+
/* 远程访问: the address's prefix */
|
|
300
|
+
.remote-setup { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
|
|
301
|
+
.prefix-row { display: flex; align-items: center; gap: 6px; max-width: 520px; }
|
|
302
|
+
.prefix-row input { flex: 1; min-width: 0; }
|
|
303
|
+
.remote-setup .modal-error { color: var(--danger); font-size: 13px; }
|
|
304
|
+
|
|
305
|
+
/* 默认设置 */
|
|
306
|
+
.def-row { display: grid; grid-template-columns: minmax(200px, 340px) minmax(0, 460px); gap: 8px 24px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
|
|
307
|
+
.def-row:last-child { border-bottom: 0; }
|
|
308
|
+
.def-label strong { font-weight: 600; }
|
|
309
|
+
.def-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
|
|
310
|
+
.def-row select { width: 100%; }
|
|
311
|
+
.def-note { margin-top: 6px; color: var(--warn); font-size: 12.5px; }
|
|
312
|
+
|
|
313
|
+
/* 模型列表: a tab per provider */
|
|
314
|
+
.head-actions { flex: none; flex-wrap: nowrap; }
|
|
315
|
+
.mtabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
|
|
316
|
+
.mtabs button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
|
|
317
|
+
.mtabs button:hover { color: var(--text); }
|
|
318
|
+
.mtabs button.active { color: var(--text); border-color: var(--accent); font-weight: 600; }
|
|
319
|
+
.mtabs .count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); font-size: 11px; line-height: 18px; color: var(--muted); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
|
|
320
|
+
.mtabs button.active .count { background: var(--accent-soft); color: var(--accent-text); }
|
|
321
|
+
.model-group { margin-bottom: 10px; overflow: hidden; }
|
|
322
|
+
.model-group[hidden] { display: none; }
|
|
323
|
+
.mg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
|
|
324
|
+
.mg-head .meta { color: var(--muted); font-size: 12.5px; word-break: break-all; }
|
|
325
|
+
.model-group .no-match[hidden] { display: none; }
|
|
326
|
+
table.list th.pick, table.list td.pick { width: 52px; text-align: center; padding-left: 10px; padding-right: 4px; cursor: default; }
|
|
327
|
+
td.pick input { width: 16px; height: 16px; margin: 3px 0 0; cursor: pointer; accent-color: var(--accent); }
|
|
328
|
+
.pick-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; color: var(--muted); font-size: 13px; }
|
|
329
|
+
.pick-bar [hidden] { display: none; }
|
|
330
|
+
|
|
253
331
|
/* settings */
|
|
254
|
-
.setting { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 16px; padding:
|
|
332
|
+
.setting { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
|
|
255
333
|
.setting:last-child { border-bottom: 0; }
|
|
256
334
|
.setting .key { font-family: var(--mono); font-size: 12.5px; font-weight: 600; word-break: break-all; }
|
|
257
335
|
.setting .desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
|
|
@@ -260,59 +338,66 @@ table.list td.num, table.list th.num { text-align: right; font-variant-numeric:
|
|
|
260
338
|
.setting .row input, .setting .row select { min-width: 220px; flex: 1; max-width: 420px; }
|
|
261
339
|
|
|
262
340
|
/* memory and extensions */
|
|
263
|
-
.file-row { display: flex; align-items: center; gap: 10px; padding:
|
|
341
|
+
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
|
|
264
342
|
.file-row:last-child { border-bottom: 0; }
|
|
265
343
|
.file-row .name { font-family: var(--mono); font-size: 12.5px; }
|
|
266
344
|
.file-row .desc { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
267
345
|
.file-row .grow { flex: 1; }
|
|
346
|
+
.file-row.mcp-sub { background: var(--surface-2); padding-top: 8px; padding-bottom: 8px; }
|
|
347
|
+
.file-row.mcp-sub strong { color: var(--text-2); font-weight: 600; }
|
|
268
348
|
details.proj { border-bottom: 1px solid var(--line); }
|
|
269
349
|
details.proj:last-child { border-bottom: 0; }
|
|
270
|
-
details.proj > summary { list-style: none; cursor: pointer; padding:
|
|
350
|
+
details.proj > summary { list-style: none; cursor: pointer; padding: 13px 18px; display: flex; align-items: center; gap: 10px; }
|
|
271
351
|
details.proj > summary::-webkit-details-marker { display: none; }
|
|
272
352
|
details.proj > summary:hover { background: var(--surface-2); }
|
|
273
353
|
details.proj > div { padding: 0 0 6px 18px; }
|
|
274
354
|
|
|
275
355
|
/* usage chart */
|
|
276
356
|
.chart { width: 100%; height: 220px; display: block; }
|
|
277
|
-
.chart .bar { fill: var(--accent); }
|
|
278
|
-
.chart .bar:hover { fill: var(--accent-hover); }
|
|
279
|
-
.chart text { fill: var(--
|
|
280
|
-
.chart line { stroke: var(--line); }
|
|
357
|
+
.chart .bar { fill: var(--accent); opacity: .88; transition: opacity .12s; }
|
|
358
|
+
.chart .bar:hover { opacity: 1; fill: var(--accent-hover); }
|
|
359
|
+
.chart text { fill: var(--faint); font-size: 10px; font-family: var(--font); }
|
|
360
|
+
.chart line { stroke: var(--line); stroke-dasharray: 3 4; }
|
|
281
361
|
|
|
282
362
|
/* transcript (history and live) */
|
|
283
|
-
.convo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom:
|
|
363
|
+
.convo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
|
|
284
364
|
.convo-head .path { color: var(--muted); font-family: var(--mono); font-size: 12px; word-break: break-all; }
|
|
285
|
-
.log { background: var(--
|
|
365
|
+
.log { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
|
|
286
366
|
.it { min-width: 0; }
|
|
287
367
|
.it-user { justify-self: end; max-width: 82%; }
|
|
288
|
-
.it-user .bubble { background: var(--bubble); color: var(--text); padding:
|
|
289
|
-
.it-text { display: flex; gap:
|
|
290
|
-
.it-text .mark {
|
|
291
|
-
.md { min-width: 0; flex: 1; word-break: break-word; }
|
|
292
|
-
.md p { margin: 0 0
|
|
368
|
+
.it-user .bubble { background: var(--bubble); color: var(--text); padding: 10px 16px; border-radius: 18px 18px 6px 18px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.6; }
|
|
369
|
+
.it-text { display: flex; gap: 10px; }
|
|
370
|
+
.it-text .mark { flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--text-2); font-size: 0; overflow: hidden; } /* (px: its font size is 0) */
|
|
371
|
+
.md { min-width: 0; flex: 1; word-break: break-word; font-size: 14.5px; line-height: 1.72; color: var(--text); }
|
|
372
|
+
.md p { margin: 0 0 10px; }
|
|
293
373
|
.md p:last-child { margin-bottom: 0; }
|
|
294
|
-
.md
|
|
295
|
-
.md
|
|
296
|
-
.md
|
|
297
|
-
.md
|
|
298
|
-
.md
|
|
299
|
-
.md
|
|
300
|
-
.md .
|
|
301
|
-
.md
|
|
302
|
-
.
|
|
303
|
-
.
|
|
374
|
+
.md strong { font-weight: 650; }
|
|
375
|
+
.md h1, .md h2, .md h3, .md h4 { margin: 16px 0 6px; font-size: 15px; font-weight: 650; line-height: 1.45; }
|
|
376
|
+
.md h1:first-child, .md h2:first-child, .md h3:first-child { margin-top: 0; }
|
|
377
|
+
.md pre { background: var(--code-bg); border: 1px solid var(--line); padding: 11px 14px; border-radius: 10px; overflow-x: auto; margin: 8px 0; white-space: pre; line-height: 1.55; }
|
|
378
|
+
.md pre code { padding: 0; border: 0; background: none; }
|
|
379
|
+
.md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
|
|
380
|
+
.md th, .md td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; }
|
|
381
|
+
.md th { background: var(--surface-2); font-weight: 600; }
|
|
382
|
+
.md blockquote { margin: 6px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--accent-line); color: var(--muted); }
|
|
383
|
+
.md .li { display: flex; gap: 8px; }
|
|
384
|
+
.md .bullet { color: var(--faint); flex: none; }
|
|
385
|
+
.it-thinking details summary, .it-summary details summary { cursor: pointer; color: var(--muted); font-style: italic; font-size: 13px; width: fit-content; padding: 2px 8px 2px 4px; border-radius: 6px; }
|
|
386
|
+
.it-thinking details summary:hover, .it-summary details summary:hover { background: var(--hover); color: var(--text-2); }
|
|
387
|
+
.it-thinking .pre { white-space: pre-wrap; color: var(--muted); font-style: italic; font-size: 13px; line-height: 1.65; margin: 6px 0 0 6px; padding: 2px 0 2px 12px; border-left: 2px solid var(--line); }
|
|
304
388
|
.it-tool { font-family: var(--mono); font-size: 12.5px; }
|
|
305
|
-
.it-tool .head { display: flex; gap:
|
|
389
|
+
.it-tool .head { display: flex; gap: 9px; align-items: baseline; color: var(--text-2); }
|
|
306
390
|
.it-tool .head > :not(.dot) { min-width: 0; overflow-wrap: anywhere; } /* (a long command wraps instead of widening the log) */
|
|
307
|
-
.it-tool .dot { width:
|
|
391
|
+
.it-tool .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(-1px); }
|
|
308
392
|
.it-tool.error .dot { background: var(--danger); }
|
|
309
|
-
.it-tool.running .dot { background: var(--
|
|
310
|
-
@keyframes blink { 50% { opacity: .
|
|
311
|
-
.it-tool pre, .it-output pre { margin:
|
|
393
|
+
.it-tool.running .dot { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
|
|
394
|
+
@keyframes blink { 50% { opacity: .25; } }
|
|
395
|
+
.it-tool pre, .it-output pre { margin: 6px 0 0 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--term-bg); white-space: pre-wrap; word-break: break-all; color: var(--text-2); line-height: 1.55; }
|
|
396
|
+
.it-output pre { margin-left: 0; }
|
|
312
397
|
.fold { position: relative; }
|
|
313
|
-
.fold:not(.open) pre { max-height: calc(5 * 1.55em); overflow: hidden; -webkit-mask-image: linear-gradient(#000
|
|
314
|
-
.fold-btn { margin:
|
|
315
|
-
.fold-btn:hover { color: var(--text); border-color: var(--accent); }
|
|
398
|
+
.fold:not(.open) pre { max-height: calc(5 * 1.55em + 16px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
|
|
399
|
+
.fold-btn { margin: 6px 0 0 16px; padding: 3px 11px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--muted); font: 12px/1.4 var(--font); cursor: pointer; box-shadow: var(--shadow-sm); }
|
|
400
|
+
.fold-btn:hover { color: var(--text); border-color: var(--accent-line); }
|
|
316
401
|
.a-add { background: var(--diff-add-bg); color: var(--diff-add-fg); }
|
|
317
402
|
.a-del { background: var(--diff-del-bg); color: var(--diff-del-fg); }
|
|
318
403
|
.a-add.a-word { background: var(--diff-add-word); }
|
|
@@ -321,59 +406,95 @@ details.proj > div { padding: 0 0 6px 18px; }
|
|
|
321
406
|
.it-tool .more { margin-left: auto; font-family: inherit; font-size: 12px; background: none; border: 0; color: var(--accent-text); cursor: pointer; }
|
|
322
407
|
.it-tool details > summary { cursor: pointer; list-style: none; }
|
|
323
408
|
.it-tool details > summary::-webkit-details-marker { display: none; }
|
|
324
|
-
.it-image img { max-width: 420px; max-height: 320px; border-radius:
|
|
409
|
+
.it-image img { max-width: 420px; max-height: 320px; border-radius: 12px; border: 1px solid var(--line); justify-self: end; box-shadow: var(--shadow-sm); }
|
|
325
410
|
.it-image { justify-self: end; }
|
|
326
411
|
.it-image img, .thumb img { cursor: zoom-in; }
|
|
327
|
-
.zoom { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(
|
|
328
|
-
.zoom img { max-width: 100%; max-height: 100%; border-radius:
|
|
412
|
+
.zoom { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(12, 10, 8, .84); cursor: zoom-out; animation: zoom-in .12s ease; }
|
|
413
|
+
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
|
|
329
414
|
.zoom-close { position: fixed; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
|
|
330
415
|
.zoom-close:hover { background: rgba(255,255,255,.28); }
|
|
331
416
|
@keyframes zoom-in { from { opacity: 0; } }
|
|
332
417
|
.a-b { font-weight: 700; } .a-d { opacity: .65; } .a-i { font-style: italic; } .a-u { text-decoration: underline; } .a-s { text-decoration: line-through; }
|
|
333
418
|
|
|
334
|
-
/*
|
|
335
|
-
.
|
|
336
|
-
.
|
|
337
|
-
.
|
|
338
|
-
.
|
|
339
|
-
.
|
|
419
|
+
/* where a turn ended: "✓ 17:37 完成 · 用时 5m 40s · $0.05(累计 $0.10)· 上下文 119k/1M · model" */
|
|
420
|
+
.turn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 0 16px; color: var(--faint); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
|
|
421
|
+
.turn-meta > span + span::before { content: "·"; margin: 0 8px; color: var(--line-strong); }
|
|
422
|
+
.turn-meta .tm-done { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
|
|
423
|
+
.turn-meta .tm-check { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
|
|
424
|
+
.turn-meta .tm-dim { color: var(--faint); opacity: .85; }
|
|
425
|
+
.it-output pre + .turn-meta, .turn-meta + pre { margin-top: 8px; }
|
|
426
|
+
|
|
427
|
+
/* live: the cards above the message box (background work, todos), the queue, a question */
|
|
428
|
+
.todos, .bgwork { font-size: 13px; }
|
|
429
|
+
.side-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
|
|
430
|
+
.side-card > summary { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; list-style: none; color: var(--text-2); font-size: 12.5px; font-weight: 600; user-select: none; }
|
|
431
|
+
.side-card > summary::-webkit-details-marker { display: none; }
|
|
432
|
+
.side-card > summary:hover { background: var(--surface-2); }
|
|
433
|
+
.side-card .chev { margin-left: auto; color: var(--faint); transition: transform .15s ease; flex: none; }
|
|
434
|
+
.side-card:not([open]) .chev { transform: rotate(-90deg); }
|
|
435
|
+
.card-count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
436
|
+
.card-list { border-top: 1px solid var(--line); padding: 4px 0; max-height: 220px; overflow-y: auto; }
|
|
437
|
+
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
|
|
438
|
+
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ring 1.8s ease-out infinite; }
|
|
439
|
+
@keyframes ring { 0% { transform: scale(.5); opacity: .6; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
|
|
440
|
+
.bg-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 12px; }
|
|
441
|
+
.bg-row:hover { background: var(--surface-2); }
|
|
442
|
+
.bg-icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); }
|
|
443
|
+
.bg-row.agent .bg-icon { background: var(--accent-soft); color: var(--accent-text); }
|
|
444
|
+
.bg-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
|
|
445
|
+
.bg-id { flex: none; font-family: var(--mono); font-size: 11px; color: var(--faint); }
|
|
446
|
+
.bg-time { flex: none; min-width: 58px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; text-align: center; font-variant-numeric: tabular-nums; }
|
|
447
|
+
.todo-bar { flex: 0 1 120px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
|
|
448
|
+
.todo-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .3s ease; }
|
|
449
|
+
.todo-row { display: flex; align-items: flex-start; gap: 9px; padding: 4px 12px; color: var(--text-2); line-height: 1.5; }
|
|
450
|
+
.todo-icon { flex: none; display: grid; place-items: center; height: 19.5px; color: var(--faint); }
|
|
451
|
+
.todo-row.now { color: var(--text); font-weight: 600; }
|
|
452
|
+
.todo-row.now .todo-icon { color: var(--accent); }
|
|
453
|
+
.todo-row.done { color: var(--faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 60%, transparent); }
|
|
454
|
+
.todo-row.done .todo-icon { color: var(--ok); }
|
|
455
|
+
.queue { display: grid; gap: 6px; }
|
|
456
|
+
.queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 13px; color: var(--text-2); }
|
|
457
|
+
.queue-row > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
458
|
+
.queue-tag { flex: none; padding: 0 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 600; line-height: 18px; }
|
|
459
|
+
.dialog-box { max-height: 45vh; overflow-y: auto; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); border-radius: var(--radius); padding: 14px 16px; background: var(--warn-soft); display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
|
|
340
460
|
.dialog-box .opts { display: grid; gap: 6px; }
|
|
341
|
-
.dialog-box .opt { text-align: left; padding:
|
|
342
|
-
.dialog-box .opt:hover { border-color: var(--accent); }
|
|
461
|
+
.dialog-box .opt { text-align: left; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); transition: border-color .12s, box-shadow .12s; }
|
|
462
|
+
.dialog-box .opt:hover { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
343
463
|
.dialog-box .desc { color: var(--muted); font-size: 12px; }
|
|
344
464
|
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
345
|
-
.thumb { position: relative; width: 72px; height: 72px; border-radius:
|
|
465
|
+
.thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
|
|
346
466
|
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
347
|
-
.thumb button { position: absolute; top:
|
|
467
|
+
.thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
|
|
348
468
|
.dot-state { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
|
|
349
|
-
.dot-state.busy { background: var(--
|
|
469
|
+
.dot-state.busy { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
|
|
350
470
|
.dot-state.ask { background: var(--danger); }
|
|
351
471
|
|
|
352
472
|
|
|
353
473
|
.mobile-menu, .side-backdrop { display: none; }
|
|
354
474
|
.remote-links { display: flex; gap: 8px; padding: 8px 6px 0; }
|
|
355
|
-
.remote-links a, .remote-links button { flex: 1; text-align: center; padding: 6px; border: 1px solid var(--line-strong); border-radius:
|
|
356
|
-
.remote-links a:hover, .remote-links button:hover { text-decoration: none; border-color: var(--accent); }
|
|
475
|
+
.remote-links a, .remote-links button { flex: 1; text-align: center; padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
|
|
476
|
+
.remote-links a:hover, .remote-links button:hover { text-decoration: none; border-color: var(--accent-line); }
|
|
477
|
+
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
|
|
357
478
|
@media (max-width: 860px) {
|
|
358
479
|
/* a phone (远程访问): the sidebar is a drawer (☰), the conversation takes the screen. --visible-height is the
|
|
359
480
|
visual viewport (app.js syncVisualHeight): the message box stays above the on-screen keyboard */
|
|
360
481
|
html, body { overflow: hidden; overscroll-behavior: none; }
|
|
361
482
|
.app { grid-template-columns: 1fr; height: var(--visible-height, 100dvh); }
|
|
362
|
-
.side { position: fixed; z-index: 45; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); padding: max(14px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); transform: translateX(-102%); transition: transform .
|
|
483
|
+
.side { position: fixed; z-index: 45; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); padding: max(14px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
|
|
363
484
|
.app.nav-open .side { transform: none; }
|
|
364
|
-
.app.nav-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(
|
|
365
|
-
.mobile-menu { display: grid; place-items: center; position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); width: 40px; height: 40px; border: 1px solid var(--line); border-radius:
|
|
485
|
+
.app.nav-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(24, 20, 16, .38); }
|
|
486
|
+
.mobile-menu { display: grid; place-items: center; position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 18px; box-shadow: var(--shadow); }
|
|
366
487
|
.drawer-close { display: grid !important; }
|
|
367
|
-
.chat-head { padding-left: 60px !important; padding-top: max(
|
|
368
|
-
.welcome h1 { font-size:
|
|
488
|
+
.chat-head { padding-left: 60px !important; padding-top: max(13px, env(safe-area-inset-top)); }
|
|
489
|
+
.welcome h1 { font-size: 22px; }
|
|
369
490
|
.welcome { padding-top: 60px; }
|
|
370
491
|
input, select, textarea, .composer textarea { font-size: 16px; } /* (no zoom on focus in iOS) */
|
|
371
492
|
.composer textarea { max-height: min(240px, 30dvh); }
|
|
372
493
|
.page:not(.chat) { padding: 64px 14px 40px; }
|
|
373
|
-
.setting { grid-template-columns: 1fr; }
|
|
494
|
+
.setting, .def-row { grid-template-columns: 1fr; }
|
|
374
495
|
.kv { grid-template-columns: 1fr; gap: 2px 0; }
|
|
375
496
|
.kv dd { margin-bottom: 8px; }
|
|
376
|
-
.chat-log { padding:
|
|
497
|
+
.chat-log { padding: 18px 14px; }
|
|
377
498
|
.chat-foot, .chat-head { padding-left: 12px; padding-right: 12px; }
|
|
378
499
|
.chat-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
|
|
379
500
|
.chat-page > .chat-composer { padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
|
|
@@ -394,7 +515,7 @@ details.proj > div { padding: 0 0 6px 18px; }
|
|
|
394
515
|
.ws-folder { padding-right: 78px; } /* (the always-shown ⋯ and + sit over the end of the row) */
|
|
395
516
|
.tip { display: none !important; }
|
|
396
517
|
.pop { max-width: calc(100vw - 16px); max-height: 60dvh; }
|
|
397
|
-
.pop button { padding: 10px 12px; }
|
|
518
|
+
.pop button { padding: 10px 30px 10px 12px; }
|
|
398
519
|
.icon-btn { width: 36px; height: 36px; }
|
|
399
520
|
/* content wider than the screen scrolls in its own box, not the page */
|
|
400
521
|
.panel { overflow-x: auto; }
|
|
@@ -403,10 +524,15 @@ details.proj > div { padding: 0 0 6px 18px; }
|
|
|
403
524
|
.it-user { max-width: 92%; }
|
|
404
525
|
.it-image img { max-width: 100%; height: auto; }
|
|
405
526
|
.toolbar input[type="search"] { min-width: 0; flex-basis: 100%; }
|
|
527
|
+
.section-head:has(.head-actions) { flex-wrap: wrap; }
|
|
528
|
+
.head-actions { flex: 1 1 100%; flex-wrap: wrap; }
|
|
529
|
+
.head-actions input[type="search"] { flex: 1 1 100%; width: auto !important; }
|
|
406
530
|
.modal-back { padding: 0; place-items: end stretch; grid-template-columns: minmax(0, 1fr); }
|
|
407
|
-
.modal { width: 100%; min-width: 0; max-height: var(--visible-height, 100dvh); border-radius:
|
|
531
|
+
.modal { width: 100%; min-width: 0; max-height: var(--visible-height, 100dvh); border-radius: 16px 16px 0 0; }
|
|
408
532
|
.modal.big { height: var(--visible-height, 100dvh); border-radius: 0; }
|
|
409
533
|
.modal-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
|
|
410
534
|
.toast { left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: none; }
|
|
411
535
|
.zoom { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
|
|
536
|
+
.turn-meta { margin-left: 0; }
|
|
537
|
+
.bg-id { display: none; }
|
|
412
538
|
}
|