glad-web 1.0.43 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,72 @@
1
+ const GLAD_SPLIT_QUERY = '(min-width: 920px)';
2
+ const GLAD_SIDEBAR_KEY = 'glad-sidebar-width';
3
+
4
+ function isSplitLayout() {
5
+ return window.matchMedia(GLAD_SPLIT_QUERY).matches;
6
+ }
7
+
8
+ function clampSidebarWidth(value) {
9
+ const max = Math.max(300, Math.min(480, window.innerWidth - 484));
10
+ return Math.min(max, Math.max(300, Number(value) || 348));
11
+ }
12
+
13
+ function applySidebarWidth(value) {
14
+ const width = clampSidebarWidth(value);
15
+ document.documentElement.style.setProperty('--sidebar-w', `${width}px`);
16
+ return width;
17
+ }
18
+
19
+ function initializeResponsiveLayout() {
20
+ const storedWidth = Number(localStorage.getItem(GLAD_SIDEBAR_KEY));
21
+ applySidebarWidth(storedWidth || 348);
22
+
23
+ const handle = document.getElementById('sidebar-resizer');
24
+ if (handle) {
25
+ let dragging = false;
26
+ const onPointerMove = event => {
27
+ if (!dragging) return;
28
+ applySidebarWidth(event.clientX);
29
+ if (typeof syncLayout === 'function') syncLayout({ keepAtBottom: false });
30
+ };
31
+ const stopDragging = () => {
32
+ if (!dragging) return;
33
+ dragging = false;
34
+ handle.classList.remove('dragging');
35
+ document.body.style.removeProperty('cursor');
36
+ document.body.style.removeProperty('user-select');
37
+ const width = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--sidebar-w'));
38
+ localStorage.setItem(GLAD_SIDEBAR_KEY, String(clampSidebarWidth(width)));
39
+ };
40
+ handle.addEventListener('pointerdown', event => {
41
+ if (!isSplitLayout()) return;
42
+ dragging = true;
43
+ handle.classList.add('dragging');
44
+ handle.setPointerCapture?.(event.pointerId);
45
+ document.body.style.cursor = 'col-resize';
46
+ document.body.style.userSelect = 'none';
47
+ event.preventDefault();
48
+ });
49
+ window.addEventListener('pointermove', onPointerMove);
50
+ window.addEventListener('pointerup', stopDragging);
51
+ window.addEventListener('pointercancel', stopDragging);
52
+ }
53
+
54
+ const media = window.matchMedia(GLAD_SPLIT_QUERY);
55
+ media.addEventListener('change', () => {
56
+ applySidebarWidth(parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--sidebar-w')));
57
+ if (isSplitLayout()) scheduleSessionPolling();
58
+ if (typeof syncLayout === 'function') requestAnimationFrame(() => syncLayout({ keepAtBottom: false }));
59
+ });
60
+
61
+ const controls = document.getElementById('terminal-controls');
62
+ if (controls && typeof ResizeObserver !== 'undefined') {
63
+ new ResizeObserver(() => {
64
+ if (typeof syncLayout === 'function') syncLayout();
65
+ }).observe(controls);
66
+ }
67
+ }
68
+
69
+ window.addEventListener('resize', () => {
70
+ if (isSplitLayout()) applySidebarWidth(parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--sidebar-w')));
71
+ });
72
+ document.addEventListener('DOMContentLoaded', initializeResponsiveLayout);
@@ -49,6 +49,7 @@
49
49
  async function openSettings(event = null) {
50
50
  event?.stopPropagation();
51
51
  document.getElementById('settings-modal-overlay').style.display = 'flex';
52
+ if (typeof syncGladThemeControls === 'function') syncGladThemeControls();
52
53
  setServerChanStatus('Loading configuration…');
53
54
  try {
54
55
  const response = await fetchWithTimeout('/api/notifications/serverchan', {}, 10000);
@@ -1,6 +1,6 @@
1
1
  function joinSession(id, sessionName, toolKey = null) {
2
- if (typeof clearImageAttachments === 'function' && selectedImageAttachments.length) {
3
- void clearImageAttachments();
2
+ if (typeof clearComposerAttachments === 'function' && (selectedImageAttachments.length || selectedFileAttachments.length)) {
3
+ void clearComposerAttachments();
4
4
  }
5
5
  stopTimedInputTimers();
6
6
  activeSessionId = id;
@@ -17,6 +17,7 @@
17
17
  setClaudeModeEnabled(isClaudeSession());
18
18
  if (currentSocket) { currentSocket.close(); currentSocket = null; }
19
19
  initTerminal(id);
20
+ if (typeof isSplitLayout === 'function' && isSplitLayout()) refreshSessionsNow();
20
21
  }
21
22
 
22
23
  function initTerminal(sessionId) {
@@ -24,7 +25,7 @@
24
25
  initClaudeSession(sessionId);
25
26
  return;
26
27
  }
27
- if (isCodexSession() && codexState.presentation === 'structured') {
28
+ if (isCodexSession()) {
28
29
  initCodexSession(sessionId);
29
30
  return;
30
31
  }
@@ -37,7 +38,7 @@
37
38
  return /^\x1b\[\?[\d;]*c$/.test(data) || /^\x1b\[>[\d;]*c$/.test(data);
38
39
  }
39
40
  if (!term) {
40
- term = new Terminal({ theme: { background: '#000', foreground: '#fff', cursor: '#0f0' }, cursorBlink: true, fontSize: 14, cursorStyle: 'bar', scrollback: 10000 });
41
+ term = new Terminal({ theme: typeof getGladTerminalTheme === 'function' ? getGladTerminalTheme() : { background: '#000', foreground: '#fff', cursor: '#0f0' }, cursorBlink: true, fontSize: 14, cursorStyle: 'bar', scrollback: 10000 });
41
42
  fitAddon = new FitAddon.FitAddon();
42
43
  term.loadAddon(fitAddon);
43
44
  term.open(document.getElementById('terminal'));
@@ -61,14 +62,6 @@
61
62
  const msg = JSON.parse(e.data);
62
63
  if (msg.type === 'output') term.write(msg.data);
63
64
  if (msg.type === 'reset') term.reset();
64
- if (msg.type === 'codex-event' && isCodexSession()) {
65
- applyCodexEvent(msg.event);
66
- if (msg.event?.type === 'presentation' && msg.event.presentation === 'structured') {
67
- currentSocket.close();
68
- currentSocket = null;
69
- initCodexSession(sessionId);
70
- }
71
- }
72
65
  if (msg.type === 'exit') showLobby();
73
66
  };
74
67
  }
@@ -169,14 +162,7 @@
169
162
  applyCodexState(msg.snapshot.state || {});
170
163
  }
171
164
  if (msg.type === 'codex-detail-response' && msg.detail) applyCodexDetailResponse(msg);
172
- if (msg.type === 'codex-event') {
173
- applyCodexEvent(msg.event);
174
- if (msg.event?.type === 'presentation' && msg.event.presentation === 'terminal') {
175
- currentSocket.close();
176
- currentSocket = null;
177
- initTerminal(sessionId);
178
- }
179
- }
165
+ if (msg.type === 'codex-event') applyCodexEvent(msg.event);
180
166
  if (msg.type === 'exit') showLobby();
181
167
  };
182
168
  }
package/lib/web/shell.js CHANGED
@@ -7,6 +7,9 @@
7
7
  if (currentSocket) { currentSocket.close(); currentSocket = null; }
8
8
  closeTimedSendPanel();
9
9
  stopTimedInputTimers();
10
+ activeSessionId = null;
11
+ window.activeSessionId = null;
12
+ activeToolKey = null;
10
13
  document.querySelectorAll('.view').forEach(v => v.classList.remove('active'));
11
14
  document.getElementById('lobby-view').classList.add('active');
12
15
  refreshSessionsNow();
@@ -142,20 +142,16 @@
142
142
  #cmd-input { flex: 1; min-height: 38px; max-height: 150px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 19px; color: #fff; padding: 9px 16px; font-size: 16px; outline: none; resize: none; overflow-y: auto; line-height: 20px; box-sizing: border-box; transition: background 0.18s ease, border-color 0.18s ease; }
143
143
  #cmd-input::placeholder { color: rgba(255,255,255,0.45); }
144
144
  #cmd-input:focus { background: rgba(255,255,255,0.1); border-color: rgba(0,122,255,0.42); color: #fff; }
145
- #timer-btn { width: 38px; height: 38px; margin-left: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 19px; color: #d1d5db; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; font-size: 24px; line-height: 1; }
146
- #timer-btn.active { color: #fff; border-color: rgba(0,122,255,0.45); background: rgba(0,122,255,0.22); }
147
145
  #send-btn { width: 44px; height: 38px; margin-left: 10px; background: #007aff; border: none; border-radius: 19px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
148
- #composer-menu { display: none; width: min(calc(100% - 28px), var(--control-content-max)); margin: -2px auto 8px auto; padding: 6px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(38,38,42,0.98); box-shadow: 0 12px 28px rgba(0,0,0,0.28); box-sizing: border-box; }
149
- #composer-menu.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
150
- .composer-menu-btn { min-height: 42px; border: 0; border-radius: 9px; background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; }
151
- .composer-menu-btn:hover { background: rgba(255,255,255,0.14); }
152
146
  #attachment-strip { display: none; width: min(calc(100% - 28px), var(--control-content-max)); margin: -3px auto 2px auto; gap: 7px; overflow-x: auto; padding: 0 0 4px 0; box-sizing: border-box; scrollbar-width: none; }
153
147
  #attachment-strip.active { display: flex; }
154
148
  #attachment-strip::-webkit-scrollbar { display: none; }
155
149
  .attachment-chip { min-width: 0; max-width: 210px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(0,122,255,0.45); border-radius: 10px; background: rgba(0,122,255,0.14); color: #e9f2ff; font-size: 12px; }
156
150
  .attachment-chip.uploading { border-color: rgba(255,159,10,0.55); background: rgba(255,159,10,0.12); }
151
+ .attachment-chip.file { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
157
152
  .attachment-chip-content { min-width: 0; flex: 1; }
158
153
  .attachment-chip-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
154
+ .attachment-chip-icon { width: 17px; height: 17px; flex: 0 0 17px; }
159
155
  .attachment-progress { display: block; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.16); }
160
156
  .attachment-progress > span { display: block; height: 100%; border-radius: inherit; background: #ff9f0a; transition: width .15s ease; }
161
157
  .attachment-progress.estimated > span { background: repeating-linear-gradient(90deg, #ff9f0a 0 12px, #ffd37b 12px 24px); background-size: 48px 100%; animation: attachment-upload-pulse .75s linear infinite; }
@@ -191,7 +187,7 @@
191
187
  .codex-conversation { width: min(100%, var(--chat-content-max)); margin: 0 auto; }
192
188
  .codex-working-indicator, .claude-working-indicator { position: sticky; top: 0; z-index: 4; width: 28px; height: 28px; margin: 0 0 -28px auto; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(28,28,30,.68); box-shadow: 0 5px 16px rgba(0,0,0,.24); backdrop-filter: blur(8px); pointer-events: none; }
193
189
  .codex-working-indicator::after, .claude-working-indicator::after { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(255,255,255,.7); border-top-color: transparent; border-radius: 50%; animation: codex-spin .8s linear infinite; }
194
- .codex-skill-bubble { position: sticky; top: 0; z-index: 5; display: flex; width: max-content; max-width: min(280px, 72vw); min-height: 28px; margin: 0 0 -30px auto; padding: 0 4px 0 10px; align-items: center; gap: 7px; border: 1px solid rgba(0,122,255,.42); border-radius: 15px; background: rgba(21,47,78,.92); color: #eaf3ff; box-shadow: 0 5px 18px rgba(0,0,0,.3); backdrop-filter: blur(10px); font-size: 11px; font-weight: 750; }
190
+ .codex-skill-bubble { position: relative; z-index: 5; display: flex; width: max-content; max-width: min(280px, 72vw); min-height: 28px; padding: 0 4px 0 10px; align-items: center; gap: 7px; border: 1px solid rgba(0,122,255,.42); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgba(21,47,78,.96); color: #eaf3ff; box-shadow: 0 -3px 12px rgba(0,0,0,.12); font-size: 11px; font-weight: 750; }
195
191
  .codex-skill-bubble-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
196
192
  .codex-skill-bubble-close { width: 23px; height: 23px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
197
193
  .codex-message-block { max-width: 100%; margin: 0 0 12px; }
@@ -329,9 +325,12 @@
329
325
  .claude-message-block.user > .claude-message { max-width: 100%; }
330
326
  .claude-message-time { display: block; width: max-content; margin-top: 4px; padding: 0 2px; color: #8e8e93; font-size: 10px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
331
327
  .claude-message-block.user .claude-message-time { margin-left: auto; }
332
- .codex-message-skill { display: inline-flex; max-width: min(220px, 58vw); min-height: 16px; align-items: center; padding: 1px 6px; border: 1px solid rgba(0,122,255,.32); border-radius: 999px; background: rgba(0,122,255,.12); color: #8fc5ff; font-size: 9px; font-weight: 750; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
328
+ .codex-message-skills { position: relative; z-index: 1; display: flex; justify-content: flex-start; gap: 5px; margin-bottom: -1px; }
329
+ .codex-message-skill { display: inline-flex; max-width: min(220px, 58vw); min-height: 18px; align-items: center; padding: 2px 8px; border: 1px solid rgba(0,122,255,.32); border-bottom: 0; border-radius: 9px 9px 0 0; background: rgba(0,122,255,.16); color: #8fc5ff; font-size: 9px; font-weight: 750; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
330
+ .codex-message-skills + .codex-message.user { border-top-left-radius: 4px; }
333
331
  .claude-message-attachments { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
334
332
  .claude-message-attachment { max-width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 3px 7px; color: #d1d5db; background: rgba(255,255,255,.07); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
333
+ .message-attachment-icon { width: 13px; height: 13px; flex: 0 0 13px; margin-right: 4px; vertical-align: -2px; }
335
334
  .claude-message.user { margin-left: auto; background: rgba(0,122,255,0.24); border: 1px solid rgba(0,122,255,0.32); color: #fff; border-radius: 12px; padding-top: 7px; padding-bottom: 7px; }
336
335
  .claude-message.assistant { max-width: 100%; background: transparent; border: 0; color: #f5f5f7; padding: 0 4px; margin: 0 0 12px 0; }
337
336
  .claude-message.event { max-width: 100%; background: transparent; border: 0; color: var(--text-dim); font-size: 12px; padding: 3px 2px; text-align: center; }
@@ -455,6 +454,9 @@
455
454
  .history-meta { color: var(--text-dim); font-size: 11px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); background: #0d0d0d; }
456
455
 
457
456
  .tab-bar { display: flex; border-bottom: 1px solid rgba(255,255,255,0.1); background: var(--bg); }
457
+ .subview-nav { flex: 0 0 auto; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: var(--surface); }
458
+ .subview-nav-row { display: flex; align-items: center; padding: 8px 14px; }
459
+ .subview-nav-title { flex: 1; min-width: 0; color: var(--text); text-align: center; font-size: 16px; font-weight: 600; }
458
460
  .tab-btn { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--text-dim); background: none; border: none; cursor: pointer; position: relative; }
459
461
  .tab-btn.active { color: var(--text); }
460
462
  .tab-btn.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 2px; width: 40px; background: var(--primary); border-radius: 2px; }
@@ -526,9 +528,8 @@
526
528
  .usage-summary-card .value { font-size: 21px; }
527
529
  }
528
530
  @media (max-width: 430px) {
529
- #nav-bar > div:last-child .icon-btn:not(#codex-terminal-switch) { width: 34px; font-size: 0 !important; gap: 0 !important; }
530
- #nav-bar > div:last-child .icon-btn:not(#codex-terminal-switch) svg { width: 16px; height: 16px; }
531
- #codex-terminal-switch { padding-left: 8px !important; padding-right: 8px !important; }
531
+ #nav-bar > div:last-child .icon-btn { width: 34px; font-size: 0 !important; gap: 0 !important; }
532
+ #nav-bar > div:last-child .icon-btn svg { width: 16px; height: 16px; }
532
533
  }
533
534
  @media (min-width: 768px) and (max-width: 1199px) {
534
535
  :root { --chat-content-max: 780px; --control-content-max: 920px; }
@@ -539,3 +540,366 @@
539
540
  :root { --chat-content-max: 960px; --control-content-max: 1100px; }
540
541
  #codex-chat-container { padding: 18px 22px 34px; }
541
542
  }
543
+
544
+ /* Responsive application shell, bottom composer, and color themes. */
545
+ :root {
546
+ --sidebar-w: 348px;
547
+ --surface: #121212;
548
+ --surface-raised: #1c1c1e;
549
+ --surface-soft: rgba(255,255,255,.08);
550
+ --line: rgba(255,255,255,.10);
551
+ --chat-bg: #050505;
552
+ --input-bg: rgba(255,255,255,.08);
553
+ --input-fg: #ffffff;
554
+ --input-placeholder: rgba(255,255,255,.45);
555
+ --overlay-bg: rgba(0,0,0,.80);
556
+ --git-diff-bg: #0d0d0d;
557
+ --git-diff-text: #d1d5db;
558
+ --git-add-text: #4ade80;
559
+ --git-add-bg: rgba(74,222,128,.1);
560
+ --git-del-text: #f87171;
561
+ --git-del-bg: rgba(248,113,113,.1);
562
+ --git-hunk-text: #60a5fa;
563
+ --git-hunk-bg: rgba(96,165,250,.1);
564
+ --git-modified-text: #fbbf24;
565
+ color-scheme: dark;
566
+ }
567
+
568
+ html[data-theme="light"] {
569
+ --bg: #f5f6f8;
570
+ --card-bg: #ffffff;
571
+ --text: #172033;
572
+ --text-dim: #667085;
573
+ --surface: #ffffff;
574
+ --surface-raised: #ffffff;
575
+ --surface-soft: rgba(15,23,42,.055);
576
+ --line: rgba(15,23,42,.11);
577
+ --chat-bg: #ffffff;
578
+ --input-bg: #f2f4f7;
579
+ --input-fg: #172033;
580
+ --input-placeholder: #8a94a6;
581
+ --overlay-bg: rgba(15,23,42,.45);
582
+ --git-diff-bg: #f7f8fa;
583
+ --git-diff-text: #344054;
584
+ --git-add-text: #176b3a;
585
+ --git-add-bg: #dff4e7;
586
+ --git-del-text: #a12b24;
587
+ --git-del-bg: #fde5e3;
588
+ --git-hunk-text: #075fae;
589
+ --git-hunk-bg: #e6f2ff;
590
+ --git-modified-text: #9a6700;
591
+ color-scheme: light;
592
+ }
593
+
594
+ html[data-theme="dark"] { color-scheme: dark; }
595
+
596
+ .app-icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; pointer-events: none; }
597
+ .action-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
598
+ .action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
599
+
600
+ #app-shell { display: flex; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: var(--bg); }
601
+ #detail-pane { position: relative; display: flex; min-width: 0; min-height: 0; flex: 1; overflow: hidden; background: var(--bg); }
602
+ #detail-pane > .view { min-width: 0; min-height: 0; }
603
+ #detail-empty { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 32px; color: var(--text-dim); text-align: center; }
604
+ #detail-empty img { width: 72px; height: 72px; margin-bottom: 14px; opacity: .72; }
605
+ #detail-empty h2 { margin: 0; color: var(--text); font-size: 20px; }
606
+ #detail-empty p { max-width: 360px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
607
+ #sidebar-resizer { display: none; }
608
+
609
+ #terminal-view.active { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
610
+ #top-ui { display: contents; }
611
+ #nav-bar { grid-row: 1; z-index: 20; padding-top: max(8px, env(safe-area-inset-top)); background: var(--surface); border-color: var(--line); }
612
+ #session-status-strip { display: none; grid-row: 2; z-index: 19; padding: 6px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 97%, transparent); }
613
+ #session-attention-rail { display: flex; width: min(100%, var(--chat-content-max)); min-width: 0; margin: 0 auto; gap: 7px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
614
+ #session-attention-rail::-webkit-scrollbar { display: none; }
615
+ .session-attention-pill { display: inline-flex; min-height: 28px; flex: 0 0 auto; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text-dim); font-size: 11px; font-weight: 750; cursor: pointer; }
616
+ .session-attention-pill.approval { border-color: rgba(255,204,0,.42); background: rgba(255,204,0,.10); color: #ffd60a; }
617
+ .session-attention-pill.subagent { border-color: rgba(100,210,255,.35); background: rgba(100,210,255,.10); color: #64d2ff; }
618
+ .session-attention-pill:active { transform: translateY(1px); }
619
+ html[data-theme="light"] .session-attention-pill.approval { border-color: #e5bd36; background: #fff7d6; color: #795500; }
620
+ html[data-theme="light"] .session-attention-pill.subagent { border-color: #99c8f7; background: #e8f3ff; color: #075fae; }
621
+ #terminal-controls { position: relative; inset: auto; grid-row: 4; z-index: 30; max-height: min(62dvh, 620px); overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); border-bottom: 0; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 -10px 28px rgba(0,0,0,.12); }
622
+ #terminal-controls-spacer { display: none; }
623
+ #terminal-container, #claude-chat-container, #codex-chat-container { grid-row: 3; min-width: 0; min-height: 0; background: var(--chat-bg); }
624
+ #composer-skill-prefix { display: none; width: min(100%, var(--control-content-max)); margin: 0 auto; padding: 8px 14px 0; box-sizing: border-box; }
625
+ #composer-skill-prefix.active { display: flex; justify-content: flex-start; }
626
+ #composer-skill-prefix.active + #input-row { padding-top: 0; }
627
+ #input-row { padding-top: 10px; padding-bottom: 7px; }
628
+ @media (max-width: 480px) {
629
+ #composer-skill-prefix { padding-left: 10px; padding-right: 10px; }
630
+ }
631
+ @media (min-width: 768px) and (max-width: 1199px) {
632
+ #composer-skill-prefix { padding-left: 18px; padding-right: 18px; }
633
+ }
634
+ #cmd-input { width: 100%; min-height: 42px; border-color: var(--line); background: var(--input-bg); color: var(--input-fg); }
635
+ #cmd-input::placeholder { color: var(--input-placeholder); }
636
+ #cmd-input:focus { color: var(--input-fg); }
637
+ #send-btn { position: absolute; z-index: 5; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0; }
638
+ .composer-action-btn { position: relative; width: 40px; min-width: 40px; height: 40px; flex: 0 0 40px; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--text-dim); display: flex; align-items: center; justify-content: center; cursor: pointer; }
639
+ .composer-action-btn:hover { color: var(--text); }
640
+ .composer-action-btn.active { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 48%, transparent); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
641
+ #composer-action-tooltip { position: fixed; z-index: 11000; display: none; max-width: min(220px, calc(100vw - 24px)); padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: color-mix(in srgb, var(--surface-raised) 96%, transparent); color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; pointer-events: none; }
642
+ #composer-action-tooltip.visible { display: block; }
643
+ #send-btn { right: max(12px, calc((100% - var(--control-content-max)) / 2 + 14px)); width: 44px; height: 40px; }
644
+ #claude-control-panel, #codex-control-panel { position: relative; flex-direction: column; width: min(100%, var(--control-content-max)); padding: 0 14px 10px; border: 0; background: transparent; }
645
+ .claude-control-rail, .codex-control-rail { order: 100; min-height: 40px; gap: 7px; margin: 0 58px 0 0; padding: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: none; scroll-padding: 0; }
646
+ .claude-control-page, .claude-control-page.secondary, .codex-control-page { display: flex; width: auto; flex: 0 0 auto; gap: 7px; justify-content: flex-start; scroll-snap-align: none; }
647
+ .claude-control-page > *, .codex-control-page > * { width: 40px; min-width: 40px; height: 40px; flex: 0 0 40px; }
648
+ .claude-control-page .claude-ctrl-btn, .claude-control-page .claude-select, .codex-control-page .claude-ctrl-btn, .codex-control-page .codex-select-label,
649
+ .claude-select, .claude-ctrl-btn, .codex-select-control, .codex-select-label { width: 40px; height: 40px; padding: 0; border-radius: 12px; font-size: 0; }
650
+ .claude-picker-btn, .claude-ctrl-btn, .codex-select-label { position: relative; display: inline-flex; align-items: center; justify-content: center; }
651
+ #claude-state-bar, #codex-state-bar { order: 10; }
652
+ #claude-picker-panel, #claude-resume-panel, #claude-fork-panel,
653
+ #codex-model-panel, #codex-resume-panel, #codex-fork-panel, #codex-prompt-panel, #codex-skill-panel { order: 20; }
654
+ #shortcut-rail { width: min(100%, var(--control-content-max)); min-height: 40px; gap: 7px; margin: 0 auto; padding: 0 66px 10px 14px; scroll-snap-type: none; scroll-padding: 0; }
655
+ .shortcut-group { display: contents; }
656
+ .shortcut-group .key-btn, .shortcut-group .command-key { width: auto; min-width: 48px; height: 40px; padding: 0 10px; flex: 0 0 auto; }
657
+ #attachment-strip { border-color: var(--line); background: var(--surface-raised); }
658
+ #timed-send-panel { margin-bottom: 8px; border-color: var(--line); background: var(--surface-raised); }
659
+ #timed-tag-rail { top: auto; bottom: calc(100% + 6px); }
660
+ #scroll-controls { position: absolute; }
661
+
662
+ .theme-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
663
+ .theme-choice button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
664
+ .theme-choice button[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent); }
665
+ .theme-swatch { width: 18px; height: 18px; border: 1px solid rgba(127,127,127,.35); border-radius: 50%; }
666
+ .theme-swatch.light { background: #fff; }
667
+ .theme-swatch.dark { background: #1c1c1e; }
668
+ .settings-theme-help { margin: 8px 0 0; color: var(--text-dim); font-size: 11px; }
669
+
670
+ @media (min-width: 920px) {
671
+ #lobby-view { display: flex !important; width: min(var(--sidebar-w), calc(100vw - 484px)); flex: 0 0 min(var(--sidebar-w), calc(100vw - 484px)); border-right: 1px solid var(--line); background: var(--bg); }
672
+ #lobby { width: 100%; padding: 18px 14px; }
673
+ #lobby-view .header { margin-bottom: 18px; }
674
+ #lobby-view .header h1 { font-size: 23px; }
675
+ #lobby-view .header-action-btn:not(.icon-only) { width: 36px; padding: 0; font-size: 0; }
676
+ #lobby-view .header-action-btn:not(.icon-only) span:first-child { font-size: 20px; }
677
+ #sidebar-resizer { display: block; width: 4px; flex: 0 0 4px; cursor: col-resize; background: var(--line); touch-action: none; transition: background .15s; }
678
+ #sidebar-resizer:hover, #sidebar-resizer.dragging { background: var(--primary); }
679
+ #detail-pane:not(:has(.view.active)) #detail-empty { display: flex; }
680
+ #back-btn, .usage-nav-button { visibility: hidden; pointer-events: none; }
681
+ .session-card.selected { border: 1px solid color-mix(in srgb, var(--primary) 48%, transparent); background: color-mix(in srgb, var(--primary) 10%, var(--card-bg)); }
682
+ }
683
+
684
+ @media (max-width: 919px) {
685
+ #lobby-view { flex: 1; }
686
+ #detail-pane { display: contents; }
687
+ #detail-empty { display: none !important; }
688
+ }
689
+
690
+ /* Light palette overrides for legacy selectors that still carry dark literals. */
691
+ html[data-theme="light"] body,
692
+ html[data-theme="light"] #terminal-view,
693
+ html[data-theme="light"] #terminal-container,
694
+ html[data-theme="light"] #git-content,
695
+ html[data-theme="light"] #usage-view { background: var(--bg) !important; color: var(--text); }
696
+ html[data-theme="light"] #top-ui,
697
+ html[data-theme="light"] #nav-bar,
698
+ html[data-theme="light"] .usage-nav,
699
+ html[data-theme="light"] #codex-control-panel { background: var(--surface) !important; border-color: var(--line) !important; }
700
+ html[data-theme="light"] .session-card,
701
+ html[data-theme="light"] .schedule-card,
702
+ html[data-theme="light"] .usage-panel,
703
+ html[data-theme="light"] .usage-summary-card,
704
+ html[data-theme="light"] #tool-modal,
705
+ html[data-theme="light"] #settings-modal,
706
+ html[data-theme="light"] #usage-source-modal,
707
+ html[data-theme="light"] #schedule-modal,
708
+ html[data-theme="light"] #claude-picker-panel,
709
+ html[data-theme="light"] #claude-resume-panel,
710
+ html[data-theme="light"] #claude-fork-panel,
711
+ html[data-theme="light"] #codex-model-panel,
712
+ html[data-theme="light"] #codex-resume-panel,
713
+ html[data-theme="light"] #codex-fork-panel,
714
+ html[data-theme="light"] #codex-prompt-panel,
715
+ html[data-theme="light"] #codex-skill-panel { background: var(--card-bg) !important; border-color: var(--line) !important; color: var(--text) !important; }
716
+ html[data-theme="light"] #modal-overlay,
717
+ html[data-theme="light"] #settings-modal-overlay,
718
+ html[data-theme="light"] #usage-source-overlay { background: var(--overlay-bg); }
719
+ html[data-theme="light"] #claude-chat-container,
720
+ html[data-theme="light"] #codex-chat-container,
721
+ html[data-theme="light"] #history-content { background: var(--chat-bg); color: var(--text); }
722
+ html[data-theme="light"] .history-meta { background: #f0f2f5; border-color: var(--line); }
723
+ html[data-theme="light"] .claude-message.assistant,
724
+ html[data-theme="light"] .codex-message,
725
+ html[data-theme="light"] .claude-tool strong,
726
+ html[data-theme="light"] .claude-tool-header,
727
+ html[data-theme="light"] .claude-picker-option,
728
+ html[data-theme="light"] .codex-picker-option,
729
+ html[data-theme="light"] .claude-resume-item,
730
+ html[data-theme="light"] .codex-prompt-text,
731
+ html[data-theme="light"] .usage-nav-title strong { color: var(--text); }
732
+ html[data-theme="light"] .claude-tool,
733
+ html[data-theme="light"] .claude-work-group,
734
+ html[data-theme="light"] .codex-work-group { border-color: var(--line); background: rgba(15,23,42,.035); color: #344054; }
735
+ html[data-theme="light"] .claude-tool-code,
736
+ html[data-theme="light"] .claude-md pre { background: #f4f6f8; color: #27364a; border-color: var(--line); }
737
+ html[data-theme="light"] .claude-select,
738
+ html[data-theme="light"] .claude-ctrl-btn,
739
+ html[data-theme="light"] .codex-select-label,
740
+ html[data-theme="light"] .composer-action-btn,
741
+ html[data-theme="light"] .key-btn,
742
+ html[data-theme="light"] .command-key,
743
+ html[data-theme="light"] .small-btn { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
744
+ html[data-theme="light"] .claude-ctrl-btn.primary { color: #065fbd; background: rgba(0,122,255,.11); }
745
+ html[data-theme="light"] .claude-ctrl-btn.danger,
746
+ html[data-theme="light"] .small-btn.danger { color: #d92d20; background: rgba(217,45,32,.09); }
747
+ html[data-theme="light"] #settings-modal input,
748
+ html[data-theme="light"] #settings-modal select,
749
+ html[data-theme="light"] .form-field input,
750
+ html[data-theme="light"] .form-field select,
751
+ html[data-theme="light"] .form-field textarea,
752
+ html[data-theme="light"] #cwd-field { background: #f2f4f7 !important; border-color: var(--line) !important; color: var(--text) !important; }
753
+ html[data-theme="light"] .tab-bar,
754
+ html[data-theme="light"] .list-item { border-color: var(--line); }
755
+ html[data-theme="light"] .copy-dir-btn,
756
+ html[data-theme="light"] .serverchan-toggle { border-color: var(--line); background: var(--surface-soft); }
757
+
758
+ /* Light theme refinement: stronger hierarchy and readable provider surfaces. */
759
+ html[data-theme="light"] #lobby-view { background: #f0f2f5; }
760
+ html[data-theme="light"] .lobby-tabs { border: 1px solid #e0e5ec; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
761
+ html[data-theme="light"] .session-card,
762
+ html[data-theme="light"] .schedule-card { border: 1px solid #e0e5ec; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
763
+ html[data-theme="light"] .session-card.selected { border-color: #8fc5ff; background: #eaf4ff; box-shadow: 0 0 0 1px rgba(0,122,255,.08); }
764
+ html[data-theme="light"] .btn-join { background: #e8f2ff; color: #006acb; }
765
+ html[data-theme="light"] .weekday-btn { border-color: #d7dde7; background: #f7f8fa; color: #475467; }
766
+ html[data-theme="light"] .weekday-btn.active { border-color: #007aff; background: #007aff; color: #fff; }
767
+ html[data-theme="light"] .step-card { border-color: #dde2ea; background: #f7f8fa; }
768
+ html[data-theme="light"] .small-btn.primary { border-color: #007aff; background: #007aff; color: #fff; }
769
+
770
+ html[data-theme="light"] .claude-message.user,
771
+ html[data-theme="light"] .codex-message.user { border-color: #b8d9fb; background: #e8f3ff; color: #173b61; }
772
+ html[data-theme="light"] .claude-message-attachment { border-color: #c7d9ec; background: rgba(255,255,255,.68); color: #344054; }
773
+ html[data-theme="light"] .claude-md code { border-color: #d9dee7; background: #eef1f5; color: #24364b; }
774
+ html[data-theme="light"] .claude-md blockquote { border-left-color: #aeb8c6; color: #475467; }
775
+ html[data-theme="light"] .claude-md th,
776
+ html[data-theme="light"] .claude-md td { border-color: #d9dee7; }
777
+ html[data-theme="light"] .claude-md th { background: #eef1f5; color: #172033; }
778
+ html[data-theme="light"] .claude-command-chip { border-color: #d9dee7; background: #f2f4f7; color: #27364a; }
779
+ html[data-theme="light"] .claude-picker-option-value { color: #667085; }
780
+ html[data-theme="light"] .claude-picker-column + .claude-picker-column,
781
+ html[data-theme="light"] .codex-picker-column + .codex-picker-column { border-color: #dfe4eb; }
782
+ html[data-theme="light"] .claude-picker-option.selected,
783
+ html[data-theme="light"] .codex-picker-option.selected { background: #dcecff; color: #075fae; }
784
+
785
+ html[data-theme="light"] .codex-status-card { border-color: #cfe0ef; background: #f5f9fc; color: #172033; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
786
+ html[data-theme="light"] .codex-status-title { color: #0070c9; }
787
+ html[data-theme="light"] .codex-status-item { border-color: #dbe3eb; background: #fff; }
788
+ html[data-theme="light"] .codex-status-label { color: #667085; }
789
+ html[data-theme="light"] .codex-status-value { color: #24364b; }
790
+ html[data-theme="light"] .codex-warning-card { border-color: #f2cc60; background: #fff8df; color: #5e4300; }
791
+ html[data-theme="light"] .codex-warning-icon { background: #ffefb3; color: #9a6700; }
792
+ html[data-theme="light"] .codex-warning-title { color: #7a5200; }
793
+ html[data-theme="light"] .codex-warning-text { color: #725d28; }
794
+ html[data-theme="light"] .codex-compaction-card { border-color: #d9c4ef; background: #f7f0ff; color: #3f2a56; }
795
+ html[data-theme="light"] .codex-compaction-meta { color: #725d86; }
796
+ html[data-theme="light"] .codex-skill-bubble,
797
+ html[data-theme="light"] .codex-message-skill { border-color: #99c8f7; background: #e8f3ff; color: #075fae; }
798
+ html[data-theme="light"] .codex-skill-bubble-close { background: rgba(7,95,174,.10); color: #075fae; }
799
+ html[data-theme="light"] .codex-context-meter { --context-color: #168447; border-color: #69c98a; background: #effaf3; color: #125f34; }
800
+ html[data-theme="light"] .codex-context-meter::before { background: #bcebc9; }
801
+ html[data-theme="light"] .codex-context-meter.warn { --context-color: #a66f00; border-color: #e0b53e; background: #fff9df; color: #715000; }
802
+ html[data-theme="light"] .codex-context-meter.warn::before { background: #ffe59a; }
803
+ html[data-theme="light"] .codex-context-meter.danger { --context-color: #b53b33; border-color: #e58d86; background: #fff1f0; color: #8f2d27; }
804
+ html[data-theme="light"] .codex-context-meter.danger::before { background: #fac5c1; }
805
+
806
+ html[data-theme="light"] .codex-tool { border-color: #dbe1e8; background: #f7f9fb; color: #344054; }
807
+ html[data-theme="light"] .codex-tool-title,
808
+ html[data-theme="light"] .codex-inline-permission-title,
809
+ html[data-theme="light"] .claude-edit-file > summary,
810
+ html[data-theme="light"] .codex-patch-file > summary { color: #24364b; }
811
+ html[data-theme="light"] .codex-tool-icon,
812
+ html[data-theme="light"] .codex-tool-command,
813
+ html[data-theme="light"] .codex-tool-code,
814
+ html[data-theme="light"] .codex-work-group > summary,
815
+ html[data-theme="light"] .codex-subagent-message { color: #526174; }
816
+ html[data-theme="light"] .codex-tool-body,
817
+ html[data-theme="light"] .codex-patch-file,
818
+ html[data-theme="light"] .claude-edit-body { border-color: #dbe1e8; }
819
+ html[data-theme="light"] .codex-work-group { border-left-color: #cbd3dd; background: transparent; }
820
+ html[data-theme="light"] .codex-subagent-message { border-left-color: #cbd3dd; }
821
+ html[data-theme="light"] .codex-diff { border-color: #d9dee7; background: #f7f8fa; }
822
+ html[data-theme="light"] .codex-diff-line { color: #344054; }
823
+ html[data-theme="light"] .codex-diff-line.add { color: #176b3a; background: #dff4e7; }
824
+ html[data-theme="light"] .codex-diff-line.del { color: #a12b24; background: #fde5e3; }
825
+ html[data-theme="light"] .codex-diff-line.hunk { color: #075fae; background: #e6f2ff; }
826
+ html[data-theme="light"] .claude-permission,
827
+ html[data-theme="light"] .codex-inline-permission { border-color: #edc84f; background: #fff6cf; }
828
+ html[data-theme="light"] .claude-inline-permission-title { color: #795500; }
829
+ html[data-theme="light"] .codex-permission-result { color: #725d28; }
830
+
831
+ html[data-theme="light"] .codex-skill-header,
832
+ html[data-theme="light"] .codex-prompt-header { border-color: #dce2ea; background: #f3f6f9; color: #344054; }
833
+ html[data-theme="light"] .codex-skill-search { border-color: #cbd3dd; background: #fff; color: #172033; }
834
+ html[data-theme="light"] .codex-skill-search::placeholder { color: #8a94a6; }
835
+ html[data-theme="light"] .codex-skill-search:focus { border-color: #007aff; background: #fff; }
836
+ html[data-theme="light"] .codex-skill-section + .codex-skill-section,
837
+ html[data-theme="light"] .codex-prompt-item { border-color: #e1e5eb; }
838
+ html[data-theme="light"] .codex-skill-section-title { background: #e9edf2; color: #475467; }
839
+ html[data-theme="light"] .codex-skill-item { border-color: #e5e9ef; background: #fff; color: #172033; }
840
+ html[data-theme="light"] .codex-skill-item:hover { background: #f7f9fb; }
841
+ html[data-theme="light"] .codex-skill-item.selected { background: #e6f2ff; }
842
+ html[data-theme="light"] .codex-skill-source { border-color: #99c8f7; background: #e8f3ff; color: #006acb; }
843
+ html[data-theme="light"] .codex-skill-description { color: #667085; }
844
+ html[data-theme="light"] .codex-skill-directory { border-color: #d9dee7; background: #f2f4f7; color: #667085; }
845
+ html[data-theme="light"] .codex-prompt-time { color: #667085; }
846
+
847
+ html[data-theme="light"] .usage-period-picker select { border-color: #d9dee7; color: #172033; }
848
+ html[data-theme="light"] .usage-summary-card,
849
+ html[data-theme="light"] .usage-panel { border-color: #dfe4eb; box-shadow: 0 1px 2px rgba(15,23,42,.025); }
850
+ html[data-theme="light"] .usage-summary-card .value,
851
+ html[data-theme="light"] .usage-table tfoot td { color: #172033; }
852
+ html[data-theme="light"] .usage-summary-card .exact,
853
+ html[data-theme="light"] .usage-chart-label,
854
+ html[data-theme="light"] .usage-chart-total,
855
+ html[data-theme="light"] .usage-pricing-note { color: #667085; }
856
+ html[data-theme="light"] .usage-chart-track { background: #e9edf2; }
857
+ html[data-theme="light"] .usage-table th { border-color: #dfe4eb; color: #667085; }
858
+ html[data-theme="light"] .usage-table td { border-color: #edf0f3; color: #344054; }
859
+ html[data-theme="light"] .tool-modal-header { border-color: #e0e5ec; }
860
+ html[data-theme="light"] .tool-item { border: 1px solid #e0e5ec; background: #f7f9fb; color: #172033; }
861
+ html[data-theme="light"] .tool-item:hover,
862
+ html[data-theme="light"] .tool-item:active { border-color: #99c8f7; background: #eaf4ff; }
863
+ html[data-theme="light"] .tool-icon { background: #dceeff; color: #006acb; }
864
+ html[data-theme="light"] #default-cwd { color: #526174 !important; }
865
+ html[data-theme="light"] .usage-source-item { border: 1px solid #e1e6ed; background: #f7f9fb; color: #172033; }
866
+ html[data-theme="light"] .usage-source-item:hover,
867
+ html[data-theme="light"] .usage-source-item:active { border-color: #99c8f7; background: #eaf4ff; }
868
+ html[data-theme="light"] .usage-source-copy strong { color: #172033; }
869
+ html[data-theme="light"] .usage-source-badge { background: #dceeff; color: #006acb; }
870
+ html[data-theme="light"] .usage-source-arrow { color: #667085; }
871
+ html[data-theme="light"] .attachment-chip { border-color: #99c8f7; background: #e8f3ff; color: #173b61; }
872
+ html[data-theme="light"] .attachment-chip.file { border-color: #c8d0dc; background: #f2f4f7; color: #344054; }
873
+ html[data-theme="light"] .attachment-chip.uploading { border-color: #e6b94c; background: #fff6df; color: #715000; }
874
+ html[data-theme="light"] .attachment-status { color: #725d28; }
875
+ html[data-theme="light"] .attachment-remove { background: rgba(23,59,97,.1); color: #344054; }
876
+ html[data-theme="light"] .attachment-progress { background: rgba(23,59,97,.12); }
877
+ html[data-theme="light"] .claude-message-attachment { border-color: #b9c9dc; background: rgba(255,255,255,.72); color: #344054; }
878
+ html[data-theme="light"] .claude-md a { color: #006acb; }
879
+
880
+ .tool-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
881
+ .tool-modal-header h2 { margin: 0; }
882
+ .tool-modal-header .icon-btn { width: 32px; height: 32px; border-radius: 50%; color: var(--text-dim); font-size: 24px; }
883
+ #add-step-type { border-color: var(--line) !important; background: var(--surface-soft) !important; color: var(--text) !important; }
884
+
885
+ .git-change-card { margin-bottom: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
886
+ .git-change-header { display: flex; align-items: center; min-height: 42px; padding: 8px 10px; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; outline: none; user-select: none; }
887
+ .git-change-header:hover { background: var(--surface-soft); }
888
+ .git-change-path { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
889
+ .git-status-badge { flex: 0 0 auto; margin-left: 8px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 4px; font-size: 10px; font-weight: 800; }
890
+ .git-status-badge.modified { color: var(--git-modified-text); }
891
+ .git-status-badge.added { color: var(--git-staged-color, #34c759); }
892
+ .git-status-badge.deleted { color: var(--git-deleted-color, #ff3b30); }
893
+ .git-inline-diff { border-top: 1px solid var(--line); background: var(--git-diff-bg); }
894
+ .git-inline-diff-body { max-height: 400px; overflow: auto; padding: 4px 0; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
895
+ .git-inline-diff-footer { padding: 8px; border-top: 1px solid var(--line); background: var(--surface); text-align: center; }
896
+ .git-diff-panel { margin-bottom: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
897
+ .git-diff-summary { padding: 7px 10px; background: var(--surface-raised); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; outline: none; user-select: none; }
898
+ .git-diff-body { overflow-x: auto; padding: 4px 0; background: var(--git-diff-bg); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
899
+ .git-file-code { overflow-x: auto; margin: 0; padding: 12px 0; border-radius: 8px; background: var(--git-diff-bg); color: var(--git-diff-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
900
+ .git-file-toolbar-group { display: flex; gap: 2px; margin-right: 8px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
901
+ .git-file-toolbar-button { padding: 4px 8px; border: 0; border-radius: 3px; background: transparent; color: var(--text-dim); cursor: pointer; font-size: 12px; }
902
+ .git-file-toolbar-button:hover { background: var(--surface-raised); color: var(--text); }
903
+ .git-file-mode-button { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-soft); color: var(--text); cursor: pointer; font-size: 12px; }
904
+ .git-file-mode-button.active { border-color: var(--primary); background: var(--primary); color: #fff; }
905
+ .git-line-number { width: 36px; flex: 0 0 36px; margin-right: 16px; color: var(--text-dim); text-align: right; user-select: none; }