@yanzc/claude-pro 0.12.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.
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: #f6f7f9; --surface: #fff; --surface-2: #f1f3f6; --line: #e3e6eb; --line-strong: #cfd4dc;
3
- --text: #111827; --text-2: #374151; --muted: #6b7280; --faint: #9ca3af;
4
- --accent: #d97757; --accent-hover: #c4633f; --accent-soft: #fbeee8; --accent-text: #b4532f;
5
- --ok: #15803d; --ok-soft: #e8f6ec; --warn: #b45309; --warn-soft: #fdf3e2; --danger: #dc2626; --danger-soft: #fdecec;
6
- --code-bg: #f3f4f6; --term-bg: #fbfbfc; --shadow: 0 1px 2px rgba(16, 24, 40, .05); --radius: 10px;
7
- --rc-fg: #111827; --rc-bg: #fff;
8
- --side-bg: #f7f7f8; --main-bg: #ffffff; --bubble: #eff1f5; --diff-add-bg: #e6ffec; --diff-add-fg: #116329; --diff-del-bg: #ffebe9; --diff-del-fg: #a40e26; --diff-add-word: #abf2bc; --diff-del-word: #ffc1c0; --hover: rgba(0, 0, 0, .05); --active: rgba(0, 0, 0, .075);
9
- --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, "Microsoft YaHei UI", monospace;
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: #0f1115; --surface: #171a21; --surface-2: #1e222b; --line: #2a2f3a; --line-strong: #3a404d;
14
- --text: #e5e7eb; --text-2: #cbd0d8; --muted: #9aa1ad; --faint: #6b7280;
15
- --accent: #e08a6a; --accent-hover: #ea9c7e; --accent-soft: rgba(224, 138, 106, .14); --accent-text: #f0a487;
16
- --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12); --danger: #f87171; --danger-soft: rgba(248, 113, 113, .12);
17
- --code-bg: #1f2430; --term-bg: #12151b; --shadow: none; --rc-fg: #e5e7eb; --rc-bg: #171a21;
18
- --side-bg: #15171c; --main-bg: #0f1115; --bubble: #262a33; --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); --hover: rgba(255, 255, 255, .06); --active: rgba(255, 255, 255, .1);
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.55 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif; }
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 5px; border-radius: 4px; background: var(--code-bg); }
28
- h1 { font-size: 22px; margin: 0 0 4px; font-weight: 700; }
29
- h2 { font-size: 15px; margin: 0; font-weight: 650; }
30
- h3 { font-size: 14px; margin: 0 0 6px; }
31
- .sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
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: 272px minmax(0, 1fr); height: 100vh; height: 100dvh; }
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: 8px; padding: 2px 6px 14px; }
40
- .brand-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
41
- .brand strong { font-size: 16px; letter-spacing: -.2px; white-space: nowrap; }
42
- .brand-tag { font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 1px 5px; border-radius: 3px; background: var(--text); color: var(--side-bg); }
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: 6px; background: var(--hover); color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; }
46
- .brand-update:hover:not(:disabled) { background: var(--active); }
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: 7px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); margin-bottom: 10px; }
49
- .side-new:hover, .side-new.active { text-decoration: none; border-color: var(--accent); }
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(--hover); color: var(--text); font-weight: 600; }
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: 16px 10px 6px; color: var(--muted); font-size: 13px; }
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: 6px; background: none; color: var(--muted); cursor: pointer; }
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 9px; }
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: 4px; }
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: 14px; cursor: pointer; text-align: left; }
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(--surface-2); color: var(--text); }
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(--surface-2); color: var(--text); }
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(--muted); flex: none; }
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 5px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 11px; line-height: 17px; text-align: center; }
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: 7px 10px 7px 34px; border-radius: 8px; color: var(--text); font-size: 13.5px; 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; }
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(--active); }
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: 12px; flex: none; }
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(--surface-2); color: var(--text); }
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(--warn); animation: blink 1s infinite; }
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(--muted); font: inherit; font-size: 12.5px; padding: 4px 10px 4px 34px; cursor: pointer; }
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: 5px 6px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
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
- .user-menu { position: absolute; z-index: 60; left: 10px; right: 10px; bottom: 58px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
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 4px; background: var(--line); }
136
+ .menu-sep { height: 1px; margin: 5px 6px; background: var(--line); }
107
137
  .user-menu .remote-links { margin-top: 0; }
108
- .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text-2); flex: none; }
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
- .tip { position: fixed; z-index: 60; max-width: 320px; padding: 10px 13px; border-radius: 10px; background: #2b2b2e; color: #f2f2f2; font-size: 12.5px; line-height: 1.6; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; }
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: #b9b9be; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
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: 1180px; margin: 0 auto; padding: 28px 32px 60px; }
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: 14px 24px 12px; border-bottom: 1px solid var(--line); }
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: 17px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
126
- .chat-sub { color: var(--muted); font-size: 12px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
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: 860px; margin: 0 auto; padding: 22px 28px 30px; display: grid; gap: 14px; }
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: 860px; margin-left: auto; margin-right: auto; }
132
- .chat-extra { display: grid; gap: 8px; margin-bottom: 8px; }
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-composer { max-width: 860px; margin: 0 auto; width: 100%; }
135
- .chat-stats { color: var(--faint); font-size: 12px; text-align: center; padding-top: 7px; min-height: 18px; }
136
- .status-line { font-family: var(--mono); font-size: 12.5px; color: var(--muted); min-height: 0; padding: 0 6px 6px; }
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 26px; text-align: center; }
140
- .welcome h1 { font-size: 26px; }
141
- .welcome p { margin: 0; max-width: 520px; font-size: 13.5px; }
142
- .welcome-logo { width: 48px; height: 48px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; }
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: 20px; background: var(--surface); box-shadow: 0 2px 10px rgba(16, 24, 40, .06); padding: 12px 12px 8px 16px; display: grid; gap: 6px; }
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: .4; cursor: default; }
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: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
160
- .pop-head { padding: 6px 10px 3px; color: var(--faint); font-size: 11.5px; }
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: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
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 small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
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: 16px 18px; }
171
- .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
172
- .section-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
173
- .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
174
- .stat { padding: 14px 16px; }
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: 22px; font-weight: 700; margin-top: 2px; }
179
- .stat .hint { color: var(--faint); font-size: 12px; margin-top: 2px; word-break: break-all; }
180
- .kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13px; }
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 13px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
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 10px; font-size: 12.5px; }
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: 8px; padding: 7px 10px; outline: none; }
193
- input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
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: 4px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
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: 12px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line); }
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,86 @@ 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: 40px 20px; text-align: center; color: var(--faint); }
206
- .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
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: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
211
- .tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
212
- .tabs a.active { color: var(--accent-text); border-color: var(--accent); }
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: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
217
- table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
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: 10px 16px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 480px; }
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
- .modal-back { position: fixed; inset: 0; z-index: 40; background: rgba(15, 17, 21, .45); display: grid; place-items: center; padding: 20px; }
229
- .modal { width: min(760px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
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: 14px 18px; border-bottom: 1px solid var(--line); }
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: 16px 18px; overflow-y: auto; flex: 1; }
234
- .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
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: 12px; }
241
- .prov { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
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) 45%, var(--line)); }
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: 8px; }
248
- .model-list label { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
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
+ /* 默认设置 */
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
+
253
325
  /* settings */
254
- .setting { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
326
+ .setting { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
255
327
  .setting:last-child { border-bottom: 0; }
256
328
  .setting .key { font-family: var(--mono); font-size: 12.5px; font-weight: 600; word-break: break-all; }
257
329
  .setting .desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
@@ -260,59 +332,64 @@ table.list td.num, table.list th.num { text-align: right; font-variant-numeric:
260
332
  .setting .row input, .setting .row select { min-width: 220px; flex: 1; max-width: 420px; }
261
333
 
262
334
  /* memory and extensions */
263
- .file-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
335
+ .file-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
264
336
  .file-row:last-child { border-bottom: 0; }
265
337
  .file-row .name { font-family: var(--mono); font-size: 12.5px; }
266
338
  .file-row .desc { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
267
339
  .file-row .grow { flex: 1; }
268
340
  details.proj { border-bottom: 1px solid var(--line); }
269
341
  details.proj:last-child { border-bottom: 0; }
270
- details.proj > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
342
+ details.proj > summary { list-style: none; cursor: pointer; padding: 13px 18px; display: flex; align-items: center; gap: 10px; }
271
343
  details.proj > summary::-webkit-details-marker { display: none; }
272
344
  details.proj > summary:hover { background: var(--surface-2); }
273
345
  details.proj > div { padding: 0 0 6px 18px; }
274
346
 
275
347
  /* usage chart */
276
348
  .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(--muted); font-size: 10px; }
280
- .chart line { stroke: var(--line); }
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; }
281
353
 
282
354
  /* transcript (history and live) */
283
- .convo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
355
+ .convo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
284
356
  .convo-head .path { color: var(--muted); font-family: var(--mono); font-size: 12px; word-break: break-all; }
285
- .log { background: var(--term-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; }
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); }
286
358
  .it { min-width: 0; }
287
359
  .it-user { justify-self: end; max-width: 82%; }
288
- .it-user .bubble { background: var(--bubble); color: var(--text); padding: 9px 15px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; }
289
- .it-text { display: flex; gap: 8px; }
290
- .it-text .mark { color: var(--text); flex: none; line-height: 1.7; }
291
- .md { min-width: 0; flex: 1; word-break: break-word; }
292
- .md p { margin: 0 0 8px; }
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; }
293
365
  .md p:last-child { margin-bottom: 0; }
294
- .md h1, .md h2, .md h3, .md h4 { margin: 12px 0 6px; font-size: 14.5px; }
295
- .md pre { background: var(--code-bg); padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 6px 0; white-space: pre; }
296
- .md table { border-collapse: collapse; margin: 6px 0; font-size: 13px; }
297
- .md th, .md td { border: 1px solid var(--line); padding: 4px 9px; text-align: left; }
298
- .md th { background: var(--surface-2); }
299
- .md blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--line-strong); color: var(--muted); }
300
- .md .li { display: flex; gap: 6px; }
301
- .md .bullet { color: var(--muted); flex: none; }
302
- .it-thinking details summary, .it-summary details summary { cursor: pointer; color: var(--muted); font-style: italic; font-size: 13px; }
303
- .it-thinking .pre { white-space: pre-wrap; color: var(--muted); font-style: italic; font-size: 13px; padding: 6px 0 0 14px; }
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); }
304
380
  .it-tool { font-family: var(--mono); font-size: 12.5px; }
305
- .it-tool .head { display: flex; gap: 8px; align-items: baseline; }
381
+ .it-tool .head { display: flex; gap: 9px; align-items: baseline; color: var(--text-2); }
306
382
  .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: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(-1px); }
383
+ .it-tool .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(-1px); }
308
384
  .it-tool.error .dot { background: var(--danger); }
309
- .it-tool.running .dot { background: var(--faint); animation: blink 1s infinite; }
310
- @keyframes blink { 50% { opacity: .2; } }
311
- .it-tool pre, .it-output pre { margin: 4px 0 0 16px; white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
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; }
312
389
  .fold { position: relative; }
313
- .fold:not(.open) pre { max-height: calc(5 * 1.55em); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
314
- .fold-btn { margin: 4px 0 0 16px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--muted); font: 12px/1.4 system-ui, sans-serif; cursor: pointer; }
315
- .fold-btn:hover { color: var(--text); border-color: var(--accent); }
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); }
316
393
  .a-add { background: var(--diff-add-bg); color: var(--diff-add-fg); }
317
394
  .a-del { background: var(--diff-del-bg); color: var(--diff-del-fg); }
318
395
  .a-add.a-word { background: var(--diff-add-word); }
@@ -321,59 +398,95 @@ details.proj > div { padding: 0 0 6px 18px; }
321
398
  .it-tool .more { margin-left: auto; font-family: inherit; font-size: 12px; background: none; border: 0; color: var(--accent-text); cursor: pointer; }
322
399
  .it-tool details > summary { cursor: pointer; list-style: none; }
323
400
  .it-tool details > summary::-webkit-details-marker { display: none; }
324
- .it-image img { max-width: 420px; max-height: 320px; border-radius: 8px; border: 1px solid var(--line); justify-self: end; }
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); }
325
402
  .it-image { justify-self: end; }
326
403
  .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(10, 12, 16, .82); cursor: zoom-out; animation: zoom-in .12s ease; }
328
- .zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
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; }
329
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; }
330
407
  .zoom-close:hover { background: rgba(255,255,255,.28); }
331
408
  @keyframes zoom-in { from { opacity: 0; } }
332
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; }
333
410
 
334
- /* live */
335
- .status-line { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
336
- .status-line .work { color: var(--accent-text); }
337
- .todos { font-size: 13px; }
338
- .todos .now { font-weight: 600; } .todos .done { color: var(--faint); text-decoration: line-through; }
339
- .dialog-box { max-height: 45vh; overflow-y: auto; border: 1px solid var(--warn); border-radius: var(--radius); padding: 12px 14px; background: var(--warn-soft); display: grid; gap: 8px; }
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); }
340
452
  .dialog-box .opts { display: grid; gap: 6px; }
341
- .dialog-box .opt { text-align: left; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
342
- .dialog-box .opt:hover { border-color: var(--accent); }
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); }
343
455
  .dialog-box .desc { color: var(--muted); font-size: 12px; }
344
456
  .thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
345
- .thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
457
+ .thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
346
458
  .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
347
- .thumb button { position: absolute; top: 2px; right: 2px; 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; }
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; }
348
460
  .dot-state { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
349
- .dot-state.busy { background: var(--warn); animation: blink 1s infinite; }
461
+ .dot-state.busy { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
350
462
  .dot-state.ask { background: var(--danger); }
351
463
 
352
464
 
353
465
  .mobile-menu, .side-backdrop { display: none; }
354
466
  .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: 8px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
356
- .remote-links a:hover, .remote-links button:hover { text-decoration: none; border-color: var(--accent); }
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; } }
357
470
  @media (max-width: 860px) {
358
471
  /* a phone (远程访问): the sidebar is a drawer (☰), the conversation takes the screen. --visible-height is the
359
472
  visual viewport (app.js syncVisualHeight): the message box stays above the on-screen keyboard */
360
473
  html, body { overflow: hidden; overscroll-behavior: none; }
361
474
  .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 .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
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); }
363
476
  .app.nav-open .side { transform: none; }
364
- .app.nav-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.35); }
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: 10px; background: var(--surface); color: var(--text); font-size: 18px; box-shadow: var(--shadow); }
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); }
366
479
  .drawer-close { display: grid !important; }
367
- .chat-head { padding-left: 60px !important; padding-top: max(14px, env(safe-area-inset-top)); }
368
- .welcome h1 { font-size: 21px; }
480
+ .chat-head { padding-left: 60px !important; padding-top: max(13px, env(safe-area-inset-top)); }
481
+ .welcome h1 { font-size: 22px; }
369
482
  .welcome { padding-top: 60px; }
370
483
  input, select, textarea, .composer textarea { font-size: 16px; } /* (no zoom on focus in iOS) */
371
484
  .composer textarea { max-height: min(240px, 30dvh); }
372
485
  .page:not(.chat) { padding: 64px 14px 40px; }
373
- .setting { grid-template-columns: 1fr; }
486
+ .setting, .def-row { grid-template-columns: 1fr; }
374
487
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
375
488
  .kv dd { margin-bottom: 8px; }
376
- .chat-log { padding: 16px 14px; }
489
+ .chat-log { padding: 18px 14px; }
377
490
  .chat-foot, .chat-head { padding-left: 12px; padding-right: 12px; }
378
491
  .chat-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
379
492
  .chat-page > .chat-composer { padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
@@ -394,7 +507,7 @@ details.proj > div { padding: 0 0 6px 18px; }
394
507
  .ws-folder { padding-right: 78px; } /* (the always-shown ⋯ and + sit over the end of the row) */
395
508
  .tip { display: none !important; }
396
509
  .pop { max-width: calc(100vw - 16px); max-height: 60dvh; }
397
- .pop button { padding: 10px 12px; }
510
+ .pop button { padding: 10px 30px 10px 12px; }
398
511
  .icon-btn { width: 36px; height: 36px; }
399
512
  /* content wider than the screen scrolls in its own box, not the page */
400
513
  .panel { overflow-x: auto; }
@@ -403,10 +516,15 @@ details.proj > div { padding: 0 0 6px 18px; }
403
516
  .it-user { max-width: 92%; }
404
517
  .it-image img { max-width: 100%; height: auto; }
405
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; }
406
522
  .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: 14px 14px 0 0; }
523
+ .modal { width: 100%; min-width: 0; max-height: var(--visible-height, 100dvh); border-radius: 16px 16px 0 0; }
408
524
  .modal.big { height: var(--visible-height, 100dvh); border-radius: 0; }
409
525
  .modal-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
410
526
  .toast { left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: none; }
411
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; }
412
530
  }