truemap-cli 0.2.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,209 +1,404 @@
1
- @font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/__truemap/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
2
- @font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/__truemap/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
3
- @font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/__truemap/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
4
- @font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/__truemap/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
1
+ @font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/__truemap/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
2
+ @font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("/__truemap/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
3
+ @font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/__truemap/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
4
+ @font-face { font-family: "Commit Mono"; font-weight: 400; font-display: swap; src: url("/__truemap/fonts/commit-mono-latin-400-normal.woff2") format("woff2"); }
5
5
 
6
+ /* One fixed system: neutrals and ink carry structure and selection. The accent (ink by default, the
7
+ project's own colour when truemap finds one) marks the primary action. A highlighter marks what the
8
+ agent points at. Status colours mean status and nothing else. */
6
9
  :root {
7
- --paper: #f6f7f4;
8
- --chrome: #fbfbfa;
9
- --sheet: #ffffff;
10
- --wash: #eef0ec;
11
- --ink: #17202b;
12
- --text: #2a3441;
13
- --graphite: #5b6573;
14
- --pencil: #8a939e;
15
- --rule: #e2e5e0;
16
- --rule-strong: #c2c8c1;
17
- --route: #2453c4;
18
- --route-ink: #1b3f96;
19
- --route-wash: #e9eefb;
20
- --action: #2453c4;
21
- --action-hover: #1b3f96;
22
- --changed: #a2690a;
23
- --broken: #b03a2e;
24
- --fine: #2c7550;
25
- --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
26
- --code: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
27
- --panel-w: 372px;
10
+ --bg: #ffffff;
11
+ --chrome: #fafaf9;
12
+ --surface: #f2f2ef;
13
+ --line: #e6e6e1;
14
+ --line-strong: #d2d2cb;
15
+ --ink: #141413;
16
+ --text: #2b2b28;
17
+ --muted: #6c6c65;
18
+ --faint: #9a9a92;
19
+ --accent: #141413;
20
+ --accent-text: #ffffff;
21
+ --mark: #ffe27a;
22
+ --changed: #a35f00;
23
+ --broken: #c0392b;
24
+ --fine: #2f7a4f;
25
+ --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
26
+ --code: "Commit Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
27
+ --panel-w: 420px;
28
28
  color-scheme: light dark;
29
29
  }
30
30
  @media (prefers-color-scheme: dark) {
31
31
  :root {
32
- --paper: #121519; --chrome: #16191e; --sheet: #191d23; --wash: #1f242b;
33
- --ink: #edf0f3; --text: #d0d6dd; --graphite: #9ba4af; --pencil: #707a86;
34
- --rule: #262c34; --rule-strong: #3d4651;
35
- --route: #7ea3ff; --route-ink: #a9c0ff; --route-wash: #1b2440; --action: #3a66d6; --action-hover: #2f57bd;
36
- --changed: #d9a54a; --broken: #ec8170; --fine: #73bd95;
32
+ --bg: #161615; --chrome: #1b1b1a; --surface: #252523; --line: #2f2f2c; --line-strong: #44443f;
33
+ --ink: #f2f2ee; --text: #dadad4; --muted: #a0a098; --faint: #75756e;
34
+ --accent: #f2f2ee; --accent-text: #141413; --mark: #6b5a12;
35
+ --changed: #e0a548; --broken: #ef8574; --fine: #7cc49c;
37
36
  }
38
37
  }
39
38
 
40
39
  * { box-sizing: border-box; }
41
40
  html, body { height: 100%; }
42
- body { margin: 0; background: var(--paper); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
41
+ body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
43
42
  button { font: inherit; color: inherit; }
44
- :focus-visible { outline: 2px solid var(--route); outline-offset: 2px; }
43
+ :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
45
44
  code { font-family: var(--code); font-size: 0.9em; }
46
45
  [hidden] { display: none !important; }
47
46
 
48
- .app { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); grid-template-rows: 48px minmax(0, 1fr); height: 100vh; height: 100dvh; }
47
+ .app { transition: grid-template-columns 160ms ease; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); grid-template-rows: 44px minmax(0, 1fr); height: 100vh; height: 100dvh; }
49
48
  .app.panel-closed { grid-template-columns: minmax(0, 1fr) 0; }
50
49
  .app.panel-closed .panel { display: none; }
51
50
 
52
- /* ---------- top bar ---------- */
53
- .bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; background: var(--chrome); border-bottom: 1px solid var(--rule); min-width: 0; }
54
- .brand { display: flex; align-items: center; gap: 8px; flex: none; }
55
- .mark { width: 19px; height: 19px; }
56
- .mark-line { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
57
- .mark-fill { fill: var(--route); }
58
- .wordmark { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
59
- .slash { color: var(--rule-strong); font-size: 18px; font-weight: 300; margin: 0 -2px; }
51
+ /* ---------- top bar: where you are, whether it is true, the panel ---------- */
52
+ .bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 14px; background: var(--chrome); border-bottom: 1px solid var(--line); min-width: 0; }
53
+ .projects { position: relative; flex: none; }
54
+ .brand { display: flex; align-items: center; gap: 7px; flex: none; border: 0; background: none; padding: 5px 7px 5px 4px; border-radius: 6px; cursor: pointer; }
55
+ .brand:hover, .brand[aria-expanded="true"] { background: var(--surface); }
56
+ .proj-n { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mark); color: var(--ink); line-height: 18px; text-align: center; }
57
+ .proj-menu { width: 320px; padding: 6px; }
58
+ .proj-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 0 10px; align-items: baseline; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); text-decoration: none; }
59
+ .proj-item:hover, .proj-item:focus-visible { background: var(--surface); outline: none; }
60
+ .proj-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); align-self: center; }
61
+ .proj-item i.listening { background: var(--fine); } .proj-item i.working { background: var(--ink); } .proj-item i.idle { background: var(--changed); }
62
+ .proj-item b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
63
+ .proj-item small { grid-column: 2; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
64
+ .proj-item small em { font-style: normal; color: var(--ink); background: color-mix(in oklab, var(--mark) 70%, transparent); border-radius: 3px; padding: 0 3px; }
65
+ .proj-item.self b::after { content: "this tab"; margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--faint); }
66
+ .proj-foot { padding: 8px 10px 4px; font-size: 12px; color: var(--faint); line-height: 1.45; }
67
+ .mark { width: 17px; height: 17px; }
68
+ .mark-line { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
69
+ .mark-fill { fill: var(--ink); }
70
+ .wordmark { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
71
+ .slash { color: var(--line-strong); font-size: 16px; margin: 0 2px; }
60
72
  .switcher { position: relative; min-width: 0; }
61
- .page-btn { display: flex; align-items: center; gap: 6px; max-width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; min-width: 0; }
62
- .page-btn:hover, .page-btn[aria-expanded="true"] { background: var(--wash); }
73
+ .crumb-home { border: 0; background: none; padding: 5px 7px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 13px; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
74
+ .crumb-home:hover { background: var(--surface); color: var(--ink); }
75
+ .crumb-sep { color: var(--faint); font-size: 13px; }
76
+ .page-btn { display: flex; align-items: center; gap: 5px; max-width: 100%; border: 0; background: none; padding: 5px 7px; border-radius: 6px; cursor: pointer; min-width: 0; font-size: 13px; }
77
+ .page-btn:hover, .page-btn[aria-expanded="true"] { background: var(--surface); }
63
78
  .page-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
64
- .chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--graphite); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
65
- .path { font: 12px var(--code); color: var(--pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
79
+ .chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
66
80
  .spacer { flex: 1; }
67
81
 
68
82
  .menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 340px; max-height: min(70vh, 520px); display: flex; flex-direction: column;
69
- background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(23, 32, 43, .3); overflow: hidden; }
70
- .menu-head { padding: 10px 12px 6px; font-size: 12px; color: var(--pencil); display: grid; gap: 8px; }
71
- .menu-head input { width: 100%; font: 13.5px var(--font); color: var(--text); padding: 7px 9px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); outline: none; }
72
- .menu-head input:focus { border-color: var(--route); }
83
+ background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 44px -18px rgba(20, 20, 19, .28); overflow: hidden; }
84
+ .menu-head { padding: 10px 12px 6px; font-size: 12px; color: var(--muted); display: grid; gap: 8px; }
85
+ .menu-head input { width: 100%; font: 13px var(--font); color: var(--text); padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--chrome); outline: none; }
86
+ .menu-head input:focus { border-color: var(--ink); }
73
87
  .menu-list { overflow-y: auto; padding: 2px 6px 6px; }
74
- .menu-gap { height: 1px; background: var(--rule); margin: 4px 8px; }
75
- .page-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
76
- .page-item:hover, .page-item:focus-visible { background: var(--wash); outline: none; }
77
- .page-item.active .pi-title { color: var(--route); }
88
+ .menu-gap { height: 1px; background: var(--line); margin: 4px 8px; }
89
+ .page-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
90
+ .page-item:hover, .page-item:focus-visible { background: var(--surface); outline: none; }
91
+ .page-item.active .pi-title::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-left: 7px; vertical-align: middle; }
78
92
  .pi-text { display: grid; min-width: 0; flex: 1; }
79
93
  .pi-title { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
80
- .pi-file { font: 11.5px var(--code); color: var(--pencil); }
81
- .menu-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--pencil); }
82
- .text-btn { border: 0; background: none; padding: 0; color: var(--route); cursor: pointer; font-size: 12.5px; }
83
- .text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
94
+ .pi-file { font: 12px var(--code); color: var(--faint); }
95
+ .menu-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
96
+ .text-btn { border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer; font-size: 12px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
97
+ .text-btn:hover { text-decoration-color: var(--ink); }
84
98
 
85
- .tri { display: inline-block; width: 8px; height: 7px; flex: none; background: var(--fine); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
99
+ .tri { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--fine); }
86
100
  .tri.changed { background: var(--changed); }
87
101
  .tri.broken { background: var(--broken); }
88
102
 
89
- .check { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--graphite); white-space: nowrap; cursor: default; }
90
- .check i { display: inline-block; width: 8px; height: 7px; background: var(--fine); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
103
+ /* whether the page still matches the code: a dot, words only when something needs you */
104
+ .check { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 5px 8px; border-radius: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: default; }
105
+ .check i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fine); }
106
+ .check[data-state="ok"] #checkText { color: var(--faint); }
91
107
  .check[data-state="changed"] { color: var(--changed); cursor: pointer; }
92
108
  .check[data-state="changed"] i { background: var(--changed); }
93
109
  .check[data-state="broken"] { color: var(--broken); cursor: pointer; }
94
110
  .check[data-state="broken"] i { background: var(--broken); }
95
- .check[data-state="changed"]:hover, .check[data-state="broken"]:hover { background: var(--wash); }
96
-
97
- .annotate { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--graphite); }
98
- .annotate:hover { background: var(--wash); color: var(--ink); }
99
- .annotate .track { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--rule-strong); transition: background-color 140ms ease; }
100
- .annotate .thumb { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 140ms ease; }
101
- .annotate[aria-checked="true"] { color: var(--ink); }
102
- .annotate[aria-checked="true"] .track { background: var(--route); }
103
- .annotate[aria-checked="true"] .thumb { transform: translateX(12px); }
104
- .annotate:disabled { opacity: .45; cursor: default; }
105
-
106
- .icon-btn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--graphite); }
107
- .icon-btn:hover { background: var(--wash); color: var(--ink); }
108
- .icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
111
+ .check[data-state="changed"]:hover, .check[data-state="broken"]:hover { background: var(--surface); }
112
+
113
+ .icon-btn { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); }
114
+ .icon-btn:hover { background: var(--surface); color: var(--ink); }
115
+ .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
109
116
  .icon-btn .panel-fill { fill: currentColor; stroke: none; opacity: 0; }
110
- .icon-btn[aria-pressed="true"] .panel-fill { opacity: .28; }
111
- .unread { position: absolute; top: 6px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 2px var(--chrome); }
112
- .unread.count { top: 2px; right: 0; width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--action); color: #fff; font: 600 10px/16px var(--code); text-align: center; }
117
+ .icon-btn[aria-pressed="true"] .panel-fill { opacity: .22; }
118
+ .unread { position: absolute; top: 5px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--chrome); }
119
+ .unread.count { top: 1px; right: -1px; width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font: 600 10px/16px var(--font); text-align: center; }
113
120
 
114
121
  /* ---------- stage ---------- */
115
- .stage { position: relative; min-width: 0; min-height: 0; background: var(--paper); }
116
- #frame { display: block; width: 100%; height: 100%; border: 0; background: var(--paper); }
122
+ .stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
123
+ #frame { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: var(--bg); }
124
+ /* plan review bar: what the agent proposes, and the decision */
125
+ .planbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 12px 8px 16px; background: var(--chrome); border-bottom: 1px solid var(--line); font-size: 13px; }
126
+ .pb-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
127
+ .pb-text b { font-weight: 600; color: var(--ink); border: 1px solid var(--ink); padding: 0 6px; border-radius: 6px; font-size: 12px; }
128
+ .pb-title { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
129
+ .pb-meta { color: var(--faint); white-space: nowrap; }
130
+ .pb-acts { display: flex; align-items: center; gap: 6px; }
131
+ .pb-btn { border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 500; height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer; }
132
+ .pb-btn:hover { background: var(--surface); }
133
+ .pb-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
134
+ .pb-btn.primary:hover { opacity: .88; }
135
+ .pb-wait { color: var(--muted); }
136
+ .pb-x { border: 0; background: none; color: var(--faint); font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
137
+ .pb-x:hover { background: var(--surface); color: var(--ink); }
117
138
  .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 520px; margin: 0 auto; padding: 32px; }
118
- .empty-mark { width: 30px; height: 30px; margin-bottom: 20px; }
119
- .empty h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 10px; font-weight: 600; }
120
- .empty p { font-size: 15.5px; color: var(--graphite); margin: 0 0 22px; line-height: 1.55; }
121
- .primary { border: 0; background: var(--action); color: #fff; font-weight: 500; padding: 10px 16px; border-radius: 6px; cursor: pointer; }
122
- .primary:hover { background: var(--action-hover); }
123
-
124
- /* ---------- conversation panel ---------- */
125
- .panel { display: flex; flex-direction: column; min-height: 0; background: var(--chrome); border-left: 1px solid var(--rule); }
126
- .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 10px; border-bottom: 1px solid var(--rule); }
127
- .agent-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--graphite); min-width: 0; }
128
- .agent-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); flex: none; }
139
+ .empty-mark { width: 26px; height: 26px; margin-bottom: 18px; }
140
+ .empty h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 8px; font-weight: 600; }
141
+ .empty p { font-size: 14px; color: var(--muted); margin: 0 0 20px; line-height: 1.55; }
142
+ .primary { border: 0; background: var(--accent); color: var(--accent-text); font-weight: 500; font-size: 13px; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
143
+ .primary:hover { opacity: .88; }
144
+
145
+ /* ---------- panel: the conversation, or the inspector over it ---------- */
146
+ .panel { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--chrome); border-left: 1px solid var(--line); }
147
+ .convo { display: flex; flex-direction: column; min-height: 0; flex: 1; }
148
+ .panel.inspecting .convo { display: none; }
149
+ .panel-head { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; height: 40px; padding: 0 14px 0 8px; border-bottom: 1px solid var(--line); flex: none; }
150
+ .ptabs { display: flex; gap: 2px; }
151
+ .ptab { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
152
+ .ptab:hover { color: var(--ink); }
153
+ .ptab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
154
+ .ptab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 1px; }
155
+ .ptab-n { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface); color: var(--ink); line-height: 18px; text-align: center; }
156
+ .panel.show-changes .msgs, .panel.show-changes .notice { display: none !important; }
157
+ .panel:not(.show-changes) .changes { display: none !important; }
158
+ .agent-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); min-width: 0; white-space: nowrap; }
159
+ .agent-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
129
160
  .agent-state[data-state="listening"] i { background: var(--fine); }
130
- .agent-state[data-state="working"] i { background: var(--route); animation: pulse 1.4s ease-in-out infinite; }
161
+ .agent-state[data-state="working"] i { background: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
131
162
  .agent-state[data-state="idle"] i, .agent-state[data-state="stale"] i { background: var(--changed); }
132
163
  .agent-state[data-state="closed"] i { background: var(--broken); }
133
- @keyframes pulse { 50% { opacity: .35; } }
134
- .elapsed { font: 12px var(--code); color: var(--pencil); }
135
-
136
- .msgs { flex: 1; overflow-y: auto; padding: 14px 16px 18px; min-height: 0; }
137
- .intro h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 6px 0 10px; }
138
- .intro ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
139
- .intro li { counter-increment: s; position: relative; padding-left: 26px; margin: 0 0 10px; color: var(--graphite); font-size: 13.5px; line-height: 1.5; }
140
- .intro li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--rule-strong); font: 500 10.5px/15px var(--code); text-align: center; color: var(--graphite); }
141
- .intro kbd { font: 11.5px var(--code); padding: 0 4px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 4px; color: var(--ink); background: var(--sheet); }
142
-
143
- .who { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; font-size: 12px; color: var(--pencil); }
144
- .who b { font-weight: 600; color: var(--graphite); }
145
- .msgs > .who:first-child { margin-top: 2px; }
164
+ @keyframes pulse { 50% { opacity: .3; } }
165
+ .elapsed { font: 12px var(--code); color: var(--faint); }
166
+
167
+ .msgs { flex: 1; overflow-y: auto; padding: 16px 16px 20px; min-height: 0; }
168
+ .intro { color: var(--muted); font-size: 13px; line-height: 1.55; padding-top: 4px; }
169
+ .intro p { margin: 0 0 8px; }
170
+ .intro b { color: var(--text); font-weight: 500; }
171
+
172
+ .who { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; font-size: 12px; color: var(--faint); }
173
+ .who b { font-weight: 500; color: var(--muted); }
174
+ .msgs > .who:first-child { margin-top: 0; }
175
+ .who.you { justify-content: flex-end; }
146
176
  .msg { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
147
- .msg.user { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 9px 12px; }
148
- .msg.user .from-page { font-size: 11.5px; color: var(--changed); margin-top: 4px; }
149
- .msg.user .waiting { font-size: 11.5px; color: var(--pencil); margin-top: 4px; }
177
+ .msg.user { margin-left: 28px; background: var(--surface); border-radius: 12px; padding: 9px 12px; }
178
+ .msg.user .from-page { font-size: 12px; color: var(--changed); margin-top: 4px; }
179
+ .msg.user .waiting { font-size: 12px; color: var(--faint); margin-top: 4px; }
150
180
  .msg p { margin: 0 0 8px; } .msg p:last-child { margin-bottom: 0; }
151
- .msg ul, .msg ol { margin: 4px 0 8px; padding-left: 18px; } .msg li { margin: 2px 0; }
152
- .msg h4 { font-size: 14px; margin: 12px 0 4px; color: var(--ink); }
153
- .msg :not(pre) > code { background: var(--wash); padding: 1px 4px; border-radius: 4px; color: var(--ink); }
154
- .msg pre { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; overflow-x: auto; font-size: 12.5px; }
155
- .msg a { color: var(--route); text-underline-offset: 3px; }
181
+ .msg ul, .msg ol { margin: 4px 0 8px; padding-left: 18px; } .msg li { margin: 3px 0; }
182
+ .msg li::marker { color: var(--faint); }
183
+ .msg h4 { font-size: 14px; font-weight: 600; margin: 12px 0 4px; color: var(--ink); }
184
+ .msg :not(pre) > code { background: var(--surface); padding: 1px 4px; border-radius: 4px; color: var(--ink); font-size: 12.5px; }
185
+ .msg.user :not(pre) > code { background: var(--bg); }
186
+ .msg pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; font-size: 12px; }
187
+ .msg a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
188
+ .msg a:hover { text-decoration-color: var(--ink); }
156
189
  .msg strong { color: var(--ink); font-weight: 600; }
190
+ /* a box named in an answer: hover or click lights it on the map */
191
+ .msg a.ref { text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 2px solid color-mix(in oklab, var(--mark) 85%, var(--ink) 15%); border-radius: 0; padding: 0 1px; transition: background-color 120ms ease; }
192
+ .msg a.ref:hover, .msg li.lit a.ref { background: var(--mark); border-radius: 3px; }
193
+ .msg li.has-ref { cursor: default; border-radius: 6px; }
157
194
  .msg-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
158
- .msg-notes + .msg-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
195
+ .msg-notes + .msg-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
159
196
  .mn { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 8px; }
160
- .mn-num { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; background: var(--action); color: #fff; font: 600 10px/18px var(--code); text-align: center; margin-top: 1px; }
161
- .mn-what { font-size: 12px; color: var(--pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
162
- .mn-what b { color: var(--graphite); font-weight: 500; }
163
- .answer-q { display: block; font-size: 12px; color: var(--pencil); margin-bottom: 2px; }
197
+ .mn-num { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 10.5px/18px var(--font); text-align: center; margin-top: 1px; }
198
+ .mn-what { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
199
+ .mn-what b { color: var(--muted); font-weight: 500; }
200
+ .answer-q { display: block; font-size: 12px; color: var(--faint); margin-bottom: 2px; }
164
201
 
165
- .working { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--graphite); }
166
- .working i { width: 7px; height: 7px; border-radius: 50%; background: var(--route); animation: pulse 1.4s ease-in-out infinite; }
202
+ .working { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
203
+ .working i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
167
204
 
168
- .notice { margin: 0 12px 10px; padding: 11px 13px; border-radius: 8px; background: var(--wash); font-size: 13px; color: var(--graphite); line-height: 1.5; }
169
- .notice b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; font-size: 13.5px; }
205
+ .notice { margin: 0 12px 8px; padding: 9px 10px 8px 12px; border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--muted); line-height: 1.45; }
206
+ .notice b { color: var(--ink); font-weight: 500; }
170
207
  .notice .after { margin: 8px 0 0; }
171
- .notice .cmd { display: flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 5px 5px 9px; }
208
+ .notice .cmd { display: flex; align-items: center; gap: 6px; margin-top: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 3px 3px 3px 8px; }
172
209
  .notice .cmd code { flex: 1; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
173
- .notice .copy { border: 0; background: none; color: var(--route); font-size: 12px; font-weight: 500; padding: 3px 6px; border-radius: 4px; cursor: pointer; }
174
- .notice .copy:hover { background: var(--route-wash); }
210
+ .notice .copy { border: 0; background: none; color: var(--ink); font-size: 12px; font-weight: 500; padding: 3px 7px; border-radius: 6px; cursor: pointer; }
211
+ .notice .copy:hover { background: var(--surface); }
175
212
 
176
- .composer { padding: 0 12px 12px; }
213
+ .composer { padding: 0 12px 12px; flex: none; }
177
214
  .notes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; max-height: 34vh; overflow-y: auto; }
178
- .note { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 1px 8px; align-items: start; padding: 7px 6px 7px 8px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 7px; cursor: pointer; }
179
- .note:hover { border-color: var(--rule-strong); }
215
+ .note { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 1px 8px; align-items: start; padding: 7px 6px 7px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
216
+ .note:hover { border-color: var(--line-strong); }
180
217
  .note .mn-num { grid-row: 1 / span 2; }
181
218
  .note-text { font-size: 13px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
182
- .note-x { grid-row: 1 / span 2; grid-column: 3; border: 0; background: none; color: var(--pencil); cursor: pointer; width: 22px; height: 22px; border-radius: 4px; font-size: 16px; line-height: 1; }
183
- .note-x:hover { background: var(--wash); color: var(--ink); }
184
-
185
- .box { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 9px 10px 8px 12px; }
186
- .box:focus-within { border-color: var(--route); }
187
- #input { display: block; width: 100%; resize: none; border: 0; outline: none; background: none; font: 14px/1.5 var(--font); color: var(--text); max-height: 180px; overflow-y: auto; padding: 0; }
188
- #input::placeholder { color: var(--pencil); }
189
- .box-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
190
- .box-hint { font-size: 11.5px; color: var(--pencil); }
191
- .send { border: 0; background: var(--action); color: #fff; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
192
- .send:hover { background: var(--action-hover); }
193
- .send:disabled { background: var(--wash); color: var(--pencil); cursor: default; }
219
+ .note-x { grid-row: 1 / span 2; grid-column: 3; border: 0; background: none; color: var(--faint); cursor: pointer; width: 22px; height: 22px; border-radius: 6px; font-size: 16px; line-height: 1; }
220
+ .note-x:hover { background: var(--surface); color: var(--ink); }
221
+
222
+ .box { display: flex; align-items: flex-end; gap: 8px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 8px 8px 12px; }
223
+ .box:focus-within { border-color: var(--ink); }
224
+ #input { flex: 1; display: block; width: 100%; resize: none; border: 0; outline: none; background: none; font: 14px/1.5 var(--font); color: var(--text); max-height: 180px; overflow-y: auto; padding: 3px 0; }
225
+ #input::placeholder { color: var(--faint); }
226
+ .send { flex: none; border: 0; background: var(--accent); color: var(--accent-text); font-size: 13px; font-weight: 500; height: 28px; min-width: 28px; padding: 0 10px; border-radius: 8px; cursor: pointer; }
227
+ .send:hover { opacity: .88; }
228
+ .send:disabled { background: var(--surface); color: var(--faint); cursor: default; }
194
229
 
195
230
  /* the server is gone */
196
- .app[data-conn="closed"] .composer, .app[data-conn="closed"] .annotate { opacity: .5; pointer-events: none; }
231
+ .app[data-conn="closed"] .composer, .app[data-conn="closed"] .insp-comment { opacity: .5; pointer-events: none; }
232
+ .app[data-conn="closed"] .empty .primary { display: none; }
197
233
 
198
- /* ---------- small screens: the conversation becomes a bottom sheet ---------- */
234
+ /* ---------- inspector: what a box is ---------- */
235
+ .inspector { display: none; flex-direction: column; min-height: 0; flex: 1; }
236
+ .panel.inspecting .inspector { display: flex; }
237
+ .insp-head { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; }
238
+ .insp-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--muted); }
239
+ .insp-back:hover { background: var(--surface); color: var(--ink); }
240
+ .insp-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
241
+ .insp-body { flex: 1; overflow-y: auto; padding: 16px 16px 24px; min-height: 0; font-size: 14px; }
242
+ .insp-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
243
+ .insp-name h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
244
+ .insp-name code { font-size: 12px; color: var(--muted); }
245
+ .insp-plan { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 6px; background: var(--surface); color: var(--ink); }
246
+ .insp-comment { margin: 14px 0 0; display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); padding: 6px 6px 6px 10px; }
247
+ .insp-comment:focus-within { border-color: var(--ink); }
248
+ .insp-comment textarea { flex: 1; resize: none; border: 0; outline: none; background: none; font: 13.5px/1.45 var(--font); color: var(--text); padding: 3px 0; max-height: 140px; }
249
+ .insp-comment textarea::placeholder { color: var(--faint); }
250
+ .insp-comment button { flex: none; border: 0; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 500; height: 26px; padding: 0 10px; border-radius: 7px; cursor: pointer; }
251
+ .insp-comment button:disabled { background: var(--surface); color: var(--faint); cursor: default; }
252
+ .insp-state { margin-top: 12px; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: var(--surface); color: var(--changed); }
253
+ .insp-state.broken { color: var(--broken); }
254
+ .insp-detail { margin-top: 14px; color: var(--text); line-height: 1.55; }
255
+ .insp-detail p { margin: 0 0 8px; }
256
+ .insp-detail ul { margin: 4px 0 8px; padding-left: 18px; }
257
+ .insp-detail li { margin: 3px 0; }
258
+ .insp-detail li::marker { color: var(--faint); }
259
+ .insp-why { margin-top: 10px; padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: 13px; line-height: 1.55; }
260
+ .insp-rel { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px 8px; margin-top: 16px; font-size: 13px; }
261
+ .insp-rel > span { color: var(--faint); font-size: 12px; padding-top: 3px; }
262
+ .insp-rel > div { display: flex; flex-wrap: wrap; gap: 4px; }
263
+ .chip { display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid var(--line); background: var(--bg); padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
264
+ .chip:hover { border-color: var(--line-strong); background: var(--surface); }
265
+ .chip i { font-style: normal; font: 11px var(--code); color: var(--faint); }
266
+ .insp-code { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
267
+ .insp-code summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; color: var(--ink); }
268
+ .insp-code summary::-webkit-details-marker { display: none; }
269
+ .insp-code summary svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 120ms ease; }
270
+ .insp-code[open] summary svg { transform: rotate(90deg); }
271
+ .insp-code summary code { font-size: 12px; font-weight: 400; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
272
+ .insp-code summary .open-ed { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; flex: none; }
273
+ .insp-code summary .open-ed:hover { color: var(--ink); }
274
+ .code-box { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
275
+ .code-meta { font-size: 12px; color: var(--faint); padding: 6px 10px; border-bottom: 1px solid var(--line); }
276
+ .code-box pre { margin: 0; padding: 6px 0; font: 12px/1.6 var(--code); color: var(--text); overflow: auto; max-height: 340px; }
277
+ .code-box pre span { display: block; padding: 0 10px; white-space: pre; width: max-content; min-width: 100%; }
278
+ .code-box pre span i { display: inline-block; width: 3.2em; color: var(--faint); font-style: normal; user-select: none; }
279
+ .code-box pre span.hit { background: color-mix(in oklab, var(--mark) 60%, transparent); }
280
+ .code-box pre span.add { background: color-mix(in oklab, var(--fine) 14%, transparent); }
281
+ .code-box pre span.del { background: color-mix(in oklab, var(--broken) 12%, transparent); }
282
+ .code-box pre span.hunk { color: var(--faint); }
283
+ .code-note { padding: 10px; font-size: 13px; color: var(--faint); }
284
+ .code-note.broken { color: var(--broken); }
285
+ .insp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
286
+ .insp-actions button { border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
287
+ .insp-actions button:hover { background: var(--surface); }
288
+
289
+ /* ---------- more menu ---------- */
290
+ .more { position: relative; }
291
+ .icon-btn .dot { fill: currentColor; stroke: none; }
292
+ .more-menu { left: auto; right: 0; width: 300px; padding: 6px; }
293
+ .more-file { padding: 6px 8px 10px; }
294
+ .more-label { display: block; font-size: 12px; color: var(--faint); margin-bottom: 4px; }
295
+ .more-path { display: flex; align-items: center; gap: 10px; min-width: 0; }
296
+ .more-path code { flex: 1; min-width: 0; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
297
+ .more-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 13px; }
298
+ .more-item:hover:not(:disabled), .more-item:focus-visible { background: var(--surface); outline: none; }
299
+ .more-item svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
300
+ .more-item span { display: grid; gap: 1px; font-weight: 500; }
301
+ .more-item small { font-size: 12px; font-weight: 400; color: var(--faint); }
302
+ .more-item:disabled { opacity: .45; cursor: default; }
303
+
304
+ /* ---------- "about this box" and choices in the conversation ---------- */
305
+ .about { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 6px 6px 10px; background: var(--surface); border-radius: 8px; font-size: 12px; color: var(--text); }
306
+ .about span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
307
+ .about code { font-size: 11.5px; color: var(--muted); }
308
+ .about button { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 0 6px; border-radius: 6px; }
309
+ .ask { margin: 10px 0 4px; display: grid; gap: 6px; }
310
+ .ask-q { font-weight: 600; color: var(--ink); }
311
+ .ask-opt { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 10px; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--text); }
312
+ .ask-opt b { color: var(--ink); font-weight: 600; }
313
+ .ask-opt span { font-size: 13px; color: var(--muted); }
314
+ .ask-opt:hover:not(:disabled) { border-color: var(--ink); }
315
+ .ask-opt.chosen { border-color: var(--ink); background: var(--surface); }
316
+ .ask-opt:disabled:not(.chosen) { opacity: .5; cursor: default; }
317
+
318
+ /* ---------- small screens: the panel becomes a bottom sheet ---------- */
199
319
  @media (max-width: 860px) {
200
320
  .app, .app.panel-closed { grid-template-columns: minmax(0, 1fr); }
201
- .path, .slash, .wordmark, #checkText { display: none; }
202
- .bar { gap: 4px; padding: 0 6px 0 12px; }
203
- .panel { position: fixed; left: 0; right: 0; bottom: 0; height: min(70vh, 560px); z-index: 30; border-left: 0; border-top: 1px solid var(--rule-strong); border-radius: 14px 14px 0 0; box-shadow: 0 -18px 40px -24px rgba(23, 32, 43, .45); }
321
+ .slash, .wordmark, #checkText, .crumb-home, .crumb-sep { display: none !important; }
322
+ .bar { gap: 2px; padding: 0 6px 0 12px; }
323
+ .panel { position: fixed; left: 0; right: 0; bottom: 0; height: min(70vh, 560px); z-index: 30; border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 14px 14px 0 0; box-shadow: 0 -18px 40px -24px rgba(20, 20, 19, .4); }
204
324
  .menu { width: min(340px, calc(100vw - 24px)); }
205
325
  }
206
326
  @media (prefers-reduced-motion: reduce) {
207
327
  * { animation: none !important; transition: none !important; }
208
328
  }
209
- .app[data-conn="closed"] .empty .primary { display: none; }
329
+
330
+ /* ---------- changes: what the agent (or anyone) changed, by box ---------- */
331
+ .changes { flex: 1; overflow-y: auto; min-height: 0; padding: 12px 12px 20px; font-size: 13px; }
332
+ .ch-base { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 4px 12px; }
333
+ .ch-base select { appearance: none; -webkit-appearance: none; min-width: 0; max-width: 70%; font: 500 13px var(--font); color: var(--ink); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' fill='none' stroke='%236c6c65' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 2px center / 14px; border: 0; border-radius: 6px; padding: 3px 20px 3px 4px; cursor: pointer; }
334
+ .ch-base select:hover { background-color: var(--surface); }
335
+ .ch-base .ch-sum { margin: 0; white-space: nowrap; }
336
+ .ch-sum { margin: 0 4px 14px; color: var(--muted); font-size: 12px; }
337
+ .delta { font: 12px var(--code); white-space: nowrap; }
338
+ .delta .a { color: var(--fine); } .delta .d { color: var(--broken); }
339
+ .ch-h { margin: 16px 4px 6px; font-size: 12px; font-weight: 500; color: var(--faint); }
340
+ .ch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; cursor: pointer; color: var(--text); }
341
+ .ch-row:hover, .ch-row.on { background: var(--surface); }
342
+ .ch-row b { font-weight: 500; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
343
+ .ch-row small { grid-column: 1 / -1; font: 12px var(--code); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
344
+ .ch-folder { margin: 2px 0 6px; }
345
+ .ch-folder summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 8px; cursor: pointer; list-style: none; }
346
+ .ch-folder summary::-webkit-details-marker { display: none; }
347
+ .ch-folder summary:hover { background: var(--surface); }
348
+ .ch-folder summary b { font: 500 12.5px var(--code); color: var(--ink); }
349
+ .ch-folder summary span { font-size: 12px; color: var(--faint); }
350
+ .ch-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 4px 8px 4px 20px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; border-radius: 6px; font: 12px var(--code); color: var(--muted); }
351
+ .ch-file:hover { background: var(--surface); color: var(--ink); }
352
+ .ch-file span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
353
+ .ch-diff { margin: 4px 0 8px 12px; }
354
+ .ch-empty { margin: 8px 4px; color: var(--muted); line-height: 1.5; }
355
+ .ch-act { margin: 10px 4px 0; }
356
+ .ch-act button { border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
357
+ .ch-act button:hover { background: var(--surface); }
358
+ .insp-change { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; background: var(--bg); }
359
+ .insp-change > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
360
+ .insp-change details { margin-top: 4px; }
361
+ .insp-change summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; font: 12px var(--code); color: var(--ink); padding: 3px 0; }
362
+ .insp-change summary::-webkit-details-marker { display: none; }
363
+ .insp-change .shared { font: 11.5px var(--font); color: var(--faint); margin-left: 6px; }
364
+
365
+ /* boxes are lit: a visible way back */
366
+ .lit-pill { position: absolute; z-index: 12; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: 0 6px 20px -10px rgba(20, 20, 19, .35); font-size: 12px; color: var(--muted); }
367
+ .lit-pill button { border: 0; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
368
+ /* code and diffs get room while they are open */
369
+ .msg .show-map { font-size: 12px; }
370
+ .msg .show-map a { color: var(--muted); }
371
+ .ch-plan { margin: 0 0 6px; padding: 2px 0 8px; border-bottom: 1px solid var(--line); }
372
+ .ch-plan .ch-h { margin-top: 4px; color: var(--ink); }
373
+ .ch-missing { list-style: none; margin: 0 4px 6px; padding: 0; display: grid; gap: 6px; }
374
+ .ch-missing li { padding: 7px 10px; border-radius: 8px; background: color-mix(in oklab, var(--changed) 10%, transparent); color: var(--text); font-size: 13px; }
375
+ .ch-missing b { font-weight: 500; color: var(--ink); }
376
+ .ch-missing small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
377
+ .off-plan { margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--changed); }
378
+ .ch-file em { font: 11.5px var(--font); font-style: normal; color: var(--changed); margin-left: 8px; }
379
+ .insp-planned { margin-top: 12px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--text); }
380
+ .insp-planned b { font-weight: 600; color: var(--ink); }
381
+ .insp-planned span { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
382
+ .ch-want { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
383
+ .insp-back.news::after { content: "New message"; margin-left: 8px; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 8px; background: var(--mark); color: var(--ink); }
384
+ .ch-steps { margin: 4px 4px 10px; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; }
385
+ .ch-steps li::marker { color: var(--faint); }
386
+ .st-text { display: block; color: var(--text); }
387
+ .st-rep { display: inline-block; margin-top: 3px; font-size: 12px; color: var(--faint); }
388
+ .st-rep.st-done { color: var(--fine); }
389
+ .st-rep.st-partly, .st-rep.st-not_built, .st-rep.st-dropped { color: var(--changed); }
390
+ .st-fact { display: block; margin-top: 2px; font-size: 12px; color: var(--changed); }
391
+ .ch-conflicts { margin: 4px 4px 12px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--broken); background: color-mix(in oklab, var(--broken) 8%, var(--bg)); font-size: 13px; color: var(--text); }
392
+ .ch-conflicts b { display: block; color: var(--broken); font-weight: 600; margin-bottom: 4px; }
393
+ .ch-conflicts p { margin: 4px 0 0; }
394
+ .ch-steps li.st-conflict .st-rep { color: var(--broken); font-weight: 500; }
395
+ .st-text code { font-size: 12px; background: var(--surface); padding: 0 4px; border-radius: 4px; }
396
+ .insp-drift { margin-top: 10px; }
397
+ .insp-drift summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink); }
398
+ .insp-drift .code-box { margin-top: 6px; }
399
+ /* diffs wrap: the change matters more than the column */
400
+ .code-box pre span.hunk { color: var(--faint); background: var(--surface); }
401
+ .code-box pre span.hunk i { visibility: hidden; }
402
+ .send.quiet { background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); }
403
+ .code-box pre span em { display: inline-block; width: 1.4em; font-style: normal; color: var(--faint); user-select: none; }
404
+ .code-box pre span.add em { color: var(--fine); } .code-box pre span.del em { color: var(--broken); }