@yanzc/claude-pro 0.11.0 → 0.13.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.
@@ -0,0 +1,530 @@
1
+ /* claude-pro web console. Warm neutrals with Claude's terracotta; one radius, shadow and type scale throughout. */
2
+ :root {
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;
18
+ color-scheme: light;
19
+ }
20
+ :root[data-theme="dark"] {
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);
33
+ color-scheme: dark;
34
+ }
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); }
42
+ html, body { margin: 0; height: 100%; }
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; }
44
+ a { color: var(--accent-text); text-decoration: none; }
45
+ a:hover { text-decoration: underline; }
46
+ :is(a, button, summary, [role=button]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
47
+ code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
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; }
53
+ .hidden { display: none !important; }
54
+
55
+ /* layout: the sidebar (工作区) and the main pane */
56
+ .app { display: grid; grid-template-columns: 276px minmax(0, 1fr); height: 100vh; height: 100dvh; }
57
+ .drawer-close { display: none !important; }
58
+ .composer-left, .composer-right { display: flex; align-items: center; gap: 2px; min-width: 0; }
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; }
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); }
64
+ .brand-release { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; }
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; }
68
+ .brand-update:disabled { opacity: .65; cursor: wait; }
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); }
73
+ .side-nav { display: grid; gap: 1px; }
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; }
76
+ .side-more > summary::-webkit-details-marker { display: none; }
77
+ .side-nav a:hover, .side-more > summary:hover { background: var(--hover); text-decoration: none; }
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); }
80
+ .side-more a { padding-left: 37px; font-size: 13.5px; }
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; }
82
+ .ws-tools { display: flex; gap: 2px; }
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; }
84
+ .ws-tools button:hover, .ws-tools a:hover { background: var(--hover); color: var(--text); }
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; }
87
+ .ws-empty { color: var(--faint); font-size: 13px; padding: 10px; }
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; }
90
+ .ws-folder:hover { background: var(--hover); }
91
+ .ws-folder-row { position: relative; }
92
+ .ws-folder-row:hover .ws-folder { background: var(--hover); }
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; }
94
+ .ws-add svg { width: 16px; height: 16px; }
95
+ .ws-folder-row:hover .ws-add, .ws-add:focus-visible { opacity: 1; }
96
+ .ws-add:hover, .ws-pmenu:hover { background: var(--active); color: var(--text); }
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; }
98
+ .ws-pmenu svg { width: 16px; height: 16px; }
99
+ .ws-folder-row:hover .ws-pmenu, .ws-pmenu:focus-visible, .ws-pmenu[aria-expanded=true] { opacity: 1; }
100
+ .ws-pmenu[aria-expanded=true] { background: var(--active); color: var(--text); }
101
+ .ws-folder-row:hover .ws-count, .ws-folder-row:has(.ws-pmenu[aria-expanded=true]) .ws-count { visibility: hidden; }
102
+ @media (hover: none) { .ws-add, .ws-pmenu { opacity: .7; } .ws-folder-row .ws-count { margin-right: 52px; } }
103
+ .ws-folder svg { color: var(--faint); flex: none; }
104
+ .ws-folder span:not(.ws-count) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
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; }
106
+ .ws-row { position: relative; }
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; }
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; }
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); }
110
+ .ws-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
111
+ .ws-ago { color: var(--faint); font-size: 11.5px; flex: none; font-variant-numeric: tabular-nums; }
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; }
113
+ .ws-menu:hover, .ws-menu[aria-expanded=true] { background: var(--active); color: var(--text); }
114
+ .ws-row:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-menu { opacity: 1; pointer-events: auto; }
115
+ .ws-row.has-menu:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-item { padding-right: 34px; }
116
+ .ws-row.has-menu:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-ago { display: none; }
117
+ @media (hover: none) { .ws-menu { opacity: 1; pointer-events: auto; } .ws-row.has-menu .ws-item { padding-right: 34px; } }
118
+ .ws-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
119
+ .ws-item .ws-dot { position: absolute; left: 20px; }
120
+ .ws-dot.busy { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
121
+ .ws-dot.ask { background: var(--danger); }
122
+ .ws-dot.off { background: var(--faint); }
123
+ .ws-more { border: 0; background: none; color: var(--faint); font: inherit; font-size: 12.5px; padding: 4px 10px 4px 34px; cursor: pointer; }
124
+ .ws-more:hover { color: var(--text); }
125
+ .ws-hint { color: var(--faint); font-size: 12.5px; padding: 3px 10px 6px 34px; }
126
+ .side-foot { display: flex; align-items: center; gap: 4px; padding: 8px 0 0; border-top: 1px solid var(--line); margin-top: 6px; }
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; }
128
+ .side-me:hover, .side-me.open, .side-me.active { background: var(--hover); }
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; }
135
+ .user-menu .side-nav a { padding: 8px 10px; }
136
+ .menu-sep { height: 1px; margin: 5px 6px; background: var(--line); }
137
+ .user-menu .remote-links { margin-top: 0; }
138
+ .side-user { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; }
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; }
140
+ .icon-btn:hover { background: var(--hover); color: var(--text); }
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; }
145
+ .tip strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
146
+ .tip-path { color: #b9b3aa; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
147
+ .tip-state { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
148
+ .main { overflow-y: auto; min-width: 0; background: var(--main-bg); }
149
+ .page { max-width: 1120px; margin: 0 auto; padding: 32px 36px 72px; }
150
+ .page.wide { max-width: none; padding: 14px 24px; }
151
+ .page.chat { max-width: none; padding: 0; height: 100%; }
152
+
153
+ /* the conversation (new, live, history): a centered column, the message box at the bottom */
154
+ .chat-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
155
+ .chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 28px 12px; border-bottom: 1px solid var(--line); background: var(--main-bg); }
156
+ .chat-titles { flex: 1; min-width: 0; }
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; }
159
+ .chat-scroll { flex: 1; min-height: 0; overflow-y: auto; }
160
+ .chat-log { max-width: 820px; margin: 0 auto; padding: 26px 28px 34px; display: grid; gap: 16px; }
161
+ .chat-empty { color: var(--faint); text-align: center; padding: 60px 0; }
162
+ .chat-foot { padding: 0 24px 10px; }
163
+ .chat-foot > * { max-width: 820px; margin-left: auto; margin-right: auto; }
164
+ .chat-extra { display: grid; gap: 8px; margin-bottom: 10px; }
165
+ .chat-extra:empty { display: none; }
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; }
170
+ .status-line:empty { padding: 0; }
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; }
176
+ .chat-page > .chat-composer { flex: 1; padding: 0 24px; }
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); }
181
+ .dropping .composer { border-color: var(--accent); border-style: dashed; }
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); }
184
+ .composer-bar { display: flex; align-items: center; gap: 6px; }
185
+ .composer-bar .grow { flex: 1; }
186
+ .composer-bar .icon-btn { border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; }
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; }
188
+ .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
189
+ .chip svg { flex: none; opacity: .7; }
190
+ .chip:hover { background: var(--hover); color: var(--text); }
191
+ .chip[hidden] { display: 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; }
193
+ .round-btn:hover { background: var(--accent-hover); }
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; }
199
+ .pop-head:empty { display: none; }
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; }
201
+ .pop button:hover { background: var(--hover); }
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); }
204
+ .pop button.danger { color: var(--danger); }
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; }
207
+
208
+ /* parts */
209
+ .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
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; }
221
+ .kv dt { color: var(--muted); }
222
+ .kv dd { margin: 0; word-break: break-all; }
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; }
230
+ .button:disabled { opacity: .5; cursor: not-allowed; }
231
+ .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
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); }
236
+ textarea { width: 100%; resize: vertical; }
237
+ label.field { display: grid; gap: 5px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
238
+ label.field small { color: var(--muted); }
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); }
240
+ .pill[hidden] { display: none; }
241
+ .pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
242
+ .pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
243
+ .pill.off { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
244
+ .pill.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
245
+ .muted { color: var(--muted); }
246
+ .faint { color: var(--faint); }
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; }
249
+ .toolbar input[type="search"] { flex: 1; min-width: 220px; }
250
+ select { max-width: 100%; } /* (a select is as wide as its longest option: a long project path) */
251
+ .file-row .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
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; }
255
+ .tabs a:hover { text-decoration: none; color: var(--text); }
256
+
257
+ table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
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; }
262
+ table.list tr:last-child td { border-bottom: 0; }
263
+ table.list tr.click { cursor: pointer; }
264
+ table.list tbody tr { transition: background .1s; }
265
+ table.list tr.click:hover td { background: var(--surface-2); }
266
+ table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
267
+ .title-cell strong { display: block; font-weight: 600; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
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; }
269
+
270
+ /* toast and modal */
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; }
272
+ .toast.error { background: var(--danger); color: #fff; }
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; }
276
+ .modal.big { width: min(1100px, 100%); height: calc(100vh - 40px); }
277
+ .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
278
+ .modal-head .path { color: var(--faint); font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
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); }
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; }
282
+ .modal.big .modal-body { display: flex; }
283
+ .modal-error { color: var(--danger); font-size: 13px; margin-right: auto; align-self: center; }
284
+
285
+ /* providers */
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; }
288
+ .prov > .actions { margin-top: auto; }
289
+ .prov.connected { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
290
+ .prov-top { display: flex; align-items: center; gap: 8px; }
291
+ .prov-top strong { flex: 1; }
292
+ .prov .meta { color: var(--muted); font-size: 12px; word-break: break-all; }
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; }
295
+ .model-list label:last-child { border-bottom: 0; }
296
+ .model-list label:hover { background: var(--surface-2); }
297
+ .model-list small { color: var(--muted); margin-left: auto; white-space: nowrap; }
298
+
299
+ /* 默认设置 */
300
+ .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); }
301
+ .def-row:last-child { border-bottom: 0; }
302
+ .def-label strong { font-weight: 600; }
303
+ .def-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
304
+ .def-row select { width: 100%; }
305
+ .def-note { margin-top: 6px; color: var(--warn); font-size: 12.5px; }
306
+
307
+ /* 模型列表: a tab per provider */
308
+ .head-actions { flex: none; flex-wrap: nowrap; }
309
+ .mtabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
310
+ .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; }
311
+ .mtabs button:hover { color: var(--text); }
312
+ .mtabs button.active { color: var(--text); border-color: var(--accent); font-weight: 600; }
313
+ .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; }
314
+ .mtabs button.active .count { background: var(--accent-soft); color: var(--accent-text); }
315
+ .model-group { margin-bottom: 10px; overflow: hidden; }
316
+ .model-group[hidden] { display: none; }
317
+ .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); }
318
+ .mg-head .meta { color: var(--muted); font-size: 12.5px; word-break: break-all; }
319
+ .model-group .no-match[hidden] { display: none; }
320
+ table.list th.pick, table.list td.pick { width: 52px; text-align: center; padding-left: 10px; padding-right: 4px; cursor: default; }
321
+ td.pick input { width: 16px; height: 16px; margin: 3px 0 0; cursor: pointer; accent-color: var(--accent); }
322
+ .pick-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; color: var(--muted); font-size: 13px; }
323
+ .pick-bar [hidden] { display: none; }
324
+
325
+ /* settings */
326
+ .setting { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
327
+ .setting:last-child { border-bottom: 0; }
328
+ .setting .key { font-family: var(--mono); font-size: 12.5px; font-weight: 600; word-break: break-all; }
329
+ .setting .desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
330
+ .setting .now { font-size: 13px; margin-bottom: 8px; word-break: break-all; }
331
+ .setting .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
332
+ .setting .row input, .setting .row select { min-width: 220px; flex: 1; max-width: 420px; }
333
+
334
+ /* memory and extensions */
335
+ .file-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
336
+ .file-row:last-child { border-bottom: 0; }
337
+ .file-row .name { font-family: var(--mono); font-size: 12.5px; }
338
+ .file-row .desc { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
339
+ .file-row .grow { flex: 1; }
340
+ details.proj { border-bottom: 1px solid var(--line); }
341
+ details.proj:last-child { border-bottom: 0; }
342
+ details.proj > summary { list-style: none; cursor: pointer; padding: 13px 18px; display: flex; align-items: center; gap: 10px; }
343
+ details.proj > summary::-webkit-details-marker { display: none; }
344
+ details.proj > summary:hover { background: var(--surface-2); }
345
+ details.proj > div { padding: 0 0 6px 18px; }
346
+
347
+ /* usage chart */
348
+ .chart { width: 100%; height: 220px; display: block; }
349
+ .chart .bar { fill: var(--accent); opacity: .88; transition: opacity .12s; }
350
+ .chart .bar:hover { opacity: 1; fill: var(--accent-hover); }
351
+ .chart text { fill: var(--faint); font-size: 10px; font-family: var(--font); }
352
+ .chart line { stroke: var(--line); stroke-dasharray: 3 4; }
353
+
354
+ /* transcript (history and live) */
355
+ .convo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
356
+ .convo-head .path { color: var(--muted); font-family: var(--mono); font-size: 12px; word-break: break-all; }
357
+ .log { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
358
+ .it { min-width: 0; }
359
+ .it-user { justify-self: end; max-width: 82%; }
360
+ .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; }
361
+ .it-text { display: flex; gap: 10px; }
362
+ .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) */
363
+ .md { min-width: 0; flex: 1; word-break: break-word; font-size: 14.5px; line-height: 1.72; color: var(--text); }
364
+ .md p { margin: 0 0 10px; }
365
+ .md p:last-child { margin-bottom: 0; }
366
+ .md strong { font-weight: 650; }
367
+ .md h1, .md h2, .md h3, .md h4 { margin: 16px 0 6px; font-size: 15px; font-weight: 650; line-height: 1.45; }
368
+ .md h1:first-child, .md h2:first-child, .md h3:first-child { margin-top: 0; }
369
+ .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; }
370
+ .md pre code { padding: 0; border: 0; background: none; }
371
+ .md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
372
+ .md th, .md td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; }
373
+ .md th { background: var(--surface-2); font-weight: 600; }
374
+ .md blockquote { margin: 6px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--accent-line); color: var(--muted); }
375
+ .md .li { display: flex; gap: 8px; }
376
+ .md .bullet { color: var(--faint); flex: none; }
377
+ .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; }
378
+ .it-thinking details summary:hover, .it-summary details summary:hover { background: var(--hover); color: var(--text-2); }
379
+ .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); }
380
+ .it-tool { font-family: var(--mono); font-size: 12.5px; }
381
+ .it-tool .head { display: flex; gap: 9px; align-items: baseline; color: var(--text-2); }
382
+ .it-tool .head > :not(.dot) { min-width: 0; overflow-wrap: anywhere; } /* (a long command wraps instead of widening the log) */
383
+ .it-tool .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(-1px); }
384
+ .it-tool.error .dot { background: var(--danger); }
385
+ .it-tool.running .dot { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
386
+ @keyframes blink { 50% { opacity: .25; } }
387
+ .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; }
388
+ .it-output pre { margin-left: 0; }
389
+ .fold { position: relative; }
390
+ .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); }
391
+ .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); }
392
+ .fold-btn:hover { color: var(--text); border-color: var(--accent-line); }
393
+ .a-add { background: var(--diff-add-bg); color: var(--diff-add-fg); }
394
+ .a-del { background: var(--diff-del-bg); color: var(--diff-del-fg); }
395
+ .a-add.a-word { background: var(--diff-add-word); }
396
+ .a-del.a-word { background: var(--diff-del-word); }
397
+ .a-bg { background: var(--surface-2); }
398
+ .it-tool .more { margin-left: auto; font-family: inherit; font-size: 12px; background: none; border: 0; color: var(--accent-text); cursor: pointer; }
399
+ .it-tool details > summary { cursor: pointer; list-style: none; }
400
+ .it-tool details > summary::-webkit-details-marker { display: none; }
401
+ .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); }
402
+ .it-image { justify-self: end; }
403
+ .it-image img, .thumb img { cursor: zoom-in; }
404
+ .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; }
405
+ .zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
406
+ .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; }
407
+ .zoom-close:hover { background: rgba(255,255,255,.28); }
408
+ @keyframes zoom-in { from { opacity: 0; } }
409
+ .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; }
410
+
411
+ /* where a turn ended: "✓ 17:37 完成 · 用时 5m 40s · $0.05(累计 $0.10)· 上下文 119k/1M · model" */
412
+ .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; }
413
+ .turn-meta > span + span::before { content: "·"; margin: 0 8px; color: var(--line-strong); }
414
+ .turn-meta .tm-done { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
415
+ .turn-meta .tm-check { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
416
+ .turn-meta .tm-dim { color: var(--faint); opacity: .85; }
417
+ .it-output pre + .turn-meta, .turn-meta + pre { margin-top: 8px; }
418
+
419
+ /* live: the cards above the message box (background work, todos), the queue, a question */
420
+ .todos, .bgwork { font-size: 13px; }
421
+ .side-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
422
+ .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; }
423
+ .side-card > summary::-webkit-details-marker { display: none; }
424
+ .side-card > summary:hover { background: var(--surface-2); }
425
+ .side-card .chev { margin-left: auto; color: var(--faint); transition: transform .15s ease; flex: none; }
426
+ .side-card:not([open]) .chev { transform: rotate(-90deg); }
427
+ .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; }
428
+ .card-list { border-top: 1px solid var(--line); padding: 4px 0; max-height: 220px; overflow-y: auto; }
429
+ .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
430
+ .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ring 1.8s ease-out infinite; }
431
+ @keyframes ring { 0% { transform: scale(.5); opacity: .6; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
432
+ .bg-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 12px; }
433
+ .bg-row:hover { background: var(--surface-2); }
434
+ .bg-icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); }
435
+ .bg-row.agent .bg-icon { background: var(--accent-soft); color: var(--accent-text); }
436
+ .bg-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
437
+ .bg-id { flex: none; font-family: var(--mono); font-size: 11px; color: var(--faint); }
438
+ .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; }
439
+ .todo-bar { flex: 0 1 120px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
440
+ .todo-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .3s ease; }
441
+ .todo-row { display: flex; align-items: flex-start; gap: 9px; padding: 4px 12px; color: var(--text-2); line-height: 1.5; }
442
+ .todo-icon { flex: none; display: grid; place-items: center; height: 19.5px; color: var(--faint); }
443
+ .todo-row.now { color: var(--text); font-weight: 600; }
444
+ .todo-row.now .todo-icon { color: var(--accent); }
445
+ .todo-row.done { color: var(--faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 60%, transparent); }
446
+ .todo-row.done .todo-icon { color: var(--ok); }
447
+ .queue { display: grid; gap: 6px; }
448
+ .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); }
449
+ .queue-row > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
450
+ .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; }
451
+ .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); }
452
+ .dialog-box .opts { display: grid; gap: 6px; }
453
+ .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; }
454
+ .dialog-box .opt:hover { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
455
+ .dialog-box .desc { color: var(--muted); font-size: 12px; }
456
+ .thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
457
+ .thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
458
+ .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
459
+ .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; }
460
+ .dot-state { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
461
+ .dot-state.busy { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
462
+ .dot-state.ask { background: var(--danger); }
463
+
464
+
465
+ .mobile-menu, .side-backdrop { display: none; }
466
+ .remote-links { display: flex; gap: 8px; padding: 8px 6px 0; }
467
+ .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; }
468
+ .remote-links a:hover, .remote-links button:hover { text-decoration: none; border-color: var(--accent-line); }
469
+ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
470
+ @media (max-width: 860px) {
471
+ /* a phone (远程访问): the sidebar is a drawer (☰), the conversation takes the screen. --visible-height is the
472
+ visual viewport (app.js syncVisualHeight): the message box stays above the on-screen keyboard */
473
+ html, body { overflow: hidden; overscroll-behavior: none; }
474
+ .app { grid-template-columns: 1fr; height: var(--visible-height, 100dvh); }
475
+ .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); }
476
+ .app.nav-open .side { transform: none; }
477
+ .app.nav-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(24, 20, 16, .38); }
478
+ .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); }
479
+ .drawer-close { display: grid !important; }
480
+ .chat-head { padding-left: 60px !important; padding-top: max(13px, env(safe-area-inset-top)); }
481
+ .welcome h1 { font-size: 22px; }
482
+ .welcome { padding-top: 60px; }
483
+ input, select, textarea, .composer textarea { font-size: 16px; } /* (no zoom on focus in iOS) */
484
+ .composer textarea { max-height: min(240px, 30dvh); }
485
+ .page:not(.chat) { padding: 64px 14px 40px; }
486
+ .setting, .def-row { grid-template-columns: 1fr; }
487
+ .kv { grid-template-columns: 1fr; gap: 2px 0; }
488
+ .kv dd { margin-bottom: 8px; }
489
+ .chat-log { padding: 18px 14px; }
490
+ .chat-foot, .chat-head { padding-left: 12px; padding-right: 12px; }
491
+ .chat-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
492
+ .chat-page > .chat-composer { padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
493
+ /* the model and effort chips on a row of their own under the box: the send button stays on screen */
494
+ .composer-bar { flex-wrap: wrap; row-gap: 4px; }
495
+ .composer-right:not(:empty) { order: 10; flex-basis: 100%; flex-wrap: wrap; }
496
+ .composer-left { flex: 0 1 auto; }
497
+ .chip { max-width: min(46vw, 220px); }
498
+ /* touch: bigger targets, the row menus always shown (no hover) */
499
+ .ws-item { padding-top: 10px; padding-bottom: 10px; }
500
+ .ws-folder { padding-top: 9px; padding-bottom: 9px; }
501
+ .ws-tools button, .ws-tools a { width: 34px; height: 34px; }
502
+ .ws-menu, .ws-pmenu, .ws-add { width: 32px; height: 32px; opacity: 1; pointer-events: auto; }
503
+ .ws-pmenu { right: 40px; }
504
+ .ws-row.has-menu .ws-item { padding-right: 42px; }
505
+ .ws-row.has-menu .ws-ago { display: none; }
506
+ .ws-folder-row .ws-count { margin-right: 70px; }
507
+ .ws-folder { padding-right: 78px; } /* (the always-shown ⋯ and + sit over the end of the row) */
508
+ .tip { display: none !important; }
509
+ .pop { max-width: calc(100vw - 16px); max-height: 60dvh; }
510
+ .pop button { padding: 10px 30px 10px 12px; }
511
+ .icon-btn { width: 36px; height: 36px; }
512
+ /* content wider than the screen scrolls in its own box, not the page */
513
+ .panel { overflow-x: auto; }
514
+ .title-cell strong, .title-cell .path { max-width: 62vw; }
515
+ .md table { display: block; max-width: 100%; overflow-x: auto; }
516
+ .it-user { max-width: 92%; }
517
+ .it-image img { max-width: 100%; height: auto; }
518
+ .toolbar input[type="search"] { min-width: 0; flex-basis: 100%; }
519
+ .section-head:has(.head-actions) { flex-wrap: wrap; }
520
+ .head-actions { flex: 1 1 100%; flex-wrap: wrap; }
521
+ .head-actions input[type="search"] { flex: 1 1 100%; width: auto !important; }
522
+ .modal-back { padding: 0; place-items: end stretch; grid-template-columns: minmax(0, 1fr); }
523
+ .modal { width: 100%; min-width: 0; max-height: var(--visible-height, 100dvh); border-radius: 16px 16px 0 0; }
524
+ .modal.big { height: var(--visible-height, 100dvh); border-radius: 0; }
525
+ .modal-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
526
+ .toast { left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: none; }
527
+ .zoom { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
528
+ .turn-meta { margin-left: 0; }
529
+ .bg-id { display: none; }
530
+ }