codex-weixin 0.3.8 → 0.3.10

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.
@@ -1,418 +1,418 @@
1
- :root {
2
- --canvas: #f3f5f2;
3
- --surface: #ffffff;
4
- --surface-muted: #e9eeea;
5
- --ink: #151b19;
6
- --ink-soft: #59635f;
7
- --line: #d9dfdb;
8
- --green: #12a150;
9
- --green-dark: #087239;
10
- --green-soft: #dff4e6;
11
- --amber: #b36b09;
12
- --amber-soft: #fff0d5;
13
- --red: #c8403d;
14
- --red-soft: #fde8e7;
15
- --focus: #146bd1;
16
- --shadow: 0 16px 48px rgb(23 34 29 / 14%);
17
- --radius: 6px;
18
- --content: 1180px;
19
- font-family: "Avenir Next", Avenir, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
20
- color: var(--ink);
21
- background: var(--canvas);
22
- font-synthesis: none;
23
- }
24
-
25
- * { box-sizing: border-box; }
26
- html { min-width: 320px; background: var(--canvas); }
27
- body { margin: 0; min-height: 100vh; background: var(--canvas); letter-spacing: 0; }
28
- button, input, select, textarea { font: inherit; letter-spacing: 0; }
29
- button, select { cursor: pointer; }
30
- button:disabled { cursor: not-allowed; opacity: .48; }
31
- :focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 2px; }
32
-
33
- .app-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); }
34
- .header-inner { width: min(calc(100% - 40px), var(--content)); min-height: 66px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
35
- .brand { min-width: 0; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; }
36
- .brand-mark { width: 38px; height: 38px; position: relative; flex: 0 0 38px; border-radius: var(--radius); color: white; background: var(--ink); }
37
- .brand-mark svg { position: absolute; width: 20px; height: 20px; stroke-width: 1.8; }
38
- .brand-mark svg:first-child { left: 6px; top: 6px; }
39
- .brand-mark svg:last-child { right: 3px; bottom: 3px; padding: 2px; color: white; border-radius: 50%; background: var(--green); }
40
- .brand-name { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
41
- .brand-version { min-width: max-content; padding: 3px 6px; border: 1px solid #b9c5bd; border-radius: 4px; color: var(--ink-soft); background: #f5f7f5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; font-weight: 700; line-height: 1; }
42
- .brand-version[hidden] { display: none; }
43
- .view-tabs { height: 38px; display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
44
- .tab { min-width: 82px; height: 30px; border: 0; border-radius: 4px; color: var(--ink-soft); background: transparent; font-size: 13px; font-weight: 650; }
45
- .tab:hover { color: var(--ink); }
46
- .tab.is-active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgb(20 27 25 / 12%); }
47
- .header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
48
- .github-link { color: var(--ink); text-decoration: none; }
49
-
50
- .button { min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
51
- .button svg { width: 17px; height: 17px; }
52
- .button:active:not(:disabled) { transform: translateY(1px); }
53
- .button-primary { color: white; background: var(--green-dark); }
54
- .button-primary:hover { background: #075f31; }
55
- .button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
56
- .button-secondary:hover { border-color: #b7c0bb; background: #f8faf8; }
57
- .button-danger { color: var(--red); border-color: #efc5c3; background: var(--surface); }
58
- .icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); background: var(--surface); display: inline-grid; place-items: center; }
59
- .icon-button:hover { color: var(--ink); border-color: #aeb8b2; }
60
- .icon-button svg { width: 18px; height: 18px; }
61
- .icon-button.is-danger:hover { color: var(--red); border-color: #e3aaa7; background: var(--red-soft); }
62
-
63
- .status-band { border-bottom: 1px solid var(--line); background: #e8ece9; }
64
- .status-inner { width: min(calc(100% - 40px), var(--content)); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
65
- .service-state { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
66
- .pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgb(18 161 80 / 12%); }
67
- .pulse-dot.is-error { background: var(--red); box-shadow: 0 0 0 5px rgb(200 64 61 / 12%); }
68
- .metrics { margin: 0; display: grid; grid-template-columns: 100px 100px minmax(240px, 1fr); gap: 28px; }
69
- .metrics div { min-width: 0; }
70
- .metrics dt { margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 650; text-transform: uppercase; }
71
- .metrics dd { margin: 0; overflow: hidden; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
72
- .workspace-metric { max-width: 430px; }
73
-
74
- main { min-height: calc(100vh - 151px); }
75
- .view { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 44px 0 80px; }
76
- .section-heading { min-height: 54px; margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
77
- .eyebrow { margin: 0 0 5px; color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
78
- h1, h2, p { letter-spacing: 0; }
79
- h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 750; }
80
- h2 { margin: 0; font-size: 19px; line-height: 1.3; }
81
-
82
- .account-list { display: grid; gap: 12px; }
83
- .account-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
84
- .account-main { min-height: 98px; padding: 20px; display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(140px, .7fr) minmax(180px, .8fr) auto; align-items: center; gap: 22px; }
85
- .account-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
86
- .account-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--radius); color: var(--green-dark); background: var(--green-soft); display: grid; place-items: center; }
87
- .account-avatar svg { width: 24px; height: 24px; }
88
- .account-name { min-width: 0; }
89
- .account-name strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
90
- .account-description { margin-top: 4px; color: var(--ink-soft); font-size: 11px; }
91
- .status-label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
92
- .status-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8f9994; }
93
- .status-running { color: var(--green-dark); }
94
- .status-running::before { background: var(--green); }
95
- .status-error { color: var(--red); }
96
- .status-error::before { background: var(--red); }
97
- .account-stat span { display: block; color: var(--ink-soft); font-size: 11px; }
98
- .account-stat strong { display: block; margin-top: 4px; font-size: 15px; }
99
- .account-actions { display: flex; gap: 8px; }
100
- .account-identifiers { border-top: 1px solid var(--line); background: #fcfdfc; }
101
- .account-identifiers summary { min-height: 46px; padding: 9px 20px; color: var(--ink-soft); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
102
- .account-identifiers summary::-webkit-details-marker { display: none; }
103
- .account-identifiers summary:hover { color: var(--ink); background: #f7f9f7; }
104
- .account-identifiers-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
105
- .account-identifiers-title > svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--green-dark); }
106
- .account-identifiers-title strong { color: var(--ink); font-size: 11px; }
107
- .account-identifiers-title small { overflow: hidden; font-size: 9px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
108
- .account-identifiers-chevron { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .16s ease; }
109
- .account-identifiers[open] .account-identifiers-chevron { transform: rotate(180deg); }
110
- .account-identifiers-grid { margin: 0; padding: 2px 20px 15px 43px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
111
- .account-identifiers-grid div { min-width: 0; }
112
- .account-identifiers-grid dt { margin-bottom: 4px; color: var(--ink-soft); font-size: 9px; font-weight: 750; text-transform: uppercase; }
113
- .account-identifiers-grid dd { margin: 0; }
114
- .account-identifiers-grid code { color: #26302c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
115
- .account-detail { padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfa; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
116
- .authorization-state { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
117
- .authorization-icon { width: 34px; height: 34px; border-radius: 50%; color: var(--ink-soft); background: var(--surface-muted); display: grid; place-items: center; }
118
- .authorization-icon svg { width: 17px; height: 17px; }
119
- .authorization-copy { min-width: 0; }
120
- .authorization-copy strong { display: block; font-size: 12px; }
121
- .authorization-copy span { display: block; margin-top: 2px; overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
122
- .authorization-state.is-authorized .authorization-icon { color: var(--green-dark); background: var(--green-soft); }
123
- .authorization-state.is-authorized .authorization-copy strong { color: var(--green-dark); }
124
- .authorization-state.is-pending .authorization-icon { color: var(--amber); background: var(--amber-soft); }
125
- .authorization-state.is-pending .authorization-copy strong { color: #85520b; }
126
- .authorization-action { min-height: 34px; }
127
- .pending-access { padding: 12px 20px; border-top: 1px solid #ecd4aa; background: var(--amber-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
128
- .pending-access div { min-width: 0; }
129
- .pending-access strong { display: block; font-size: 12px; }
130
- .pending-access span { display: block; margin-top: 3px; overflow: hidden; color: #78521a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
131
-
132
- .session-account-bar { min-height: 54px; padding: 10px 12px; border: 1px solid #cdd5d0; border-top-color: var(--ink); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: #f7f9f7; display: flex; align-items: center; gap: 14px; }
133
- .session-account-bar-label { flex: 0 0 auto; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
134
- .session-account-bar-label svg { width: 15px; height: 15px; }
135
- .session-workbench { min-height: 650px; border: 1px solid #cdd5d0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); overflow: hidden; box-shadow: 0 12px 32px rgb(23 34 29 / 7%); }
136
- .session-sidebar { min-width: 0; border-right: 1px solid var(--line); background: #f7f9f7; display: grid; grid-template-rows: auto minmax(0, 1fr); }
137
- .session-sidebar-head { min-height: 48px; padding: 0 15px; border-bottom: 1px solid var(--line); color: var(--ink-soft); display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
138
- .session-sidebar-head span:last-child { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; color: var(--green-dark); background: var(--green-soft); display: inline-flex; align-items: center; justify-content: center; }
139
- .session-account-tabs { min-width: 0; flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
140
- .session-account-tab { min-width: max-content; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-soft); background: transparent; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; }
141
- .session-account-tab:hover { color: var(--ink); background: white; }
142
- .session-account-tab.is-active { color: #075f31; border-color: #9ed4ae; background: var(--green-soft); }
143
- .session-account-tab svg { width: 14px; height: 14px; }
144
- .session-account-tab b { min-width: 17px; height: 17px; border-radius: 9px; color: inherit; background: rgb(255 255 255 / 72%); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
145
- .session-list { min-height: 0; max-height: 700px; overflow-y: auto; }
146
- .session-list .empty-state { min-height: 360px; margin: 12px; }
147
- .session-card { position: relative; border-bottom: 1px solid var(--line); background: transparent; transition: background-color .16s ease, box-shadow .16s ease; }
148
- .session-card:hover { background: white; }
149
- .session-card.is-selected { background: white; box-shadow: inset 3px 0 0 var(--green); }
150
- .session-open { width: 100%; padding: 17px 14px 12px 17px; border: 0; color: var(--ink); background: transparent; text-align: left; display: grid; gap: 8px; }
151
- .session-card-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
152
- .session-card-top strong { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 7px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
153
- .session-card-top time { flex: 0 0 auto; color: var(--ink-soft); font-size: 9px; }
154
- .active-mark { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); }
155
- .session-owner { min-width: 0; color: var(--ink-soft); display: flex; gap: 6px; font-size: 10px; }
156
- .session-owner strong, .session-owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
157
- .session-owner strong { color: var(--ink); }
158
- .session-workspace, .session-thread { overflow: hidden; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
159
- .session-thread.is-responding { color: var(--green-dark); font-family: inherit; font-weight: 750; }
160
- .session-actions { padding: 0 12px 12px 17px; display: flex; gap: 5px; }
161
- .session-actions .icon-button { width: 29px; height: 29px; background: transparent; }
162
- .session-actions .icon-button svg { width: 15px; height: 15px; }
163
-
164
- .chat-panel { min-width: 0; min-height: 650px; background: linear-gradient(180deg, #fff 0, #fbfcfb 100%); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
165
- .chat-header { min-height: 82px; padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
166
- .chat-header h2 { max-width: 620px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
167
- .chat-context { max-width: 720px; margin: 5px 0 0; overflow: hidden; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
168
- .chat-runtime-toolbar { min-height: 54px; padding: 9px 20px; border-bottom: 1px solid var(--line); background: #f7f9f7; display: grid; grid-template-columns: auto minmax(170px, 1fr) minmax(150px, .72fr) minmax(130px, .55fr); align-items: center; gap: 12px; }
169
- .chat-runtime-title { color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
170
- .chat-runtime-title svg { width: 14px; height: 14px; color: var(--green-dark); }
171
- .chat-runtime-toolbar label { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; }
172
- .chat-runtime-toolbar label > span { font-size: 9px; white-space: nowrap; }
173
- .chat-runtime-toolbar select { min-width: 0; min-height: 32px; height: 32px; padding-inline: 9px 28px; font-size: 10px; }
174
- .chat-messages { min-height: 0; max-height: 560px; padding: 26px 24px 30px; overflow-y: auto; scroll-behavior: smooth; background-image: radial-gradient(circle at 1px 1px, rgb(31 57 44 / 5%) 1px, transparent 0); background-size: 24px 24px; }
175
- .chat-message { width: fit-content; min-width: 0; max-width: min(78%, 720px); margin-bottom: 22px; display: grid; gap: 6px; }
176
- .chat-message.is-user { margin-left: auto; justify-items: end; }
177
- .chat-message.is-assistant { margin-right: auto; justify-items: start; }
178
- .chat-message.has-attachments { width: min(78%, 720px); }
179
- .chat-progress-group { width: min(78%, 720px); margin: 0 0 22px; color: var(--ink-soft); }
180
- .chat-progress-group summary { min-height: 32px; padding: 0 3px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-size: 10px; font-weight: 700; }
181
- .chat-progress-group summary::-webkit-details-marker { display: none; }
182
- .chat-progress-group summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
183
- .progress-summary-title { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
184
- .progress-summary-title svg { width: 14px; height: 14px; color: var(--green-dark); transition: transform 160ms ease; }
185
- .chat-progress-group[open] .progress-summary-title svg { transform: rotate(90deg); }
186
- .progress-list { margin: 5px 0 0 8px; padding: 8px 12px 8px 24px; border-left: 2px solid #b9c9c0; font-size: 11px; line-height: 1.6; }
187
- .progress-list li + li { margin-top: 7px; }
188
- .progress-list p { margin: 0; }
189
- .message-meta { padding: 0 3px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 750; }
190
- .message-meta time { font-weight: 550; }
191
- .message-bubble { max-width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 4px 14px rgb(23 34 29 / 6%); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
192
- .chat-message.is-user .message-bubble { border-color: #9ddcaf; color: #083d21; background: #bcf0c9; box-shadow: none; }
193
- .message-bubble > :first-child { margin-top: 0; }
194
- .message-bubble > :last-child { margin-bottom: 0; }
195
- .message-bubble p { margin: 0 0 10px; }
196
- .message-bubble h1, .message-bubble h2, .message-bubble h3, .message-bubble h4 { margin: 16px 0 8px; font-size: 1em; }
197
- .message-bubble ul, .message-bubble ol { margin: 8px 0; padding-left: 22px; }
198
- .message-bubble li + li { margin-top: 4px; }
199
- .message-bubble blockquote { margin: 10px 0; padding: 2px 0 2px 12px; border-left: 3px solid #94a49c; color: var(--ink-soft); }
200
- .message-bubble code { padding: 2px 5px; border-radius: 4px; color: #873d12; background: #f2eee8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
201
- .message-bubble pre { max-width: 100%; margin: 10px 0; padding: 12px; border-radius: 6px; color: #e8f3ec; background: #17211d; overflow-x: auto; }
202
- .message-bubble pre code { padding: 0; color: inherit; background: transparent; }
203
- .message-bubble a { color: #075f87; text-decoration-thickness: 1px; text-underline-offset: 2px; }
204
- .message-bubble table { display: block; max-width: 100%; border-collapse: collapse; overflow-x: auto; }
205
- .message-bubble th, .message-bubble td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; }
206
- .chat-message.has-attachments .message-bubble { width: 100%; }
207
- .message-attachments { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
208
- .message-bubble > .message-attachments:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
209
- .message-attachment { min-width: 0; }
210
- .message-attachment video, .message-attachment img { display: block; width: 100%; max-height: 360px; margin-bottom: 10px; border-radius: 6px; background: #111; object-fit: contain; }
211
- .message-attachment video { aspect-ratio: 16 / 9; }
212
- .message-attachment img { background: #f2f5f3; }
213
- .message-attachment.is-file .attachment-meta, .message-attachment.is-missing .attachment-meta { padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf8; }
214
- .attachment-meta { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; }
215
- .attachment-type-icon { width: 32px; height: 32px; border-radius: 5px; color: var(--green-dark); background: var(--green-soft); display: grid; place-items: center; }
216
- .attachment-type-icon svg { width: 16px; height: 16px; }
217
- .attachment-copy { min-width: 0; }
218
- .attachment-copy strong, .attachment-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
219
- .attachment-copy strong { font-size: 11px; }
220
- .attachment-copy small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
221
- .attachment-download { width: 32px; height: 32px; background: transparent; }
222
- .attachment-download svg { width: 15px; height: 15px; }
223
- .message-attachment.is-missing .attachment-type-icon { color: var(--red); background: var(--red-soft); }
224
- .chat-typing { width: fit-content; min-height: 38px; margin: 0 0 18px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: white; display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; box-shadow: 0 4px 14px rgb(23 34 29 / 6%); }
225
- .typing-dots { width: 25px; height: 12px; display: inline-flex; align-items: center; justify-content: space-between; }
226
- .typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: typing-dot 1.1s ease-in-out infinite; }
227
- .typing-dots i:nth-child(2) { animation-delay: .14s; }
228
- .typing-dots i:nth-child(3) { animation-delay: .28s; }
229
- .chat-loading { min-height: 100%; color: var(--ink-soft); display: grid; place-content: center; justify-items: center; gap: 13px; font-size: 11px; font-weight: 700; }
230
- .chat-empty { min-height: 100%; color: var(--ink-soft); display: grid; place-content: center; justify-items: center; text-align: center; }
231
- .chat-empty > span { width: 48px; height: 48px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 50%; background: white; display: grid; place-items: center; }
232
- .chat-empty svg { width: 21px; height: 21px; }
233
- .chat-empty strong { color: var(--ink); font-size: 13px; }
234
- .chat-empty p { max-width: 320px; margin: 6px 0 0; font-size: 10px; }
235
- .chat-composer { padding: 12px 16px 9px; border-top: 1px solid var(--line); background: white; display: grid; gap: 9px; }
236
- .composer-controls { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 9px; }
237
- .chat-composer textarea { min-height: 74px; max-height: 180px; padding: 12px 14px; resize: vertical; }
238
- .chat-attach { width: 42px; height: 42px; color: var(--green-dark); background: var(--green-soft); }
239
- .chat-send { min-width: 78px; height: 42px; }
240
- .composer-hint { margin: 0 0 0 51px; color: var(--ink-soft); font-size: 9px; }
241
- .composer-files { padding-left: 51px; display: flex; flex-wrap: wrap; gap: 7px; }
242
- .composer-files[hidden] { display: none; }
243
- .composer-file { min-width: 0; max-width: min(100%, 290px); height: 36px; padding: 0 4px 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f7; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
244
- .composer-file > svg { width: 15px; height: 15px; color: var(--green-dark); }
245
- .composer-file-copy { min-width: 0; overflow: hidden; display: flex; align-items: baseline; gap: 6px; }
246
- .composer-file-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
247
- .composer-file-copy small { flex: 0 0 auto; color: var(--ink-soft); font-size: 8px; }
248
- .composer-file-remove { width: 27px; height: 27px; border: 0; background: transparent; }
249
- .composer-file-remove svg { width: 14px; height: 14px; }
250
-
251
- .empty-state { min-height: 280px; padding: 48px 24px; border: 1px dashed #bbc4bf; border-radius: var(--radius); display: grid; place-items: center; text-align: center; }
252
- .empty-state-inner { max-width: 360px; }
253
- .empty-icon { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: var(--radius); color: var(--ink-soft); background: var(--surface-muted); display: grid; place-items: center; }
254
- .empty-icon svg { width: 25px; height: 25px; }
255
- .empty-state h2 { font-size: 16px; }
256
- .empty-state p { margin: 7px 0 20px; color: var(--ink-soft); font-size: 12px; }
257
-
258
- .settings-form { border-top: 1px solid var(--ink); }
259
- .settings-group { padding: 26px 0 30px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
260
- .settings-group h2 { font-size: 14px; }
261
- .settings-group > label, .field-grid, .settings-update { width: 100%; max-width: 720px; grid-column: 2; }
262
- .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
263
- .settings-update { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
264
- .settings-update-version { min-width: 0; display: grid; gap: 4px; }
265
- .settings-update-version small { color: var(--ink-soft); font-size: 9px; font-weight: 700; }
266
- .settings-update-version strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
267
- .button.is-loading svg { animation: spin .8s linear infinite; }
268
- .toggle-field { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8faf8; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
269
- .toggle-control { width: 38px; height: 22px; position: relative; flex: 0 0 38px; }
270
- .toggle-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
271
- .toggle-control > span { position: absolute; inset: 0; border: 1px solid #aeb8b2; border-radius: 11px; background: #dfe4e1; transition: background-color .16s ease, border-color .16s ease; }
272
- .toggle-control > span::after { content: ""; width: 16px; height: 16px; position: absolute; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgb(23 34 29 / 24%); transition: transform .16s ease; }
273
- .toggle-control input:checked + span { border-color: var(--green-dark); background: var(--green); }
274
- .toggle-control input:checked + span::after { transform: translateX(16px); }
275
- .toggle-control input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 2px; }
276
- label { min-width: 0; display: grid; gap: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
277
- .field-hint { color: var(--ink-soft); font-size: 10px; font-weight: 500; line-height: 1.5; }
278
- .effective-setting { min-width: 0; display: flex; align-items: center; gap: 7px; }
279
- .effective-setting span { flex: 0 0 auto; }
280
- .effective-setting strong { min-width: 0; overflow: hidden; color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
281
- input, select, textarea { width: 100%; border: 1px solid #bdc6c1; border-radius: var(--radius); color: var(--ink); background: var(--surface); }
282
- input, select { min-height: 42px; padding: 0 12px; }
283
- textarea { min-height: 110px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
284
- input:hover, select:hover, textarea:hover { border-color: #8e9a93; }
285
- input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid color-mix(in srgb, var(--focus) 15%, transparent); }
286
- .form-actions { padding-top: 24px; display: flex; justify-content: end; }
287
-
288
- .modal { width: min(calc(100% - 32px), 480px); max-height: min(760px, calc(100vh - 32px)); padding: 0; border: 1px solid #c7cfca; border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
289
- .modal::backdrop { background: rgb(15 22 19 / 46%); backdrop-filter: blur(3px); }
290
- .modal-header { min-height: 78px; padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
291
- .modal-header h2 { font-size: 18px; }
292
- .modal-body { padding: 22px 20px; }
293
- .modal-footer { min-height: 70px; padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: end; gap: 10px; }
294
- .account-removal-body { display: grid; gap: 16px; }
295
- .account-removal-lead { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
296
- .account-removal-lead strong { color: var(--ink); }
297
- .account-removal-choices { display: grid; gap: 9px; }
298
- .account-removal-choice { position: relative; cursor: pointer; }
299
- .account-removal-choice > input { position: absolute; width: 1px; min-height: 1px; margin: 0; opacity: 0; pointer-events: none; }
300
- .account-removal-option { min-height: 76px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
301
- .account-removal-option-icon { width: 36px; height: 36px; border-radius: var(--radius); color: var(--green-dark); background: var(--green-soft); display: grid; place-items: center; }
302
- .account-removal-option-icon svg { width: 18px; height: 18px; }
303
- .account-removal-option strong, .account-removal-option small { display: block; }
304
- .account-removal-option strong { margin-bottom: 4px; font-size: 13px; }
305
- .account-removal-option small { color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
306
- .account-removal-choice > input:checked + .account-removal-option { border-color: var(--green); background: #f4faf6; box-shadow: 0 0 0 2px rgb(18 161 80 / 10%); }
307
- .account-removal-choice > input:focus-visible + .account-removal-option { outline: 3px solid color-mix(in srgb, var(--focus) 18%, transparent); }
308
- .account-removal-choice.is-destructive .account-removal-option-icon { color: var(--red); background: var(--red-soft); }
309
- .account-removal-choice.is-destructive > input:checked + .account-removal-option { border-color: #d6908d; background: #fff7f6; box-shadow: 0 0 0 2px rgb(200 64 61 / 9%); }
310
- .account-removal-note { margin: 0; padding-top: 2px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; display: flex; align-items: center; gap: 7px; }
311
- .account-removal-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--green-dark); }
312
- .update-modal { width: min(calc(100% - 32px), 520px); }
313
- .update-modal-header { background: #f8faf8; }
314
- .update-modal-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: var(--radius); color: var(--green-dark); background: var(--green-soft); display: grid; place-items: center; }
315
- .update-modal-icon svg { width: 21px; height: 21px; }
316
- .update-modal-body { display: grid; gap: 17px; }
317
- .update-version-flow { min-height: 86px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; gap: 22px; }
318
- .update-version-item { min-width: 0; }
319
- .update-version-flow small { margin-bottom: 5px; color: var(--ink-soft); font-size: 9px; font-weight: 750; display: block; }
320
- .update-version-flow strong { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; display: block; }
321
- .update-version-divider { width: 1px; height: 38px; background: #c8d0cb; }
322
- .update-version-flow .is-latest { text-align: right; }
323
- .update-version-flow .is-latest strong { color: var(--green-dark); }
324
- .update-description { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
325
- .update-progress { min-height: 64px; padding: 12px 14px; border: 1px solid #b9ddc7; border-radius: var(--radius); background: var(--green-soft); display: flex; align-items: center; gap: 13px; }
326
- .update-progress[hidden] { display: none; }
327
- .update-progress .spinner { width: 25px; height: 25px; flex: 0 0 25px; border-color: rgb(8 114 57 / 18%); border-top-color: var(--green-dark); }
328
- .update-progress strong, .update-progress span { display: block; }
329
- .update-progress strong { color: var(--green-dark); font-size: 11px; }
330
- .update-progress div span { margin-top: 3px; color: #466453; font-size: 9px; }
331
- .update-progress.is-error { border-color: #efc5c3; background: var(--red-soft); }
332
- .update-progress.is-error .spinner { display: none; }
333
- .update-progress.is-error strong { color: var(--red); }
334
- .update-progress.is-error div span { color: #7c4442; }
335
- .qr-stage { min-height: 390px; padding: 28px 20px 22px; display: grid; justify-items: center; align-content: center; }
336
- .qr-frame { width: 300px; height: 300px; border: 1px solid var(--line); border-radius: var(--radius); background: white; display: grid; place-items: center; overflow: hidden; }
337
- .qr-frame img { width: 100%; height: 100%; object-fit: contain; }
338
- .qr-status { min-height: 20px; margin: 16px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
339
- .qr-status.is-success { color: var(--green-dark); }
340
- .qr-status.is-error { color: var(--red); }
341
- .spinner { width: 30px; height: 30px; border: 3px solid var(--surface-muted); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
342
- .form-stack { display: grid; gap: 18px; }
343
- .toast-region { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: min(360px, calc(100% - 40px)); display: grid; gap: 8px; pointer-events: none; }
344
- .toast { min-height: 48px; padding: 13px 15px; border: 1px solid #bac4be; border-radius: var(--radius); color: white; background: #28312e; box-shadow: 0 10px 28px rgb(20 27 25 / 20%); font-size: 12px; font-weight: 650; animation: toast-in .2s ease-out; }
345
- .toast.is-error { background: #8e2927; border-color: #b85551; }
346
- .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
347
-
348
- @keyframes spin { to { transform: rotate(360deg); } }
349
- @keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }
350
- @keyframes typing-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
351
-
352
- @media (max-width: 900px) {
353
- .header-inner { grid-template-columns: 1fr auto; }
354
- .view-tabs { order: 3; grid-column: 1 / -1; width: 100%; margin-bottom: 10px; }
355
- .tab { flex: 1; }
356
- .app-header { position: static; }
357
- .metrics { grid-template-columns: 88px 88px minmax(180px, 1fr); gap: 18px; }
358
- .account-main { grid-template-columns: minmax(220px, 1fr) 110px auto; }
359
- .account-main .account-stat:first-of-type { display: none; }
360
- .session-workbench { grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); }
361
- .chat-message { max-width: 88%; }
362
- }
363
-
364
- @media (max-width: 760px) {
365
- .session-workbench { min-height: 0; grid-template-columns: 1fr; }
366
- .session-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
367
- .session-list { max-height: 310px; }
368
- .chat-panel { min-height: 620px; }
369
- }
370
-
371
- @media (max-width: 640px) {
372
- .header-inner, .status-inner, .view { width: min(calc(100% - 24px), var(--content)); }
373
- .header-inner { min-height: 62px; gap: 12px; }
374
- .brand-name { max-width: 178px; font-size: 13px; }
375
- .brand-version { padding-inline: 5px; font-size: 8px; }
376
- .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
377
- .header-action { width: 38px; padding: 0; }
378
- .header-action span { display: none; }
379
- .status-inner { padding: 16px 0; align-items: start; display: grid; gap: 15px; }
380
- .metrics { width: 100%; grid-template-columns: 1fr 1fr; }
381
- .workspace-metric { grid-column: 1 / -1; max-width: none; }
382
- .view { padding: 30px 0 56px; }
383
- h1 { font-size: 25px; }
384
- .section-heading { align-items: center; }
385
- .account-main { padding: 16px; grid-template-columns: 1fr auto; gap: 16px; }
386
- .account-main .account-stat { display: none; }
387
- .account-actions { grid-column: 2; grid-row: 1; }
388
- .account-detail, .pending-access { padding: 12px 16px; align-items: start; flex-direction: column; }
389
- .account-identifiers summary { padding-inline: 16px; }
390
- .account-identifiers-grid { padding: 2px 16px 14px 39px; grid-template-columns: 1fr; gap: 10px; }
391
- .authorization-state { grid-template-columns: auto minmax(0, 1fr); }
392
- .authorization-action { width: 100%; grid-column: 1 / -1; }
393
- .pending-access .button { width: 100%; }
394
- .session-account-bar { padding: 10px; align-items: stretch; flex-direction: column; gap: 8px; }
395
- .session-account-bar-label { padding-inline: 2px; }
396
- .session-account-tabs { width: 100%; }
397
- .chat-header { padding: 15px 16px; }
398
- .chat-runtime-toolbar { padding: 10px 12px; grid-template-columns: 1fr 1fr; gap: 8px; }
399
- .chat-runtime-title { grid-column: 1 / -1; }
400
- .chat-runtime-toolbar label { grid-template-columns: 1fr; gap: 4px; }
401
- .chat-messages { padding: 22px 14px 26px; }
402
- .chat-message { max-width: 92%; }
403
- .chat-composer { padding-inline: 12px; }
404
- .composer-controls { grid-template-columns: 38px minmax(0, 1fr) 70px; gap: 7px; }
405
- .chat-attach { width: 38px; }
406
- .chat-send { min-width: 70px; padding-inline: 10px; }
407
- .composer-files { padding-left: 45px; }
408
- .composer-hint { margin-left: 45px; }
409
- .settings-group { grid-template-columns: 1fr; gap: 16px; }
410
- .settings-group > label, .field-grid, .settings-update { grid-column: 1; }
411
- .field-grid { grid-template-columns: 1fr; }
412
- .qr-stage { min-height: 342px; padding-inline: 16px; }
413
- .qr-frame { width: min(280px, calc(100vw - 72px)); height: min(280px, calc(100vw - 72px)); }
414
- }
415
-
416
- @media (prefers-reduced-motion: reduce) {
417
- *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
418
- }
1
+ :root {
2
+ --canvas: #f3f5f2;
3
+ --surface: #ffffff;
4
+ --surface-muted: #e9eeea;
5
+ --ink: #151b19;
6
+ --ink-soft: #59635f;
7
+ --line: #d9dfdb;
8
+ --green: #12a150;
9
+ --green-dark: #087239;
10
+ --green-soft: #dff4e6;
11
+ --amber: #b36b09;
12
+ --amber-soft: #fff0d5;
13
+ --red: #c8403d;
14
+ --red-soft: #fde8e7;
15
+ --focus: #146bd1;
16
+ --shadow: 0 16px 48px rgb(23 34 29 / 14%);
17
+ --radius: 6px;
18
+ --content: 1180px;
19
+ font-family: "Avenir Next", Avenir, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
20
+ color: var(--ink);
21
+ background: var(--canvas);
22
+ font-synthesis: none;
23
+ }
24
+
25
+ * { box-sizing: border-box; }
26
+ html { min-width: 320px; background: var(--canvas); }
27
+ body { margin: 0; min-height: 100vh; background: var(--canvas); letter-spacing: 0; }
28
+ button, input, select, textarea { font: inherit; letter-spacing: 0; }
29
+ button, select { cursor: pointer; }
30
+ button:disabled { cursor: not-allowed; opacity: .48; }
31
+ :focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 2px; }
32
+
33
+ .app-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); }
34
+ .header-inner { width: min(calc(100% - 40px), var(--content)); min-height: 66px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
35
+ .brand { min-width: 0; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; }
36
+ .brand-mark { width: 38px; height: 38px; position: relative; flex: 0 0 38px; border-radius: var(--radius); color: white; background: var(--ink); }
37
+ .brand-mark svg { position: absolute; width: 20px; height: 20px; stroke-width: 1.8; }
38
+ .brand-mark svg:first-child { left: 6px; top: 6px; }
39
+ .brand-mark svg:last-child { right: 3px; bottom: 3px; padding: 2px; color: white; border-radius: 50%; background: var(--green); }
40
+ .brand-name { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
41
+ .brand-version { min-width: max-content; padding: 3px 6px; border: 1px solid #b9c5bd; border-radius: 4px; color: var(--ink-soft); background: #f5f7f5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; font-weight: 700; line-height: 1; }
42
+ .brand-version[hidden] { display: none; }
43
+ .view-tabs { height: 38px; display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
44
+ .tab { min-width: 82px; height: 30px; border: 0; border-radius: 4px; color: var(--ink-soft); background: transparent; font-size: 13px; font-weight: 650; }
45
+ .tab:hover { color: var(--ink); }
46
+ .tab.is-active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgb(20 27 25 / 12%); }
47
+ .header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
48
+ .github-link { color: var(--ink); text-decoration: none; }
49
+
50
+ .button { min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
51
+ .button svg { width: 17px; height: 17px; }
52
+ .button:active:not(:disabled) { transform: translateY(1px); }
53
+ .button-primary { color: white; background: var(--green-dark); }
54
+ .button-primary:hover { background: #075f31; }
55
+ .button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
56
+ .button-secondary:hover { border-color: #b7c0bb; background: #f8faf8; }
57
+ .button-danger { color: var(--red); border-color: #efc5c3; background: var(--surface); }
58
+ .icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); background: var(--surface); display: inline-grid; place-items: center; }
59
+ .icon-button:hover { color: var(--ink); border-color: #aeb8b2; }
60
+ .icon-button svg { width: 18px; height: 18px; }
61
+ .icon-button.is-danger:hover { color: var(--red); border-color: #e3aaa7; background: var(--red-soft); }
62
+
63
+ .status-band { border-bottom: 1px solid var(--line); background: #e8ece9; }
64
+ .status-inner { width: min(calc(100% - 40px), var(--content)); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
65
+ .service-state { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
66
+ .pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgb(18 161 80 / 12%); }
67
+ .pulse-dot.is-error { background: var(--red); box-shadow: 0 0 0 5px rgb(200 64 61 / 12%); }
68
+ .metrics { margin: 0; display: grid; grid-template-columns: 100px 100px minmax(240px, 1fr); gap: 28px; }
69
+ .metrics div { min-width: 0; }
70
+ .metrics dt { margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 650; text-transform: uppercase; }
71
+ .metrics dd { margin: 0; overflow: hidden; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
72
+ .workspace-metric { max-width: 430px; }
73
+
74
+ main { min-height: calc(100vh - 151px); }
75
+ .view { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 44px 0 80px; }
76
+ .section-heading { min-height: 54px; margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
77
+ .eyebrow { margin: 0 0 5px; color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
78
+ h1, h2, p { letter-spacing: 0; }
79
+ h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 750; }
80
+ h2 { margin: 0; font-size: 19px; line-height: 1.3; }
81
+
82
+ .account-list { display: grid; gap: 12px; }
83
+ .account-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
84
+ .account-main { min-height: 98px; padding: 20px; display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(140px, .7fr) minmax(180px, .8fr) auto; align-items: center; gap: 22px; }
85
+ .account-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
86
+ .account-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--radius); color: var(--green-dark); background: var(--green-soft); display: grid; place-items: center; }
87
+ .account-avatar svg { width: 24px; height: 24px; }
88
+ .account-name { min-width: 0; }
89
+ .account-name strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
90
+ .account-description { margin-top: 4px; color: var(--ink-soft); font-size: 11px; }
91
+ .status-label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
92
+ .status-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8f9994; }
93
+ .status-running { color: var(--green-dark); }
94
+ .status-running::before { background: var(--green); }
95
+ .status-error { color: var(--red); }
96
+ .status-error::before { background: var(--red); }
97
+ .account-stat span { display: block; color: var(--ink-soft); font-size: 11px; }
98
+ .account-stat strong { display: block; margin-top: 4px; font-size: 15px; }
99
+ .account-actions { display: flex; gap: 8px; }
100
+ .account-identifiers { border-top: 1px solid var(--line); background: #fcfdfc; }
101
+ .account-identifiers summary { min-height: 46px; padding: 9px 20px; color: var(--ink-soft); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
102
+ .account-identifiers summary::-webkit-details-marker { display: none; }
103
+ .account-identifiers summary:hover { color: var(--ink); background: #f7f9f7; }
104
+ .account-identifiers-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
105
+ .account-identifiers-title > svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--green-dark); }
106
+ .account-identifiers-title strong { color: var(--ink); font-size: 11px; }
107
+ .account-identifiers-title small { overflow: hidden; font-size: 9px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
108
+ .account-identifiers-chevron { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .16s ease; }
109
+ .account-identifiers[open] .account-identifiers-chevron { transform: rotate(180deg); }
110
+ .account-identifiers-grid { margin: 0; padding: 2px 20px 15px 43px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
111
+ .account-identifiers-grid div { min-width: 0; }
112
+ .account-identifiers-grid dt { margin-bottom: 4px; color: var(--ink-soft); font-size: 9px; font-weight: 750; text-transform: uppercase; }
113
+ .account-identifiers-grid dd { margin: 0; }
114
+ .account-identifiers-grid code { color: #26302c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
115
+ .account-detail { padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfa; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
116
+ .authorization-state { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
117
+ .authorization-icon { width: 34px; height: 34px; border-radius: 50%; color: var(--ink-soft); background: var(--surface-muted); display: grid; place-items: center; }
118
+ .authorization-icon svg { width: 17px; height: 17px; }
119
+ .authorization-copy { min-width: 0; }
120
+ .authorization-copy strong { display: block; font-size: 12px; }
121
+ .authorization-copy span { display: block; margin-top: 2px; overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
122
+ .authorization-state.is-authorized .authorization-icon { color: var(--green-dark); background: var(--green-soft); }
123
+ .authorization-state.is-authorized .authorization-copy strong { color: var(--green-dark); }
124
+ .authorization-state.is-pending .authorization-icon { color: var(--amber); background: var(--amber-soft); }
125
+ .authorization-state.is-pending .authorization-copy strong { color: #85520b; }
126
+ .authorization-action { min-height: 34px; }
127
+ .pending-access { padding: 12px 20px; border-top: 1px solid #ecd4aa; background: var(--amber-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
128
+ .pending-access div { min-width: 0; }
129
+ .pending-access strong { display: block; font-size: 12px; }
130
+ .pending-access span { display: block; margin-top: 3px; overflow: hidden; color: #78521a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
131
+
132
+ .session-account-bar { min-height: 54px; padding: 10px 12px; border: 1px solid #cdd5d0; border-top-color: var(--ink); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: #f7f9f7; display: flex; align-items: center; gap: 14px; }
133
+ .session-account-bar-label { flex: 0 0 auto; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
134
+ .session-account-bar-label svg { width: 15px; height: 15px; }
135
+ .session-workbench { min-height: 650px; border: 1px solid #cdd5d0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); overflow: hidden; box-shadow: 0 12px 32px rgb(23 34 29 / 7%); }
136
+ .session-sidebar { min-width: 0; border-right: 1px solid var(--line); background: #f7f9f7; display: grid; grid-template-rows: auto minmax(0, 1fr); }
137
+ .session-sidebar-head { min-height: 48px; padding: 0 15px; border-bottom: 1px solid var(--line); color: var(--ink-soft); display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
138
+ .session-sidebar-head span:last-child { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; color: var(--green-dark); background: var(--green-soft); display: inline-flex; align-items: center; justify-content: center; }
139
+ .session-account-tabs { min-width: 0; flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
140
+ .session-account-tab { min-width: max-content; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-soft); background: transparent; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; }
141
+ .session-account-tab:hover { color: var(--ink); background: white; }
142
+ .session-account-tab.is-active { color: #075f31; border-color: #9ed4ae; background: var(--green-soft); }
143
+ .session-account-tab svg { width: 14px; height: 14px; }
144
+ .session-account-tab b { min-width: 17px; height: 17px; border-radius: 9px; color: inherit; background: rgb(255 255 255 / 72%); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
145
+ .session-list { min-height: 0; max-height: 700px; overflow-y: auto; }
146
+ .session-list .empty-state { min-height: 360px; margin: 12px; }
147
+ .session-card { position: relative; border-bottom: 1px solid var(--line); background: transparent; transition: background-color .16s ease, box-shadow .16s ease; }
148
+ .session-card:hover { background: white; }
149
+ .session-card.is-selected { background: white; box-shadow: inset 3px 0 0 var(--green); }
150
+ .session-open { width: 100%; padding: 17px 14px 12px 17px; border: 0; color: var(--ink); background: transparent; text-align: left; display: grid; gap: 8px; }
151
+ .session-card-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
152
+ .session-card-top strong { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 7px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
153
+ .session-card-top time { flex: 0 0 auto; color: var(--ink-soft); font-size: 9px; }
154
+ .active-mark { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); }
155
+ .session-owner { min-width: 0; color: var(--ink-soft); display: flex; gap: 6px; font-size: 10px; }
156
+ .session-owner strong, .session-owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
157
+ .session-owner strong { color: var(--ink); }
158
+ .session-workspace, .session-thread { overflow: hidden; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
159
+ .session-thread.is-responding { color: var(--green-dark); font-family: inherit; font-weight: 750; }
160
+ .session-actions { padding: 0 12px 12px 17px; display: flex; gap: 5px; }
161
+ .session-actions .icon-button { width: 29px; height: 29px; background: transparent; }
162
+ .session-actions .icon-button svg { width: 15px; height: 15px; }
163
+
164
+ .chat-panel { min-width: 0; min-height: 650px; background: linear-gradient(180deg, #fff 0, #fbfcfb 100%); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
165
+ .chat-header { min-height: 82px; padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
166
+ .chat-header h2 { max-width: 620px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
167
+ .chat-context { max-width: 720px; margin: 5px 0 0; overflow: hidden; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
168
+ .chat-runtime-toolbar { min-height: 54px; padding: 9px 20px; border-bottom: 1px solid var(--line); background: #f7f9f7; display: grid; grid-template-columns: auto minmax(170px, 1fr) minmax(150px, .72fr) minmax(130px, .55fr); align-items: center; gap: 12px; }
169
+ .chat-runtime-title { color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
170
+ .chat-runtime-title svg { width: 14px; height: 14px; color: var(--green-dark); }
171
+ .chat-runtime-toolbar label { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; }
172
+ .chat-runtime-toolbar label > span { font-size: 9px; white-space: nowrap; }
173
+ .chat-runtime-toolbar select { min-width: 0; min-height: 32px; height: 32px; padding-inline: 9px 28px; font-size: 10px; }
174
+ .chat-messages { min-height: 0; max-height: 560px; padding: 26px 24px 30px; overflow-y: auto; scroll-behavior: smooth; background-image: radial-gradient(circle at 1px 1px, rgb(31 57 44 / 5%) 1px, transparent 0); background-size: 24px 24px; }
175
+ .chat-message { width: fit-content; min-width: 0; max-width: min(78%, 720px); margin-bottom: 22px; display: grid; gap: 6px; }
176
+ .chat-message.is-user { margin-left: auto; justify-items: end; }
177
+ .chat-message.is-assistant { margin-right: auto; justify-items: start; }
178
+ .chat-message.has-attachments { width: min(78%, 720px); }
179
+ .chat-progress-group { width: min(78%, 720px); margin: 0 0 22px; color: var(--ink-soft); }
180
+ .chat-progress-group summary { min-height: 32px; padding: 0 3px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-size: 10px; font-weight: 700; }
181
+ .chat-progress-group summary::-webkit-details-marker { display: none; }
182
+ .chat-progress-group summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
183
+ .progress-summary-title { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
184
+ .progress-summary-title svg { width: 14px; height: 14px; color: var(--green-dark); transition: transform 160ms ease; }
185
+ .chat-progress-group[open] .progress-summary-title svg { transform: rotate(90deg); }
186
+ .progress-list { margin: 5px 0 0 8px; padding: 8px 12px 8px 24px; border-left: 2px solid #b9c9c0; font-size: 11px; line-height: 1.6; }
187
+ .progress-list li + li { margin-top: 7px; }
188
+ .progress-list p { margin: 0; }
189
+ .message-meta { padding: 0 3px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 750; }
190
+ .message-meta time { font-weight: 550; }
191
+ .message-bubble { max-width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 4px 14px rgb(23 34 29 / 6%); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
192
+ .chat-message.is-user .message-bubble { border-color: #9ddcaf; color: #083d21; background: #bcf0c9; box-shadow: none; }
193
+ .message-bubble > :first-child { margin-top: 0; }
194
+ .message-bubble > :last-child { margin-bottom: 0; }
195
+ .message-bubble p { margin: 0 0 10px; }
196
+ .message-bubble h1, .message-bubble h2, .message-bubble h3, .message-bubble h4 { margin: 16px 0 8px; font-size: 1em; }
197
+ .message-bubble ul, .message-bubble ol { margin: 8px 0; padding-left: 22px; }
198
+ .message-bubble li + li { margin-top: 4px; }
199
+ .message-bubble blockquote { margin: 10px 0; padding: 2px 0 2px 12px; border-left: 3px solid #94a49c; color: var(--ink-soft); }
200
+ .message-bubble code { padding: 2px 5px; border-radius: 4px; color: #873d12; background: #f2eee8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
201
+ .message-bubble pre { max-width: 100%; margin: 10px 0; padding: 12px; border-radius: 6px; color: #e8f3ec; background: #17211d; overflow-x: auto; }
202
+ .message-bubble pre code { padding: 0; color: inherit; background: transparent; }
203
+ .message-bubble a { color: #075f87; text-decoration-thickness: 1px; text-underline-offset: 2px; }
204
+ .message-bubble table { display: block; max-width: 100%; border-collapse: collapse; overflow-x: auto; }
205
+ .message-bubble th, .message-bubble td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; }
206
+ .chat-message.has-attachments .message-bubble { width: 100%; }
207
+ .message-attachments { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
208
+ .message-bubble > .message-attachments:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
209
+ .message-attachment { min-width: 0; }
210
+ .message-attachment video, .message-attachment img { display: block; width: 100%; max-height: 360px; margin-bottom: 10px; border-radius: 6px; background: #111; object-fit: contain; }
211
+ .message-attachment video { aspect-ratio: 16 / 9; }
212
+ .message-attachment img { background: #f2f5f3; }
213
+ .message-attachment.is-file .attachment-meta, .message-attachment.is-missing .attachment-meta { padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf8; }
214
+ .attachment-meta { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; }
215
+ .attachment-type-icon { width: 32px; height: 32px; border-radius: 5px; color: var(--green-dark); background: var(--green-soft); display: grid; place-items: center; }
216
+ .attachment-type-icon svg { width: 16px; height: 16px; }
217
+ .attachment-copy { min-width: 0; }
218
+ .attachment-copy strong, .attachment-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
219
+ .attachment-copy strong { font-size: 11px; }
220
+ .attachment-copy small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
221
+ .attachment-download { width: 32px; height: 32px; background: transparent; }
222
+ .attachment-download svg { width: 15px; height: 15px; }
223
+ .message-attachment.is-missing .attachment-type-icon { color: var(--red); background: var(--red-soft); }
224
+ .chat-typing { width: fit-content; min-height: 38px; margin: 0 0 18px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: white; display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; box-shadow: 0 4px 14px rgb(23 34 29 / 6%); }
225
+ .typing-dots { width: 25px; height: 12px; display: inline-flex; align-items: center; justify-content: space-between; }
226
+ .typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: typing-dot 1.1s ease-in-out infinite; }
227
+ .typing-dots i:nth-child(2) { animation-delay: .14s; }
228
+ .typing-dots i:nth-child(3) { animation-delay: .28s; }
229
+ .chat-loading { min-height: 100%; color: var(--ink-soft); display: grid; place-content: center; justify-items: center; gap: 13px; font-size: 11px; font-weight: 700; }
230
+ .chat-empty { min-height: 100%; color: var(--ink-soft); display: grid; place-content: center; justify-items: center; text-align: center; }
231
+ .chat-empty > span { width: 48px; height: 48px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 50%; background: white; display: grid; place-items: center; }
232
+ .chat-empty svg { width: 21px; height: 21px; }
233
+ .chat-empty strong { color: var(--ink); font-size: 13px; }
234
+ .chat-empty p { max-width: 320px; margin: 6px 0 0; font-size: 10px; }
235
+ .chat-composer { padding: 12px 16px 9px; border-top: 1px solid var(--line); background: white; display: grid; gap: 9px; }
236
+ .composer-controls { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 9px; }
237
+ .chat-composer textarea { min-height: 74px; max-height: 180px; padding: 12px 14px; resize: vertical; }
238
+ .chat-attach { width: 42px; height: 42px; color: var(--green-dark); background: var(--green-soft); }
239
+ .chat-send { min-width: 78px; height: 42px; }
240
+ .composer-hint { margin: 0 0 0 51px; color: var(--ink-soft); font-size: 9px; }
241
+ .composer-files { padding-left: 51px; display: flex; flex-wrap: wrap; gap: 7px; }
242
+ .composer-files[hidden] { display: none; }
243
+ .composer-file { min-width: 0; max-width: min(100%, 290px); height: 36px; padding: 0 4px 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f7; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
244
+ .composer-file > svg { width: 15px; height: 15px; color: var(--green-dark); }
245
+ .composer-file-copy { min-width: 0; overflow: hidden; display: flex; align-items: baseline; gap: 6px; }
246
+ .composer-file-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
247
+ .composer-file-copy small { flex: 0 0 auto; color: var(--ink-soft); font-size: 8px; }
248
+ .composer-file-remove { width: 27px; height: 27px; border: 0; background: transparent; }
249
+ .composer-file-remove svg { width: 14px; height: 14px; }
250
+
251
+ .empty-state { min-height: 280px; padding: 48px 24px; border: 1px dashed #bbc4bf; border-radius: var(--radius); display: grid; place-items: center; text-align: center; }
252
+ .empty-state-inner { max-width: 360px; }
253
+ .empty-icon { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: var(--radius); color: var(--ink-soft); background: var(--surface-muted); display: grid; place-items: center; }
254
+ .empty-icon svg { width: 25px; height: 25px; }
255
+ .empty-state h2 { font-size: 16px; }
256
+ .empty-state p { margin: 7px 0 20px; color: var(--ink-soft); font-size: 12px; }
257
+
258
+ .settings-form { border-top: 1px solid var(--ink); }
259
+ .settings-group { padding: 26px 0 30px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
260
+ .settings-group h2 { font-size: 14px; }
261
+ .settings-group > label, .field-grid, .settings-update { width: 100%; max-width: 720px; grid-column: 2; }
262
+ .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
263
+ .settings-update { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
264
+ .settings-update-version { min-width: 0; display: grid; gap: 4px; }
265
+ .settings-update-version small { color: var(--ink-soft); font-size: 9px; font-weight: 700; }
266
+ .settings-update-version strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
267
+ .button.is-loading svg { animation: spin .8s linear infinite; }
268
+ .toggle-field { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8faf8; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
269
+ .toggle-control { width: 38px; height: 22px; position: relative; flex: 0 0 38px; }
270
+ .toggle-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
271
+ .toggle-control > span { position: absolute; inset: 0; border: 1px solid #aeb8b2; border-radius: 11px; background: #dfe4e1; transition: background-color .16s ease, border-color .16s ease; }
272
+ .toggle-control > span::after { content: ""; width: 16px; height: 16px; position: absolute; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgb(23 34 29 / 24%); transition: transform .16s ease; }
273
+ .toggle-control input:checked + span { border-color: var(--green-dark); background: var(--green); }
274
+ .toggle-control input:checked + span::after { transform: translateX(16px); }
275
+ .toggle-control input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 2px; }
276
+ label { min-width: 0; display: grid; gap: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
277
+ .field-hint { color: var(--ink-soft); font-size: 10px; font-weight: 500; line-height: 1.5; }
278
+ .effective-setting { min-width: 0; display: flex; align-items: center; gap: 7px; }
279
+ .effective-setting span { flex: 0 0 auto; }
280
+ .effective-setting strong { min-width: 0; overflow: hidden; color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
281
+ input, select, textarea { width: 100%; border: 1px solid #bdc6c1; border-radius: var(--radius); color: var(--ink); background: var(--surface); }
282
+ input, select { min-height: 42px; padding: 0 12px; }
283
+ textarea { min-height: 110px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
284
+ input:hover, select:hover, textarea:hover { border-color: #8e9a93; }
285
+ input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid color-mix(in srgb, var(--focus) 15%, transparent); }
286
+ .form-actions { padding-top: 24px; display: flex; justify-content: end; }
287
+
288
+ .modal { width: min(calc(100% - 32px), 480px); max-height: min(760px, calc(100vh - 32px)); padding: 0; border: 1px solid #c7cfca; border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
289
+ .modal::backdrop { background: rgb(15 22 19 / 46%); backdrop-filter: blur(3px); }
290
+ .modal-header { min-height: 78px; padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
291
+ .modal-header h2 { font-size: 18px; }
292
+ .modal-body { padding: 22px 20px; }
293
+ .modal-footer { min-height: 70px; padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: end; gap: 10px; }
294
+ .account-removal-body { display: grid; gap: 16px; }
295
+ .account-removal-lead { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
296
+ .account-removal-lead strong { color: var(--ink); }
297
+ .account-removal-choices { display: grid; gap: 9px; }
298
+ .account-removal-choice { position: relative; cursor: pointer; }
299
+ .account-removal-choice > input { position: absolute; width: 1px; min-height: 1px; margin: 0; opacity: 0; pointer-events: none; }
300
+ .account-removal-option { min-height: 76px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
301
+ .account-removal-option-icon { width: 36px; height: 36px; border-radius: var(--radius); color: var(--green-dark); background: var(--green-soft); display: grid; place-items: center; }
302
+ .account-removal-option-icon svg { width: 18px; height: 18px; }
303
+ .account-removal-option strong, .account-removal-option small { display: block; }
304
+ .account-removal-option strong { margin-bottom: 4px; font-size: 13px; }
305
+ .account-removal-option small { color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
306
+ .account-removal-choice > input:checked + .account-removal-option { border-color: var(--green); background: #f4faf6; box-shadow: 0 0 0 2px rgb(18 161 80 / 10%); }
307
+ .account-removal-choice > input:focus-visible + .account-removal-option { outline: 3px solid color-mix(in srgb, var(--focus) 18%, transparent); }
308
+ .account-removal-choice.is-destructive .account-removal-option-icon { color: var(--red); background: var(--red-soft); }
309
+ .account-removal-choice.is-destructive > input:checked + .account-removal-option { border-color: #d6908d; background: #fff7f6; box-shadow: 0 0 0 2px rgb(200 64 61 / 9%); }
310
+ .account-removal-note { margin: 0; padding-top: 2px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; display: flex; align-items: center; gap: 7px; }
311
+ .account-removal-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--green-dark); }
312
+ .update-modal { width: min(calc(100% - 32px), 520px); }
313
+ .update-modal-header { background: #f8faf8; }
314
+ .update-modal-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: var(--radius); color: var(--green-dark); background: var(--green-soft); display: grid; place-items: center; }
315
+ .update-modal-icon svg { width: 21px; height: 21px; }
316
+ .update-modal-body { display: grid; gap: 17px; }
317
+ .update-version-flow { min-height: 86px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; gap: 22px; }
318
+ .update-version-item { min-width: 0; }
319
+ .update-version-flow small { margin-bottom: 5px; color: var(--ink-soft); font-size: 9px; font-weight: 750; display: block; }
320
+ .update-version-flow strong { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; display: block; }
321
+ .update-version-divider { width: 1px; height: 38px; background: #c8d0cb; }
322
+ .update-version-flow .is-latest { text-align: right; }
323
+ .update-version-flow .is-latest strong { color: var(--green-dark); }
324
+ .update-description { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
325
+ .update-progress { min-height: 64px; padding: 12px 14px; border: 1px solid #b9ddc7; border-radius: var(--radius); background: var(--green-soft); display: flex; align-items: center; gap: 13px; }
326
+ .update-progress[hidden] { display: none; }
327
+ .update-progress .spinner { width: 25px; height: 25px; flex: 0 0 25px; border-color: rgb(8 114 57 / 18%); border-top-color: var(--green-dark); }
328
+ .update-progress strong, .update-progress span { display: block; }
329
+ .update-progress strong { color: var(--green-dark); font-size: 11px; }
330
+ .update-progress div span { margin-top: 3px; color: #466453; font-size: 9px; }
331
+ .update-progress.is-error { border-color: #efc5c3; background: var(--red-soft); }
332
+ .update-progress.is-error .spinner { display: none; }
333
+ .update-progress.is-error strong { color: var(--red); }
334
+ .update-progress.is-error div span { color: #7c4442; }
335
+ .qr-stage { min-height: 390px; padding: 28px 20px 22px; display: grid; justify-items: center; align-content: center; }
336
+ .qr-frame { width: 300px; height: 300px; border: 1px solid var(--line); border-radius: var(--radius); background: white; display: grid; place-items: center; overflow: hidden; }
337
+ .qr-frame img { width: 100%; height: 100%; object-fit: contain; }
338
+ .qr-status { min-height: 20px; margin: 16px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
339
+ .qr-status.is-success { color: var(--green-dark); }
340
+ .qr-status.is-error { color: var(--red); }
341
+ .spinner { width: 30px; height: 30px; border: 3px solid var(--surface-muted); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
342
+ .form-stack { display: grid; gap: 18px; }
343
+ .toast-region { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: min(360px, calc(100% - 40px)); display: grid; gap: 8px; pointer-events: none; }
344
+ .toast { min-height: 48px; padding: 13px 15px; border: 1px solid #bac4be; border-radius: var(--radius); color: white; background: #28312e; box-shadow: 0 10px 28px rgb(20 27 25 / 20%); font-size: 12px; font-weight: 650; animation: toast-in .2s ease-out; }
345
+ .toast.is-error { background: #8e2927; border-color: #b85551; }
346
+ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
347
+
348
+ @keyframes spin { to { transform: rotate(360deg); } }
349
+ @keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }
350
+ @keyframes typing-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
351
+
352
+ @media (max-width: 900px) {
353
+ .header-inner { grid-template-columns: 1fr auto; }
354
+ .view-tabs { order: 3; grid-column: 1 / -1; width: 100%; margin-bottom: 10px; }
355
+ .tab { flex: 1; }
356
+ .app-header { position: static; }
357
+ .metrics { grid-template-columns: 88px 88px minmax(180px, 1fr); gap: 18px; }
358
+ .account-main { grid-template-columns: minmax(220px, 1fr) 110px auto; }
359
+ .account-main .account-stat:first-of-type { display: none; }
360
+ .session-workbench { grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); }
361
+ .chat-message { max-width: 88%; }
362
+ }
363
+
364
+ @media (max-width: 760px) {
365
+ .session-workbench { min-height: 0; grid-template-columns: 1fr; }
366
+ .session-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
367
+ .session-list { max-height: 310px; }
368
+ .chat-panel { min-height: 620px; }
369
+ }
370
+
371
+ @media (max-width: 640px) {
372
+ .header-inner, .status-inner, .view { width: min(calc(100% - 24px), var(--content)); }
373
+ .header-inner { min-height: 62px; gap: 12px; }
374
+ .brand-name { max-width: 178px; font-size: 13px; }
375
+ .brand-version { padding-inline: 5px; font-size: 8px; }
376
+ .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
377
+ .header-action { width: 38px; padding: 0; }
378
+ .header-action span { display: none; }
379
+ .status-inner { padding: 16px 0; align-items: start; display: grid; gap: 15px; }
380
+ .metrics { width: 100%; grid-template-columns: 1fr 1fr; }
381
+ .workspace-metric { grid-column: 1 / -1; max-width: none; }
382
+ .view { padding: 30px 0 56px; }
383
+ h1 { font-size: 25px; }
384
+ .section-heading { align-items: center; }
385
+ .account-main { padding: 16px; grid-template-columns: 1fr auto; gap: 16px; }
386
+ .account-main .account-stat { display: none; }
387
+ .account-actions { grid-column: 2; grid-row: 1; }
388
+ .account-detail, .pending-access { padding: 12px 16px; align-items: start; flex-direction: column; }
389
+ .account-identifiers summary { padding-inline: 16px; }
390
+ .account-identifiers-grid { padding: 2px 16px 14px 39px; grid-template-columns: 1fr; gap: 10px; }
391
+ .authorization-state { grid-template-columns: auto minmax(0, 1fr); }
392
+ .authorization-action { width: 100%; grid-column: 1 / -1; }
393
+ .pending-access .button { width: 100%; }
394
+ .session-account-bar { padding: 10px; align-items: stretch; flex-direction: column; gap: 8px; }
395
+ .session-account-bar-label { padding-inline: 2px; }
396
+ .session-account-tabs { width: 100%; }
397
+ .chat-header { padding: 15px 16px; }
398
+ .chat-runtime-toolbar { padding: 10px 12px; grid-template-columns: 1fr 1fr; gap: 8px; }
399
+ .chat-runtime-title { grid-column: 1 / -1; }
400
+ .chat-runtime-toolbar label { grid-template-columns: 1fr; gap: 4px; }
401
+ .chat-messages { padding: 22px 14px 26px; }
402
+ .chat-message { max-width: 92%; }
403
+ .chat-composer { padding-inline: 12px; }
404
+ .composer-controls { grid-template-columns: 38px minmax(0, 1fr) 70px; gap: 7px; }
405
+ .chat-attach { width: 38px; }
406
+ .chat-send { min-width: 70px; padding-inline: 10px; }
407
+ .composer-files { padding-left: 45px; }
408
+ .composer-hint { margin-left: 45px; }
409
+ .settings-group { grid-template-columns: 1fr; gap: 16px; }
410
+ .settings-group > label, .field-grid, .settings-update { grid-column: 1; }
411
+ .field-grid { grid-template-columns: 1fr; }
412
+ .qr-stage { min-height: 342px; padding-inline: 16px; }
413
+ .qr-frame { width: min(280px, calc(100vw - 72px)); height: min(280px, calc(100vw - 72px)); }
414
+ }
415
+
416
+ @media (prefers-reduced-motion: reduce) {
417
+ *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
418
+ }