heyquilt 0.0.1 → 0.3.90

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.
Files changed (204) hide show
  1. package/LICENSE +85 -0
  2. package/README.md +630 -2
  3. package/RELEASES.md +733 -0
  4. package/assets/logo.svg +1 -0
  5. package/bin/quilt.js +816 -0
  6. package/desktop/main.js +315 -0
  7. package/package.json +163 -7
  8. package/src/account.js +563 -0
  9. package/src/admit-policy.js +32 -0
  10. package/src/agent-join.js +370 -0
  11. package/src/agent-task-workflow.js +176 -0
  12. package/src/agents/actions.js +85 -0
  13. package/src/agents/claude-code.js +180 -0
  14. package/src/agents/common.js +21 -0
  15. package/src/agents/cursor-transcripts.js +170 -0
  16. package/src/agents/cursor.js +404 -0
  17. package/src/agents/index.js +69 -0
  18. package/src/ai-vm-signin.js +98 -0
  19. package/src/ai-vm.js +380 -0
  20. package/src/api/access.js +75 -0
  21. package/src/api/activity.js +181 -0
  22. package/src/api/agent-auth.js +130 -0
  23. package/src/api/agent-placement.js +157 -0
  24. package/src/api/audit.js +83 -0
  25. package/src/api/auth.js +17 -0
  26. package/src/api/domains.js +30 -0
  27. package/src/api/file-paths.js +40 -0
  28. package/src/api/file-store.js +99 -0
  29. package/src/api/fly-machines.js +76 -0
  30. package/src/api/github-app.js +172 -0
  31. package/src/api/http.js +34 -0
  32. package/src/api/invite-email.js +53 -0
  33. package/src/api/issues.js +110 -0
  34. package/src/api/join-text.js +78 -0
  35. package/src/api/mailer.js +47 -0
  36. package/src/api/memory-store.js +1083 -0
  37. package/src/api/org-access.js +54 -0
  38. package/src/api/permissions.js +71 -0
  39. package/src/api/relay-cluster.js +251 -0
  40. package/src/api/relay-machines.js +60 -0
  41. package/src/api/routes/access-types.js +54 -0
  42. package/src/api/routes/agent-invites.js +115 -0
  43. package/src/api/routes/agents.js +157 -0
  44. package/src/api/routes/ai-vm.js +369 -0
  45. package/src/api/routes/github.js +380 -0
  46. package/src/api/routes/grants.js +70 -0
  47. package/src/api/routes/invites.js +188 -0
  48. package/src/api/routes/issues.js +47 -0
  49. package/src/api/routes/join.js +167 -0
  50. package/src/api/routes/members.js +110 -0
  51. package/src/api/routes/orgs.js +177 -0
  52. package/src/api/routes/relay-cluster.js +90 -0
  53. package/src/api/routes/relay.js +76 -0
  54. package/src/api/routes/session-invites.js +119 -0
  55. package/src/api/routes/sessions.js +92 -0
  56. package/src/api/routes/teams.js +132 -0
  57. package/src/api/routes/workspace-agents.js +332 -0
  58. package/src/api/routes/workspace-files.js +277 -0
  59. package/src/api/routes/workspace-invites.js +196 -0
  60. package/src/api/routes/workspaces.js +225 -0
  61. package/src/api/server.js +623 -0
  62. package/src/api/slugs.js +20 -0
  63. package/src/api/supabase-store.js +765 -0
  64. package/src/api/team-access.js +30 -0
  65. package/src/api/tokens.js +31 -0
  66. package/src/api/workspace-access.js +62 -0
  67. package/src/api/workspace-reach.js +60 -0
  68. package/src/autowork-tools.js +166 -0
  69. package/src/autowork.js +387 -0
  70. package/src/blobstore.js +99 -0
  71. package/src/boxes.js +37 -0
  72. package/src/branchdocs.js +235 -0
  73. package/src/branches.js +194 -0
  74. package/src/catchup.js +111 -0
  75. package/src/chat-archive.js +85 -0
  76. package/src/chat-links.js +923 -0
  77. package/src/clash.js +140 -0
  78. package/src/cloud-ai.js +50 -0
  79. package/src/commit-request.js +59 -0
  80. package/src/commit.js +213 -0
  81. package/src/connection.js +569 -0
  82. package/src/control.js +245 -0
  83. package/src/conversation.js +125 -0
  84. package/src/doctor.js +156 -0
  85. package/src/duties.js +303 -0
  86. package/src/editors.js +228 -0
  87. package/src/fsutil.js +87 -0
  88. package/src/git-hook.js +48 -0
  89. package/src/git.js +147 -0
  90. package/src/github-commit.js +320 -0
  91. package/src/gitignore.js +49 -0
  92. package/src/gitstate.js +900 -0
  93. package/src/history.js +307 -0
  94. package/src/hooks.js +371 -0
  95. package/src/hosted-agents.js +24 -0
  96. package/src/hosted-client.js +112 -0
  97. package/src/identity.js +99 -0
  98. package/src/inbox.js +237 -0
  99. package/src/integrations.js +221 -0
  100. package/src/key-cli.js +115 -0
  101. package/src/largefiles.js +91 -0
  102. package/src/legacy.js +25 -0
  103. package/src/mcp-proxy.js +40 -0
  104. package/src/mcp-room.js +32 -0
  105. package/src/mcp.js +1261 -0
  106. package/src/merge3.js +158 -0
  107. package/src/merges.js +148 -0
  108. package/src/pass-source.js +176 -0
  109. package/src/passes.js +64 -0
  110. package/src/pathrules.js +127 -0
  111. package/src/persona.js +101 -0
  112. package/src/presence.js +360 -0
  113. package/src/private-file.js +41 -0
  114. package/src/procs.js +70 -0
  115. package/src/project-rules.js +178 -0
  116. package/src/protocol.js +92 -0
  117. package/src/quiet-warnings.js +9 -0
  118. package/src/relay-ai-vm.js +82 -0
  119. package/src/relay-ask.js +141 -0
  120. package/src/relay-ci.js +111 -0
  121. package/src/relay-clash.js +597 -0
  122. package/src/relay-cluster.js +454 -0
  123. package/src/relay-commit.js +887 -0
  124. package/src/relay-filekey.js +46 -0
  125. package/src/relay-git.js +274 -0
  126. package/src/relay-githttp.js +137 -0
  127. package/src/relay-github.js +109 -0
  128. package/src/relay-lease.js +137 -0
  129. package/src/relay-lfs.js +37 -0
  130. package/src/relay-mcp.js +1679 -0
  131. package/src/relay-metrics.js +75 -0
  132. package/src/relay-outbound.js +1144 -0
  133. package/src/relay-sync.js +719 -0
  134. package/src/relay-turn-sync.js +307 -0
  135. package/src/relay-upstream.js +934 -0
  136. package/src/relay-webhooks.js +111 -0
  137. package/src/releases.js +131 -0
  138. package/src/report.js +129 -0
  139. package/src/runner.js +306 -0
  140. package/src/same-edit.js +18 -0
  141. package/src/server.js +4187 -0
  142. package/src/session-access.js +170 -0
  143. package/src/session-name.js +15 -0
  144. package/src/session.js +7361 -0
  145. package/src/settings.js +46 -0
  146. package/src/setup.js +184 -0
  147. package/src/shell-path.js +46 -0
  148. package/src/status.js +199 -0
  149. package/src/summarize.js +109 -0
  150. package/src/sync-words.js +42 -0
  151. package/src/task-comments.js +92 -0
  152. package/src/tasks.js +670 -0
  153. package/src/textdiff.js +20 -0
  154. package/src/turn-sync-plan.js +142 -0
  155. package/src/turn-sync.js +191 -0
  156. package/src/ui/access-form.js +37 -0
  157. package/src/ui/agent-env-key.js +76 -0
  158. package/src/ui/agent-guide.js +127 -0
  159. package/src/ui/agent-kinds.js +175 -0
  160. package/src/ui/agent-place.js +265 -0
  161. package/src/ui/app.css +2309 -0
  162. package/src/ui/app.js +542 -0
  163. package/src/ui/board.js +465 -0
  164. package/src/ui/boxes.js +76 -0
  165. package/src/ui/branches.js +111 -0
  166. package/src/ui/catchup.js +77 -0
  167. package/src/ui/changes.js +159 -0
  168. package/src/ui/chat.js +266 -0
  169. package/src/ui/cloud-ai-model.js +107 -0
  170. package/src/ui/cloud-ai.js +221 -0
  171. package/src/ui/common.js +431 -0
  172. package/src/ui/csv.js +21 -0
  173. package/src/ui/diffview.js +74 -0
  174. package/src/ui/feed-convs.js +39 -0
  175. package/src/ui/feed.js +174 -0
  176. package/src/ui/files.js +579 -0
  177. package/src/ui/fileview.js +123 -0
  178. package/src/ui/git-rule.js +60 -0
  179. package/src/ui/home.js +1323 -0
  180. package/src/ui/index.html +16 -0
  181. package/src/ui/invite.js +97 -0
  182. package/src/ui/invites.js +79 -0
  183. package/src/ui/loom-model.js +516 -0
  184. package/src/ui/loom.css +349 -0
  185. package/src/ui/loom.js +753 -0
  186. package/src/ui/mark.js +104 -0
  187. package/src/ui/merges.js +158 -0
  188. package/src/ui/rail-model.js +78 -0
  189. package/src/ui/rail.js +173 -0
  190. package/src/ui/releases.js +182 -0
  191. package/src/ui/schedule.js +156 -0
  192. package/src/ui/session.js +3394 -0
  193. package/src/ui/signin.js +75 -0
  194. package/src/ui/sounds.js +110 -0
  195. package/src/ui/tool-logo.js +86 -0
  196. package/src/ui/tree.js +276 -0
  197. package/src/ui/workspaces.js +542 -0
  198. package/src/ui-server.js +1272 -0
  199. package/src/update-check.js +67 -0
  200. package/src/upstream.js +155 -0
  201. package/src/webhooks.js +235 -0
  202. package/src/workspace-cli.js +62 -0
  203. package/src/workspace-tools.js +340 -0
  204. package/index.js +0 -2
package/src/ui/app.css ADDED
@@ -0,0 +1,2309 @@
1
+ @font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/poppins/poppins-latin-400-normal.woff2) format("woff2"); }
2
+ @font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/poppins/poppins-latin-500-normal.woff2) format("woff2"); }
3
+ @font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/poppins/poppins-latin-600-normal.woff2) format("woff2"); }
4
+ @font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/poppins/poppins-latin-700-normal.woff2) format("woff2"); }
5
+ @font-face { font-family: "Poppins"; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/poppins/poppins-latin-500-italic.woff2) format("woff2"); }
6
+ @font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
7
+ @font-face { font-family: "IBM Plex Mono"; font-weight: 500 700; font-display: swap; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
8
+
9
+ /* Ink and vermilion (brand/SPEC.md). Light mode is neutral and crisp: a white frame (the top bar, Files,
10
+ chat, the sidebar) around a cool grey canvas where the work is, so the white cards and lane heads on
11
+ it lift off with a firm line and a soft shadow. Its greys lean faintly toward the ink, never toward
12
+ cream, which reads cloudy or green on many screens. Dark mode is the same on ink. Settings →
13
+ Appearance sets data-theme; dark unless chosen. */
14
+ :root {
15
+ /* Ink text, vermilion accents. The accent is a deeper vermilion so links and buttons keep 4.5:1;
16
+ pure vermilion is for the mark. Vermilion marks things as a spark (text, an edge, a dot), not a
17
+ wash: a vermilion wash turns pink. Every text colour here keeps 4.5:1 on --bg, --panel and --panel-2. */
18
+ --bg: light-dark(#ffffff, #17161f);
19
+ --canvas: light-dark(#f3f3f6, #17161f); /* where the work is: .ws-main and .page make it their --bg */
20
+ --panel: light-dark(#ffffff, #211f2c);
21
+ --panel-2: light-dark(#efeff3, #2b2938); /* fills and hovers: a light ink wash */
22
+ --text: light-dark(#1d1b2e, #f1ede6);
23
+ --muted: light-dark(#55546a, #aaa6b6);
24
+ --faint: light-dark(#696879, #9692a5);
25
+ --border: light-dark(#dfdfe6, #33303f);
26
+ --border-strong: light-dark(#c8c7d2, #474357);
27
+ --accent: light-dark(#c8361a, #ff6a4d);
28
+ --coral: light-dark(#c8361a, #ff6a4d);
29
+ --on-accent: light-dark(#ffffff, #1d1b2e); /* text on a vermilion badge */
30
+ --mark-ink: light-dark(#1d1b2e, #f7f3ec);
31
+ --mark-accent: #ff4f2b;
32
+ --mark-ground: light-dark(#f7f3ec, #1d1b2e);
33
+ /* Status colours stay apart from the accent by hue: edits in ink's blue, errors crimson. */
34
+ --violet: light-dark(#6e4592, #b98fdb);
35
+ --edit: light-dark(#2f5d8a, #8fb6e3);
36
+ --ok: light-dark(#2f6b40, #72c189);
37
+ --http: light-dark(#24706b, #6cc4bc); /* agents over HTTP: here, but no live connection */
38
+ --away: light-dark(#8a5a08, #dcaa50); /* agents that work in turns, between turns */
39
+ --warn: light-dark(#8a5a08, #dcaa50);
40
+ --bad: light-dark(#a8263e, #f2738f);
41
+ --mine: light-dark(#eeeef3, #33282a);
42
+ /* Light: a soft two-layer lift. Dark: the patch shadow, a 3px offset (each part is clear in the other theme). */
43
+ --shadow: 0 1px 2px light-dark(rgba(29, 27, 46, .08), transparent), 0 2px 6px light-dark(rgba(29, 27, 46, .05), transparent), 3px 3px 0 light-dark(transparent, #33303f);
44
+ /* Light only: a hairline and a soft lift for things on the canvas that have no border (the Loom's lane heads). */
45
+ --lift: 0 0 0 1px light-dark(rgba(29, 27, 46, .07), transparent), 0 1px 3px light-dark(rgba(29, 27, 46, .08), transparent);
46
+ --shadow-pop: 0 1px 0 var(--border-strong), 0 14px 36px light-dark(rgba(29, 27, 46, .14), rgba(0, 0, 0, .45));
47
+ /* Light mode's cards: a hairline ring and a soft drop instead of a border (the light-only block at the end). */
48
+ --card: 0 0 0 1px rgba(29, 27, 46, .07), 0 1px 2px rgba(29, 27, 46, .10);
49
+ --card-hover: 0 0 0 1px rgba(29, 27, 46, .09), 0 3px 8px rgba(29, 27, 46, .12);
50
+ /* 1 in light mode, 0 in dark: rules that only light mode gets sit in @container style(--light: 1). */
51
+ --light: 0;
52
+ --radius: 6px;
53
+ --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
54
+ --serif: var(--sans); /* one family throughout */
55
+ --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
56
+ color-scheme: dark; /* dark unless chosen */
57
+ }
58
+ :root[data-theme="light"] { color-scheme: light; --light: 1; }
59
+ :root[data-theme="system"] { color-scheme: light dark; --light: 1; }
60
+ @media (prefers-color-scheme: dark) { :root[data-theme="system"] { --light: 0; } }
61
+
62
+ * { box-sizing: border-box; }
63
+ [hidden] { display: none !important; }
64
+ html, body { margin: 0; height: 100%; }
65
+ body {
66
+ background: var(--bg);
67
+ color: var(--text);
68
+ font: 13.5px/1.6 var(--sans);
69
+ -webkit-font-smoothing: antialiased;
70
+ }
71
+ button, input, textarea, select { font: inherit; color: inherit; }
72
+ a { color: var(--accent); }
73
+ code, .mono { font-family: var(--mono); font-size: 12.5px; }
74
+ h1, h2, h3, .serif { font-family: var(--sans); font-weight: 600; letter-spacing: -0.015em; }
75
+ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
76
+
77
+ /* ---------- primitives ---------- */
78
+ .btn {
79
+ display: inline-flex; align-items: center; justify-content: center; gap: 8px;
80
+ height: 38px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--border-strong);
81
+ background: var(--panel); cursor: pointer; font-weight: 500; white-space: nowrap;
82
+ transition: background .15s, border-color .15s, transform .05s;
83
+ }
84
+ .btn:hover { background: var(--panel-2); }
85
+ .btn:active { transform: translateY(1px); }
86
+ .btn:disabled { opacity: .55; cursor: default; }
87
+ .btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }
88
+ .btn.primary:hover { background: color-mix(in srgb, var(--text) 84%, var(--bg)); }
89
+ .btn.ghost { background: transparent; border-color: transparent; }
90
+ .btn.ghost:hover { background: var(--panel-2); }
91
+ .btn.danger { color: var(--bad); }
92
+ .btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 4px; }
93
+ .btn.icon { width: 38px; padding: 0; }
94
+ .btn.sm.icon { width: 30px; }
95
+ .btn svg { width: 16px; height: 16px; flex: none; }
96
+
97
+ .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
98
+ .field > label, .label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
99
+ .input, textarea.input, select.input {
100
+ width: 100%; height: 40px; padding: 0 12px; border-radius: 4px;
101
+ border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--panel-2) 55%, var(--panel)); outline: none;
102
+ transition: border-color .15s, box-shadow .15s;
103
+ }
104
+ textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
105
+ .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); background: var(--panel); }
106
+ .row { display: flex; gap: 8px; align-items: center; }
107
+ .row > .grow { flex: 1; min-width: 0; }
108
+ .hint { font-size: 12.5px; color: var(--muted); }
109
+ .hint.warn { color: var(--warn); }
110
+ .hint.ok { color: var(--ok); }
111
+ .error { color: var(--bad); font-size: 13px; margin: 8px 0 0; }
112
+ .error:empty { display: none; }
113
+
114
+ .card {
115
+ background: var(--panel); border: 1px solid var(--border);
116
+ border-radius: var(--radius); box-shadow: var(--shadow);
117
+ }
118
+ .pill {
119
+ display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
120
+ border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
121
+ }
122
+ .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
123
+ .pill.ok { color: var(--ok); } .pill.ok .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
124
+ .pill.warn { color: var(--warn); } .pill.warn .dot { background: var(--warn); }
125
+ .tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 3px; background: var(--panel-2); color: var(--muted); }
126
+
127
+ .segmented { display: flex; padding: 3px; gap: 3px; background: var(--panel-2); border-radius: 6px; border: 1px solid var(--border); }
128
+ .segmented button { flex: 1; height: 32px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; font-weight: 500; color: var(--muted); }
129
+ .segmented button:hover { color: var(--text); }
130
+ .segmented button.on { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong); }
131
+
132
+ /* ---------- home ---------- */
133
+ .home { max-width: 1040px; margin: 0 auto; padding: 56px 24px 64px; }
134
+ .hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
135
+ .hero img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 4px 4px 0 var(--border-strong); }
136
+ .wordmark { font-family: var(--sans); font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; margin: 18px 0 10px; }
137
+ .wordmark i, .brand i { color: var(--coral); font-style: italic; font-weight: 500; }
138
+ .tagline { color: var(--muted); font-size: 17px; line-height: 1.35; margin: 0; max-width: 520px; }
139
+ .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
140
+ .choice { padding: 26px; }
141
+ .choice h2 { margin: 0 0 4px; font-size: 24px; }
142
+ .choice > p { margin: 0 0 20px; color: var(--muted); }
143
+ .choice .btn.full { width: 100%; height: 44px; margin-top: 6px; }
144
+ .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
145
+ .check input { margin-top: 3px; accent-color: var(--accent); }
146
+
147
+ .section-title { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 40px 0 12px; }
148
+ .list { display: grid; gap: 10px; }
149
+ .list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
150
+ .list-item .meta { flex: 1; min-width: 0; }
151
+ .list-item .name { font-size: 14.5px; font-weight: 600; }
152
+ .list-item .sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
153
+ .folder-ico { width: 38px; height: 38px; border-radius: 4px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: none; }
154
+ .folder-ico svg { width: 18px; height: 18px; }
155
+ .footer-note { margin-top: 36px; text-align: center; color: var(--faint); font-size: 12.5px; }
156
+
157
+ /* ---------- session ---------- */
158
+ .shell { display: flex; flex-direction: column; height: calc(100vh - var(--update-bar, 0px)); }
159
+ .topbar {
160
+ display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 16px;
161
+ border-bottom: 1px solid var(--border); background: var(--panel); flex: none;
162
+ }
163
+ .brand { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--text); cursor: pointer; background: none; border: 0; padding: 0; }
164
+ .brand img { width: 26px; height: 26px; border-radius: 7px; }
165
+ .tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
166
+ .tab { height: 34px; padding: 0 12px; border-radius: 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
167
+ .tab:hover { background: var(--panel-2); }
168
+ .tab.on { background: var(--panel-2); color: var(--text); }
169
+ .tab .badge { background: var(--coral); color: var(--on-accent); font-size: 11px; border-radius: 999px; padding: 0 6px; line-height: 17px; }
170
+
171
+ .subbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); flex: none; flex-wrap: wrap; }
172
+ .subbar .title { font-family: var(--serif); font-size: 20px; font-weight: 600; }
173
+ .subbar .path { color: var(--muted); font-size: 12.5px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
174
+ .subbar .spacer { flex: 1; }
175
+
176
+ .grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr) 310px; }
177
+ .col { min-height: 0; overflow-y: auto; padding: 18px; }
178
+ .col.left { border-right: 1px solid var(--border); }
179
+ .col.right { border-left: 1px solid var(--border); }
180
+ .col.center { padding: 0; display: flex; flex-direction: column; }
181
+ .panel-title { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
182
+ .panel { margin-bottom: 26px; }
183
+
184
+ .person { display: flex; gap: 12px; padding: 12px; border-radius: 6px; background: var(--panel); border: 1px solid var(--border); margin-bottom: 8px; }
185
+ .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; position: relative; text-transform: uppercase; }
186
+ .avatar.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid var(--panel); }
187
+ .avatar.online.http::after { background: var(--http); }
188
+ .avatar.online.away::after { background: var(--panel); border-color: var(--away); border-width: 3px; }
189
+ .person .who { font-weight: 650; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
190
+ .person .focus { font-size: 13px; color: var(--text); margin-top: 2px; }
191
+ .person .focus.empty { color: var(--faint); font-style: italic; }
192
+ .person .files { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
193
+ .person .files code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; font-size: 11.5px; }
194
+ .empty-note { color: var(--faint); font-size: 13px; padding: 10px 2px; }
195
+
196
+ .claim { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; background: var(--panel-2); margin-bottom: 6px; font-size: 13px; }
197
+ .claim .meta { flex: 1; min-width: 0; }
198
+ .claim code { font-weight: 600; }
199
+ .claim .sub { color: var(--muted); font-size: 12px; }
200
+
201
+ /* chat */
202
+ .chat-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
203
+ .chat-head h3 { margin: 0; font-size: 15px; }
204
+ .messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
205
+ .msg { display: flex; gap: 10px; max-width: 78%; }
206
+ .msg .avatar { width: 20px; height: 20px; font-size: 9px; }
207
+ .msg.mine { align-self: flex-end; flex-direction: row-reverse; }
208
+ .bubble { background: var(--panel); border: 1px solid var(--border); padding: 9px 13px; border-radius: 10px; border-top-left-radius: 2px; word-wrap: break-word; overflow-wrap: anywhere; }
209
+ .msg.mine .bubble { background: var(--mine); border-color: transparent; border-top-left-radius: 10px; border-top-right-radius: 2px; }
210
+ .msg .head { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
211
+ .msg.mine .head { justify-content: flex-end; }
212
+ .msg .head b { color: var(--text); font-weight: 650; }
213
+ .dm { font-size: 11px; font-weight: 700; color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); padding: 0 6px; border-radius: 5px; }
214
+ .text { white-space: pre-wrap; }
215
+ .text .md-h { display: block; font-weight: 700; letter-spacing: -0.01em; margin: 2px 0; }
216
+ .text .md-hr { display: block; border: 0; border-top: 1px solid var(--border-strong); margin: 8px 0; height: 0; }
217
+ .text strong { font-weight: 700; }
218
+ .text em { font-style: italic; }
219
+ .mention { color: var(--accent); font-weight: 600; }
220
+ .mention.me { background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 4px; padding: 0 3px; }
221
+ .file-card { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: 4px; background: var(--panel-2); text-decoration: none; color: var(--text); border: 1px solid var(--border); }
222
+ .msg.mine .file-card { background: var(--panel); }
223
+ .file-card:hover { border-color: var(--accent); }
224
+ .file-card .fi { width: 34px; height: 34px; border-radius: 4px; display: grid; place-items: center; background: light-dark(var(--text), var(--coral)); color: var(--panel); flex: none; } /* an ink tile, like the app icon */
225
+ .file-card .fi svg { width: 16px; height: 16px; }
226
+ .file-card .fn { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
227
+ .file-card .fs { font-size: 12px; color: var(--muted); }
228
+ .day-empty { margin: auto; text-align: center; color: var(--faint); max-width: 320px; }
229
+ .day-empty img { width: 48px; opacity: .9; margin-bottom: 8px; }
230
+
231
+ .typing { display: flex; align-items: center; gap: 8px; padding: 6px 20px 2px; font-size: 12.5px; color: var(--muted); min-height: 22px; }
232
+ .typing[hidden] { display: none !important; }
233
+ .typing-dots { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
234
+ .typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .45; animation: typing-bounce 1.2s ease-in-out infinite; }
235
+ .typing-dots i:nth-child(2) { animation-delay: .15s; }
236
+ .typing-dots i:nth-child(3) { animation-delay: .3s; }
237
+ @keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-3px); opacity: 1; } }
238
+ .typing-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
239
+
240
+ .composer { border-top: 1px solid var(--border); padding: 12px 16px 16px; background: var(--bg); position: relative; }
241
+ .mention-menu { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 1px); z-index: 6; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: var(--shadow-pop); padding: 4px; max-height: 240px; overflow-y: auto; }
242
+ .mention-menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 8px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; cursor: pointer; }
243
+ .mention-menu button .avatar { width: 22px; height: 22px; font-size: 10px; }
244
+ .mention-menu button.on, .mention-menu button:hover { background: var(--panel-2); }
245
+ .relay-q { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); color: var(--muted); }
246
+ .relay-q svg { width: 13px; height: 13px; }
247
+ .msg .relay-q.avatar { width: 20px; height: 20px; color: var(--muted); }
248
+ .msg .relay-q.avatar svg { width: 12px; height: 12px; }
249
+ .composer .to { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
250
+ .composer .to select { height: 28px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--border); background: var(--panel); }
251
+ .composer .box { display: flex; align-items: flex-end; gap: 8px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px; }
252
+ .composer .box:focus-within { border-color: var(--accent); }
253
+ .composer textarea { flex: 1; border: 0; outline: none; background: transparent; resize: none; max-height: 160px; min-height: 38px; padding: 8px 6px; line-height: 1.45; }
254
+ .attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
255
+ .attachments .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; }
256
+ .attachments .tag button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 3px; }
257
+ .drop { position: absolute; inset: 10px; border: 2px dashed var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, var(--bg)); display: none; place-items: center; font-weight: 650; color: var(--accent); z-index: 5; pointer-events: none; }
258
+ .center.dragging .drop { display: grid; }
259
+
260
+ .feed-item { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
261
+ .feed-item:last-child { border-bottom: 0; }
262
+ .feed-item .when { color: var(--faint); font-size: 11.5px; min-width: 44px; padding-top: 1px; }
263
+ .feed-item code { font-size: 12px; }
264
+ .feed-item .detail { color: var(--faint); font-size: 12px; }
265
+ .log-line { font-size: 12.5px; color: var(--muted); padding: 4px 0; }
266
+
267
+ /* modal */
268
+ .modal-back { position: fixed; inset: 0; background: rgba(29, 27, 46, .4); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 20; padding: 16px; }
269
+ .modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; }
270
+ .modal h3 { margin: 0 0 4px; font-size: 19px; }
271
+ .modal .lead { color: var(--muted); margin: 0 0 18px; }
272
+ .modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
273
+ .codebox { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
274
+ .codebox code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--border); overflow-wrap: anywhere; font-size: 12px; }
275
+ .codebox code.paste { white-space: pre-wrap; max-height: 180px; overflow: auto; }
276
+ .inv-agent-label { margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--border); }
277
+ .inv-agent .hint { margin: 0 0 10px; }
278
+ .inv-agent .error:empty { display: none; }
279
+ .agent-row { grid-template-columns: 24px minmax(0, 1fr); align-items: center; }
280
+ .agent-row svg { width: 16px; height: 16px; }
281
+ /* Your agents in Settings › Agents with workspaces on: one card each, who it is on top, then
282
+ Works in and Joins as segmented choices. The line under each choice keeps one height, so
283
+ switching never moves the card. */
284
+ /* The Agents page: title and Invite an agent on one line, the invite text, then the cards. */
285
+ .ag-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
286
+ .ag-page-head h1 { margin: 0; }
287
+ .ag-page-head .search-box { margin-left: auto; min-width: 0; }
288
+ .ag-page-head .search-box .input { height: 36px; width: 240px; max-width: 100%; }
289
+ .ag-page-head .btn.primary { flex: none; }
290
+ .ag-lead { margin: 0 0 16px; }
291
+ .ag-mini.open { cursor: pointer; }
292
+ .ag-mini.open:hover { border-color: var(--border-strong); }
293
+ .settings-modal.agent-modal { width: min(600px, 100%); height: auto; max-height: 86vh; }
294
+ .agent-modal .ag-card { border: 0; padding: 0; background: none; }
295
+ #agents-sec > #agents-invite { margin-bottom: 16px; }
296
+ #agents-sec > #agents-invite .error:empty { display: none; }
297
+ .ag-foot { margin-top: 16px; }
298
+ @media (max-width: 560px) { .ag-page-head { flex-direction: column; } }
299
+ .ag-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
300
+ /* Settings: agents as small cards (a dot for whether it can join now, its name, what it is, a ⋮ menu), nine a page. */
301
+ .ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; min-width: 0; }
302
+ .ag-mini { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 8px 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
303
+ .ag-mini .dot { flex: none; width: 9px; height: 9px; }
304
+ .ag-mini .dot.on { background: var(--ok); }
305
+ .ag-mini .ag-t { flex: 1; min-width: 0; line-height: 1.35; }
306
+ .ag-mini .ag-t b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
307
+ .ag-mini .ag-t .hint { display: block; margin: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
308
+ .ag-mini .ag-more { flex: none; color: var(--muted); }
309
+ .ag-mini .ag-av { position: relative; flex: none; display: grid; }
310
+ .ag-mini .ag-av .avatar { width: 32px; height: 32px; font-size: 13px; }
311
+ .ag-mini .kind-badge { position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--violet); color: #fff; border: 2px solid var(--panel); }
312
+ .ag-mini .kind-badge svg { width: 9px; height: 9px; }
313
+ .ag-mini.member .ag-t b { font-size: 13.5px; }
314
+ .ag-mini.out { opacity: .6; }
315
+ /* The Team dialog: a wide grid of member cards, the search and Add in its head. */
316
+ .settings-modal.team-modal { width: min(900px, 100%); height: auto; max-height: 86vh; }
317
+ .team-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-right: 64px; }
318
+ .team-head h2 { margin: 0; flex: none; }
319
+ .team-head .pill.count { height: 22px; padding: 0 9px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
320
+ .team-head .search-box { margin-left: auto; min-width: 0; }
321
+ .team-head .search-box .input { height: 36px; width: 240px; max-width: 100%; }
322
+ .ws-head .acts .count { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 0 7px; line-height: 18px; }
323
+ .pop-item.on { font-weight: 600; }
324
+ .pop-check { display: inline-grid; place-items: center; width: 14px; height: 14px; flex: none; }
325
+ .pop-check svg { width: 12px; height: 12px; }
326
+ .ag-pages { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
327
+ .ag-pages span { margin-right: 6px; }
328
+ .popover.agent-menu { position: fixed; top: auto; right: auto; width: 250px; }
329
+ .sec-intro .pill.count { height: 22px; padding: 0 9px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
330
+ .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
331
+ .sec-intro .search-box { margin-left: auto; min-width: 0; }
332
+ .sec-intro .search-box .input { height: 36px; width: 240px; max-width: 100%; }
333
+ .sec-intro .search-box + .sec-head-btn { margin-left: 0; }
334
+ @media (max-width: 760px) {
335
+ .sec-intro .search-box { margin-left: 0; flex: 1 1 100%; }
336
+ .sec-intro .search-box .input { width: 100%; }
337
+ }
338
+ }
339
+ .ag-card { min-width: 0; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
340
+ .ag-head { display: flex; align-items: center; gap: 12px; }
341
+ .ag-head .avatar { flex: none; width: 36px; height: 36px; font-size: 14px; }
342
+ .ag-t { flex: 1; min-width: 0; line-height: 1.4; }
343
+ .ag-t b { font-weight: 600; }
344
+ .ag-t .hint { display: block; margin: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
345
+ .pill.ag-global { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--panel)); }
346
+ .pill.ag-global[hidden] { display: none; }
347
+ .pill.ag-global svg { width: 12px; height: 12px; }
348
+ .ag-set { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
349
+ .ag-g { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
350
+ .ag-l { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
351
+ .segmented.sm { display: flex; width: 100%; padding: 2px; gap: 2px; }
352
+ .segmented.sm button { flex: 1 1 auto; min-width: 0; height: 28px; padding: 0 8px; font: inherit; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
353
+ .segmented.sm button:disabled { cursor: default; }
354
+ .segmented.sm[aria-disabled="true"] { opacity: .5; }
355
+ .ag-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; }
356
+ .ag-why { font-size: 12px; line-height: 1.45; color: var(--muted); }
357
+ .ag-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; font: inherit; font-size: 12.5px; color: var(--muted); background: transparent; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; }
358
+ .ag-chip i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border-strong); }
359
+ .ag-chip:hover { color: var(--text); }
360
+ .ag-chip[aria-pressed="true"] { color: var(--text); background: var(--panel-2); border-color: var(--accent); }
361
+ /* The workspace Add dialog grows downward from a fixed top instead of re-centring. */
362
+ .modal-back.top { align-items: start; }
363
+ .modal-back.top .modal { margin-top: min(8vh, 64px); max-height: calc(100vh - 32px - min(8vh, 64px)); }
364
+ /* The invite dialog's people and agents: the same small cards, two across, six a page. */
365
+ .inv-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 10px; }
366
+ .inv-sub-row .inv-sub { margin: 0; }
367
+ .inv-sub-row .search-box .input { height: 30px; width: 160px; }
368
+ #wi-people .ag-grid.wi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
369
+ #wi-people .ag-mini { padding: 9px 8px 9px 10px; }
370
+ #wi-people .ag-mini .btn.sm, #wi-people .ag-mini .pill { flex: none; }
371
+ .wi-note { margin: 6px 0 0; }
372
+ .wi-new-agent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
373
+ .wi-new-agent .hint { margin: 0; }
374
+ .wi-new-agent > p, .wi-new-agent .codebox { width: 100%; margin-bottom: 0; }
375
+ /* Invite an agent (workspaces on): a small menu at the button with the three kinds, then
376
+ where it goes. Fixed to the window, so it never moves the page or a dialog under it. */
377
+ .popover.kind-menu { width: 340px; max-width: calc(100vw - 16px); padding: 6px; z-index: 45; max-height: min(420px, calc(100vh - 16px)); overflow-y: auto; animation: dd-in .12s ease-out; }
378
+ .kind-menu .km-item { align-items: flex-start; gap: 10px; padding: 8px; }
379
+ .kind-menu .km-item:disabled, .kind-menu .km-pick:disabled { cursor: progress; opacity: .6; }
380
+ .km-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--panel)); }
381
+ .km-ic svg { width: 15px; height: 15px; }
382
+ .km-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }
383
+ .km-t b { font-weight: 600; font-size: 13.5px; }
384
+ .km-t span { font-size: 12px; font-weight: 400; color: var(--muted); }
385
+ .kind-menu .km-docs { font-size: 12.5px; color: var(--muted); text-decoration: none; padding: 7px 8px; }
386
+ .kind-menu .km-docs:hover, .kind-menu .km-docs:focus-visible { color: var(--text); }
387
+ .kind-menu .km-docs svg { width: 12px; height: 12px; margin-left: auto; }
388
+ .km-head { display: flex; align-items: center; gap: 6px; padding: 0 2px 2px; }
389
+ .km-head b { font-weight: 600; font-size: 13.5px; }
390
+ .km-head .btn.icon { width: 28px; height: 28px; }
391
+ .kind-menu .pop-label { padding: 6px 8px 4px; }
392
+ .km-pick .km-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 0 1px var(--border-strong); }
393
+ .km-pick .hint { flex: none; margin: 0; }
394
+ .km-empty { margin: 0; padding: 6px 8px 8px; }
395
+ .kind-menu .km-error { margin: 6px 8px 2px; font-size: 12.5px; }
396
+ .kind-menu .km-error:empty { display: none; }
397
+ .km-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
398
+ .pill.km-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--panel)); }
399
+ .pill.km-pill svg { width: 11px; height: 11px; }
400
+ /* A session's People: the agents its workspace invites, two lines each, the action at the end. */
401
+ .pm-member.pm-inv .nm { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; white-space: normal; }
402
+ .pm-member.pm-inv .nm b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
403
+ .pm-member.pm-inv .nm small { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
404
+ .pm-inv .btn { flex: none; }
405
+ .pm-inv.out b { color: var(--muted); }
406
+ .dirlist { border: 1px solid var(--border); border-radius: 4px; max-height: 320px; overflow-y: auto; margin: 10px 0; }
407
+ .dirlist button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: pointer; text-align: left; }
408
+ .dirlist button:last-child { border-bottom: 0; }
409
+ .dirlist button:hover { background: var(--panel-2); }
410
+ .dirlist svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
411
+
412
+ #toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-12px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 4px; font-weight: 500; box-shadow: 3px 3px 0 var(--coral); transition: all .2s; pointer-events: none; z-index: 30; max-width: calc(100vw - 32px); }
413
+ #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
414
+
415
+ .mobile-tabs { display: none; }
416
+
417
+ @media (max-width: 1100px) {
418
+ .grid { grid-template-columns: 260px minmax(0, 1fr); }
419
+ .col.right { display: none; }
420
+ }
421
+ @media (max-width: 760px) {
422
+ .home { padding: 32px 16px 48px; }
423
+ .wordmark { font-size: 48px; }
424
+ .tagline { font-size: 18px; }
425
+ .choices { grid-template-columns: 1fr; }
426
+ .choice { padding: 20px; }
427
+ .topbar { padding: 0 12px; }
428
+ .subbar { padding: 10px 16px; }
429
+ .subbar .path { display: none; }
430
+ .grid { grid-template-columns: 1fr; }
431
+ .col.left, .col.right { display: none; border: 0; }
432
+ .grid[data-pane="people"] .col.left, .grid[data-pane="activity"] .col.right { display: block; }
433
+ .grid[data-pane="people"] .col.center, .grid[data-pane="activity"] .col.center { display: none; }
434
+ .mobile-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 6px 12px; }
435
+ .msg { max-width: 92%; }
436
+ }
437
+
438
+ /* ================================================================ session view */
439
+ .ws { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
440
+ .ws-top {
441
+ display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px;
442
+ border-bottom: 1px solid var(--border); background: var(--bg); flex: none; position: relative; z-index: 6;
443
+ }
444
+ .ws-top .tabs { flex: 0 1 auto; }
445
+ .ws-top .spacer { flex: 1; }
446
+ .narrow-only { display: none !important; }
447
+ .ws-top .badge { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); font-size: 0; }
448
+ .ws-top .btn { position: relative; }
449
+
450
+ /* people button + menu */
451
+ .people { position: relative; }
452
+ .people-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--panel); cursor: pointer; }
453
+ .people-btn:hover, .people-btn[aria-expanded="true"] { background: var(--panel-2); }
454
+ .people-btn .stack { display: flex; }
455
+ .people-btn .stack > span { margin-left: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); display: block; }
456
+ .people-btn .stack > span:first-child { margin-left: 0; }
457
+ .people-btn .avatar { width: 26px; height: 26px; font-size: 11px; }
458
+ .people-btn .count { font-weight: 700; font-size: 13px; }
459
+ .people-btn .conn { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
460
+ .people-btn .conn.ok { background: var(--ok); }
461
+ .popover { position: fixed; z-index: 40; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: var(--shadow-pop); }
462
+ .people-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: calc(100vw - 24px); padding: 10px; max-height: 70vh; overflow: auto; }
463
+ .pm-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 6px 8px; }
464
+ .pm-row { display: flex; align-items: center; gap: 6px; }
465
+ .pm-open { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 8px 6px; border: 0; background: none; border-radius: 4px; cursor: pointer; }
466
+ .pm-open:hover, .pm-open:focus-visible { background: var(--panel-2); }
467
+ .pm-open .avatar { width: 32px; height: 32px; font-size: 13px; }
468
+ .pm-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
469
+ .pm-name { font-weight: 650; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
470
+ .pm-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
471
+ .pm-sub code { font-size: 11.5px; background: var(--panel-2); padding: 0 5px; border-radius: 5px; }
472
+ .pm-focus { padding: 2px 6px 6px 48px; }
473
+ .pm-focus .input { height: 34px; }
474
+ .pm-share { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 6px 4px 48px; font-size: 12.5px; color: var(--muted); }
475
+ .pm-share > span { display: flex; align-items: center; gap: 6px; }
476
+ .dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
477
+ .pm-sep { height: 1px; background: var(--border); margin: 8px 4px; }
478
+ .tag.bot { display: inline-flex; align-items: center; gap: 3px; color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); }
479
+ .tag.bot svg { width: 12px; height: 12px; }
480
+ .ai-state { display: inline-flex; align-items: center; gap: 6px; }
481
+ .ai-state.working { color: var(--accent); font-weight: 600; }
482
+ .ai-state.paused { color: var(--warn); }
483
+ .ai-state.http { color: var(--http); }
484
+ .ai-state.away { color: var(--away); }
485
+ .ai-state.off { color: var(--faint); }
486
+ /* Something live (an AI working): the mark's vermilion corner piece, glowing. */
487
+ .pulse { width: 8px; height: 8px; border-radius: 0 0 2px 0; background: var(--mark-accent); clip-path: polygon(100% 0, 100% 100%, 0 100%); display: inline-block; animation: pulse 1.2s ease-in-out infinite; flex: none; }
488
+ @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
489
+
490
+ /* body grid: tree | main | chat */
491
+ .ws-body { --tree-w: 260px; --chat-w: var(--chat-open, 380px); flex: 1; min-height: 0; display: grid; grid-template-columns: var(--tree-w) minmax(0, 1fr) var(--chat-w); position: relative; transition: grid-template-columns .28s ease; }
492
+ .ws-body.tree-collapsed { --tree-w: 44px; }
493
+ .ws-body.chat-collapsed { --chat-w: 44px; }
494
+ .ws-body.resizing { transition: none; cursor: col-resize; user-select: none; }
495
+ .chat-resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 4; outline: none; touch-action: none; }
496
+ .chat-resize::after { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s ease; }
497
+ .chat-resize:hover::after, .chat-resize:focus-visible::after, .ws-body.resizing .chat-resize::after { background: var(--accent); }
498
+ .chat-collapse { margin-left: auto; }
499
+ .chat-rail { display: none; }
500
+ @media (min-width: 901px) {
501
+ .ws-body.chat-collapsed .ws-chat > :not(.chat-rail):not(.chat-resize) { display: none; }
502
+ .ws-body.chat-collapsed .chat-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; height: 100%; padding: 14px 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
503
+ .ws-body.chat-collapsed .chat-rail:hover, .ws-body.chat-collapsed .chat-rail:focus-visible { background: var(--panel-2); color: var(--text); outline: none; }
504
+ .chat-rail svg { width: 18px; height: 18px; }
505
+ .chat-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
506
+ }
507
+ .ws-tree, .ws-chat { min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
508
+ .ws-tree { border-right: 1px solid var(--border); }
509
+ .ws-chat { border-left: 1px solid var(--border); position: relative; }
510
+ .ws-chat.dragging .drop { display: grid; }
511
+ .ws-chat .messages { padding: 14px; }
512
+ .ws-chat .msg { max-width: 92%; }
513
+ .ws-chat .composer { padding: 10px 12px 12px; }
514
+ .ws-chat .chat-head { padding: 12px 14px; }
515
+ .pane-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 14px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
516
+ .pane-title { min-width: 0; }
517
+ .tree-collapse { width: 24px; height: 24px; border: 0; padding: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
518
+ .tree-collapse:hover, .tree-collapse:focus-visible { background: var(--panel-2); color: var(--text); outline: none; }
519
+ .tree-collapse svg { width: 14px; height: 14px; }
520
+ .tree-scroll { flex: 1; overflow: auto; padding: 0 6px 16px; outline: none; transition: opacity .22s ease; }
521
+ .ws-tree { overflow: hidden; }
522
+ @media (min-width: 901px) {
523
+ .ws-body.tree-collapsed .pane-head { justify-content: center; padding-left: 4px; padding-right: 4px; }
524
+ .ws-body.tree-collapsed .pane-title,
525
+ .ws-body.tree-collapsed .pane-head .hint { display: none; }
526
+ .ws-body.tree-collapsed .tree-scroll { opacity: 0; pointer-events: none; overflow: hidden; }
527
+ }
528
+ .scrim { display: none; }
529
+
530
+ /* tree rows */
531
+ /* content-visibility: rows out of view skip layout, so opening a folder or sliding the pane in a big tree doesn't lay out every row. */
532
+ .t-row { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 calc(8px + var(--depth) * 14px); border-radius: 3px; cursor: pointer; font-size: 13px; color: var(--text); user-select: none; outline: none; content-visibility: auto; contain-intrinsic-size: auto 28px; }
533
+ .t-row:hover, .t-row:focus-visible { background: var(--panel-2); }
534
+ /* The open file: an ink wash with the vermilion edge (a vermilion wash reads as an error). */
535
+ .t-row.on { background: var(--panel-2); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
536
+ /* A changed file's card (tree.js): its +/- in this session, who and when. Beside the row, never in the way of the pointer. */
537
+ .tcard {
538
+ position: fixed; z-index: 45; width: max-content; min-width: 220px; max-width: 320px; padding: 10px 12px 9px;
539
+ background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-pop);
540
+ font-size: 12.5px; line-height: 1.4; color: var(--text); pointer-events: none;
541
+ }
542
+ .tcard.in { animation: tcard-in .14s cubic-bezier(.2, .8, .2, 1); }
543
+ @keyframes tcard-in { from { opacity: 0; transform: translateX(-4px); } }
544
+ .tcard-path { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
545
+ .tcard-total { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font-family: var(--mono); font-size: 15px; font-weight: 700; }
546
+ .tcard-total .add, .tcard-people .add { color: var(--ok); }
547
+ .tcard-total .del, .tcard-people .del { color: var(--bad); }
548
+ .tcard-in { font-family: var(--sans); font-size: 11.5px; font-weight: 500; color: var(--muted); }
549
+ .tcard-people { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
550
+ .tcard-people li { display: flex; align-items: center; gap: 7px; min-width: 0; }
551
+ .tcard-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
552
+ .tcard-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
553
+ .tcard-who i { font-style: normal; font-weight: 500; color: var(--muted); }
554
+ .tcard-delta { flex: none; font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
555
+ .tcard-ago { flex: none; min-width: 52px; text-align: right; font-size: 11px; color: var(--faint); }
556
+ .tcard-more { color: var(--muted); font-size: 11.5px; padding-left: 15px; }
557
+ .tcard-foot { margin-top: 8px; font-size: 11px; color: var(--faint); }
558
+ .tcard-foot b { font-weight: 600; color: var(--muted); }
559
+ @media (prefers-reduced-motion: reduce) { .tcard.in { animation: none; } }
560
+ .t-row svg { width: 14px; height: 14px; flex: none; }
561
+ .t-caret { display: grid; place-items: center; width: 14px; color: var(--faint); transition: transform .12s; }
562
+ .t-caret.open { transform: rotate(90deg); }
563
+ .t-ico { color: var(--faint); display: grid; place-items: center; width: 14px; }
564
+ .t-dir .t-name { font-weight: 600; }
565
+ .t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: min(4.5em, 100%); flex: 0 1 auto; }
566
+ .t-badge { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 0 6px; height: 18px; border-radius: 999px; white-space: nowrap; }
567
+ .t-badge svg { width: 10px; height: 10px; }
568
+ .t-badge.edit { background: color-mix(in srgb, var(--edit) 15%, transparent); color: var(--edit); }
569
+ /* On a narrow row the "edited" badge gives way first: the file name and a claim stay whole. */
570
+ .t-badge.edit, .t-badge.mine { flex: 0 1 auto; min-width: 0; display: block; line-height: 18px; overflow: hidden; text-overflow: ellipsis; }
571
+ .t-badge.mine { background: var(--panel-2); color: var(--muted); }
572
+ /* GitHub's version, not edited in the session since (tree.js): GitHub's commit in the "who edited" place. */
573
+ .t-badge.gh { flex: 0 1 auto; min-width: 0; overflow: hidden; background: var(--panel-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
574
+ .t-gh { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
575
+ button.t-badge { border: 0; font-family: inherit; cursor: pointer; }
576
+ button.t-badge:hover, button.t-badge:focus-visible { box-shadow: inset 0 0 0 1px currentColor; }
577
+ /* margin: 0 undoes the claim card's margin-bottom (.claim), which lifted the pill off the row's middle. */
578
+ .t-badge.claim { margin: 0; background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
579
+ .t-badge.claim.inside { background: transparent; border: 1px dashed color-mix(in srgb, var(--violet) 45%, transparent); }
580
+ .t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--edit); flex: none; }
581
+ .t-more { margin-left: auto; flex: none; width: 24px; height: 22px; border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; display: grid; place-items: center; opacity: 0; }
582
+ .t-row:hover .t-more, .t-row:focus-within .t-more, .t-more:focus-visible { opacity: 1; }
583
+ .t-more:hover { background: var(--border); }
584
+ @media (hover: none) { .t-more { opacity: .7; } }
585
+ .tree-menu { width: 260px; padding: 8px; }
586
+ .pop-title { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 4px 6px 8px; overflow-wrap: anywhere; }
587
+ .pop-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 4px; cursor: pointer; text-align: left; font-weight: 500; }
588
+ .pop-item:hover, .pop-item:focus-visible { background: var(--panel-2); outline: none; }
589
+ .pop-item svg, .pop-note svg { width: 14px; height: 14px; }
590
+ .pop-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px; font-size: 13px; color: var(--muted); }
591
+ .pop-note svg { flex: none; margin-top: 2px; }
592
+ .pop-queue { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
593
+ .pop-req { font-size: 13px; overflow-wrap: anywhere; }
594
+ .pop-req .hint { margin-top: 2px; }
595
+ .pop-form textarea.input { height: auto; }
596
+ .pop-form { display: flex; flex-direction: column; gap: 8px; padding: 4px; }
597
+ .pop-form .input { height: 34px; }
598
+ .pop-form .btn { align-self: flex-end; }
599
+
600
+ /* main area */
601
+ /* The work sits on the canvas; inside it the canvas is the ground, so what paints var(--bg) (the Loom's
602
+ sticky heads, gaps and knots) follows. */
603
+ .ws-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; --bg: var(--canvas); background: var(--bg); }
604
+ .ws-mainbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); min-height: 52px; }
605
+ .segmented.mode { flex: none; }
606
+ .segmented.mode button { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; }
607
+ .segmented.mode svg { width: 14px; height: 14px; }
608
+ .ws-tabs { display: flex; gap: 4px; overflow-x: auto; min-width: 0; flex: 1; scrollbar-width: thin; }
609
+ .ws-tab { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 4px 0 8px; border-radius: 4px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; border: 1px solid transparent; outline: none; }
610
+ .ws-tab:hover, .ws-tab:focus-visible { background: var(--panel-2); }
611
+ .ws-tab.on { background: var(--panel); color: var(--text); border-color: var(--border-strong); box-shadow: 2px 2px 0 var(--border); }
612
+ .ws-tab .avatar { width: 22px; height: 22px; font-size: 10px; }
613
+ .ws-tab .avatar.online::after { width: 8px; height: 8px; border-width: 1.5px; }
614
+ .ws-tab .ico { color: var(--faint); display: grid; }
615
+ .ws-tab .ico svg { width: 14px; height: 14px; }
616
+ .ws-tab .nm { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
617
+ .ws-tab .x { border: 0; background: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--faint); cursor: pointer; }
618
+ .ws-tab .x:hover { background: var(--border); color: var(--text); }
619
+ .ws-tab .x svg { width: 12px; height: 12px; }
620
+ .ws-tab .changed { width: 7px; height: 7px; border-radius: 50%; background: var(--edit); }
621
+ .ws-content { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
622
+ .main-empty { margin: auto; text-align: center; max-width: 440px; padding: 32px 20px; }
623
+ .main-empty h3 { margin: 14px 0 6px; font-size: 21px; font-weight: 600; }
624
+ .main-empty .ill { width: 52px; height: 52px; margin: 0 auto; border-radius: 6px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--border-strong); box-shadow: var(--shadow); color: var(--coral); }
625
+ .main-empty .ill svg { width: 24px; height: 24px; }
626
+ .main-empty .row { margin-top: 16px; gap: 8px; }
627
+ .main-empty .btn .avatar { width: 22px; height: 22px; font-size: 10px; }
628
+
629
+ /* AI feed */
630
+ .feed-convs { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); overflow-x: auto; flex: none; scrollbar-width: thin; }
631
+ .conv-chip { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; max-width: 280px; }
632
+ .conv-chip:hover { background: var(--panel-2); }
633
+ .conv-chip.on { background: var(--panel-2); border-color: var(--accent); color: var(--text); }
634
+ .conv-chip .tool { display: inline-flex; align-items: center; color: var(--accent); line-height: 0; }
635
+ .conv-chip .tool .tool-logo svg,
636
+ .conv-chip .tool .tool-logo img,
637
+ .conv-chip .tool-logo svg,
638
+ .conv-chip .tool-logo img { width: 13px; height: 13px; }
639
+ .tool-logo { display: inline-flex; align-items: center; line-height: 0; color: var(--accent); }
640
+ .tool-logo svg,
641
+ .tool-logo img.tool-mark {
642
+ width: 14px; height: 14px; flex: none;
643
+ object-fit: contain; vertical-align: middle; border-radius: 2px;
644
+ }
645
+ .conv-chip .nm { overflow: hidden; text-overflow: ellipsis; }
646
+ .feed-scroll { flex: 1; overflow-y: auto; }
647
+ .feed { max-width: 820px; margin: 0 auto; padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
648
+ .f-prompt { display: flex; gap: 10px; }
649
+ .f-prompt .avatar { width: 30px; height: 30px; font-size: 12px; }
650
+ .f-body { min-width: 0; flex: 1; }
651
+ .f-prompt .head, .f-reply .head { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 3px; }
652
+ .f-prompt .head b { color: var(--text); }
653
+ .f-prompt .bubble { display: inline-block; max-width: 100%; background: var(--mine); border-color: transparent; }
654
+ .f-reply { padding-left: 40px; }
655
+ .ai-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--accent); }
656
+ .ai-badge svg, .ai-badge .tool-logo svg, .ai-badge .tool-logo img { width: 14px; height: 14px; }
657
+ .md { line-height: 1.6; overflow-wrap: anywhere; }
658
+ .md p { margin: 0 0 8px; }
659
+ .md p:last-child { margin-bottom: 0; }
660
+ .md .md-h { font-weight: 700; }
661
+ .md .md-hr { border: 0; border-top: 1px solid var(--border-strong); margin: 10px 0; }
662
+ .md ul, .md ol { margin: 4px 0 8px; padding-left: 22px; }
663
+ .md code { font-family: var(--mono); font-size: 12.5px; background: var(--panel-2); padding: 1px 5px; border-radius: 3px; }
664
+ .md-code { background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; overflow-x: auto; margin: 6px 0 10px; }
665
+ .md-code code { background: none; padding: 0; font-size: 12.5px; }
666
+ .f-actions { padding-left: 40px; display: flex; flex-direction: column; gap: 2px; }
667
+ .f-action { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; }
668
+ .f-action .chev { color: var(--faint); }
669
+ .feed-divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12.5px; }
670
+ .feed-divider::before, .feed-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
671
+ .feed-note { text-align: center; color: var(--warn); font-size: 13px; }
672
+ .feed-empty { margin: auto; padding: 60px 24px; text-align: center; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
673
+ .feed-empty .t { font-size: 17px; font-weight: 600; }
674
+ .f-working { padding-left: 40px; display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: 13px; }
675
+ .dots { display: inline-flex; gap: 4px; }
676
+ .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s ease-in-out infinite; }
677
+ .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
678
+ .new-activity { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow); }
679
+ .new-activity svg { width: 14px; height: 14px; }
680
+
681
+ /* file view */
682
+ .fv { display: flex; flex-direction: column; flex: 1; min-height: 0; }
683
+ .fv-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; background: var(--panel); }
684
+ .fv-banner .spacer { flex: 1; }
685
+ .fv-path { font-weight: 600; }
686
+ .fv-edited { color: var(--muted); }
687
+ .fv-claim { display: inline-flex; align-items: center; gap: 5px; color: var(--violet); font-weight: 600; }
688
+ .fv-claim svg, .fv-banner .btn svg { width: 13px; height: 13px; }
689
+ .fv-scroll { flex: 1; overflow: auto; background: var(--panel); }
690
+ .fv-code { border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; min-width: 100%; }
691
+ .fv-code td { padding: 0 12px; vertical-align: top; }
692
+ .fv-code .ln { color: var(--faint); text-align: right; user-select: none; width: 1%; white-space: nowrap; border-right: 1px solid var(--border); position: sticky; left: 0; background: var(--panel); }
693
+ .fv-code .lt { white-space: pre; } /* not .lc: loom.css styles .lc as a Loom card */
694
+ .fv-code tr.chg td { animation: chg 4s ease-out forwards; }
695
+ @keyframes chg { 0%, 60% { background: color-mix(in srgb, var(--edit) 20%, transparent); } 100% { background: transparent; } }
696
+ .fv-tabs { flex: none; align-self: flex-start; margin: 8px 16px; }
697
+ .fv-tabs button { flex: none; height: 26px; padding: 0 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
698
+ .fv-tabs .n { font-size: 11px; font-weight: 700; line-height: 16px; min-width: 16px; padding: 0 5px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
699
+ .fv-history { max-width: 1000px; padding: 0 16px 24px; }
700
+ .fv-note { padding: 40px 24px; text-align: center; color: var(--muted); display: flex; gap: 8px; justify-content: center; align-items: center; }
701
+ .fv-note svg { width: 16px; height: 16px; }
702
+
703
+ @media (max-width: 1180px) {
704
+ .ws-body { --tree-w: 230px; --chat-w: var(--chat-open, 320px); }
705
+ }
706
+ @media (max-width: 900px) {
707
+ .narrow-only { display: inline-flex !important; }
708
+ .wide-only { display: none !important; }
709
+ .ws-top { gap: 6px; padding: 0 10px; }
710
+ .ws-top .brand { font-size: 0; gap: 0; }
711
+ .ws-top .brand .qm-word { height: 30px; }
712
+ .ws-top .tabs { display: none; }
713
+ .ws-body, .ws-body.tree-collapsed { grid-template-columns: minmax(0, 1fr); transition: none; }
714
+ .tree-collapse, .chat-resize { display: none; }
715
+ .ws-tree, .ws-chat { position: absolute; top: 0; bottom: 0; z-index: 5; width: min(340px, 88vw); display: none; box-shadow: var(--shadow-pop); }
716
+ .ws-tree { left: 0; }
717
+ .ws-chat { right: 0; }
718
+ .ws-body[data-drawer="tree"] .ws-tree, .ws-body[data-drawer="chat"] .ws-chat { display: flex; }
719
+ .ws-body[data-drawer="tree"] .scrim, .ws-body[data-drawer="chat"] .scrim { display: block; position: absolute; inset: 0; z-index: 4; background: rgba(29, 27, 46, .35); }
720
+ .ws-mainbar { flex-wrap: wrap; }
721
+ .feed { padding: 16px 14px 32px; }
722
+ .f-reply, .f-actions, .f-working { padding-left: 0; }
723
+ .people-menu { position: fixed; top: 60px; right: 8px; left: 8px; width: auto; }
724
+ }
725
+
726
+ /* simplified workspace */
727
+ .overflow { position: relative; }
728
+ .more-menu { position: absolute; top: calc(100% + 6px); right: 0; width: 220px; padding: 6px; }
729
+ .more-menu .pop-item svg { color: var(--muted); }
730
+ .ws-tab-sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--border-strong); flex: none; }
731
+ .ws-mainbar { min-height: 48px; padding: 6px 10px; }
732
+ .invite-empty { max-width: 520px; }
733
+ .invite-empty .codebox { margin: 18px 0 14px; text-align: left; }
734
+ .invite-empty .codebox code { max-height: 96px; overflow: auto; }
735
+ .invite-empty .btn.primary { height: 42px; padding: 0 22px; }
736
+ .hint.small { font-size: 12px; margin-top: 14px; }
737
+
738
+ /* ================================================================ app shell (home + settings) */
739
+ .app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: calc(100vh - var(--update-bar, 0px)); }
740
+ .side { display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 14px; background: var(--bg); border-right: 1px solid var(--border); min-height: 0; overflow-y: auto; }
741
+ .side .brand { padding: 2px 8px 14px; font-size: 21px; letter-spacing: -0.02em; }
742
+ .side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
743
+ .side-toggle { flex: none; margin-top: 2px; color: var(--muted); }
744
+ .side-toggle svg { width: 16px; height: 16px; transition: transform .15s ease; }
745
+ /* Collapsed: a rail of icons; every control keeps its title, so a hover still says what it is. Wide windows only (narrow ones have the drawer). */
746
+ @media (min-width: 901px) {
747
+ .app-shell.side-collapsed { grid-template-columns: 68px minmax(0, 1fr); }
748
+ .app-shell.side-collapsed .side { padding: 14px 10px 12px; gap: 8px; align-items: stretch; }
749
+ .app-shell.side-collapsed .side-top { flex-direction: column; align-items: center; gap: 4px; }
750
+ .app-shell.side-collapsed .side .brand { padding: 0 0 6px; }
751
+ .app-shell.side-collapsed .side .brand .qm { width: 32px; height: 32px; }
752
+ .app-shell.side-collapsed .side-toggle svg { transform: rotate(180deg); }
753
+ .app-shell.side-collapsed .me-card { justify-content: center; padding: 6px; }
754
+ .app-shell.side-collapsed .me-card .avatar { width: 34px; height: 34px; font-size: 13px; }
755
+ .app-shell.side-collapsed .me-text, .app-shell.side-collapsed .me-edit, .app-shell.side-collapsed .side-label,
756
+ .app-shell.side-collapsed .side-nav button span:not(.sw), .app-shell.side-collapsed .sessions-btn span, .app-shell.side-collapsed .sessions-btn .caret { display: none; }
757
+ .app-shell.side-collapsed .sessions-btn { justify-content: center; padding: 0; }
758
+ .app-shell.side-collapsed .side-nav button { justify-content: center; padding: 0; }
759
+ .app-shell.side-collapsed .side-workspaces { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
760
+ .app-shell.side-collapsed .side-workspaces .sw { width: 14px; height: 14px; border-radius: 4px; }
761
+ }
762
+ .side .brand img { width: 30px; height: 30px; }
763
+ .me-card { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; text-align: left; box-shadow: var(--shadow); margin-bottom: 12px; }
764
+ .me-card:hover { border-color: var(--border-strong); }
765
+ .me-card .avatar { width: 38px; height: 38px; font-size: 15px; }
766
+ .me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
767
+ .me-text b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
768
+ .me-text span { font-size: 12.5px; color: var(--muted); }
769
+ .me-edit { font-size: 12px; font-weight: 600; color: var(--accent); }
770
+ .side-nav { display: flex; flex-direction: column; gap: 2px; }
771
+ .side-nav button, .side-sessions button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; color: var(--muted); font-weight: 500; text-align: left; }
772
+ .side-nav button:hover, .side-sessions button:hover { background: var(--panel-2); color: var(--text); }
773
+ .side-nav button.on { background: var(--panel-2); color: var(--text); font-weight: 600; }
774
+ .side-nav svg { width: 16px; height: 16px; }
775
+ .side-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 18px 10px 6px; }
776
+ .side-workspaces .sw { flex: none; width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); } /* the pastels alone are 1.2:1 on linen */
777
+ .side-workspaces .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
778
+ .side-workspaces .nm .org { font-size: 11px; color: var(--faint); }
779
+ .side-workspaces .ct { font-size: 11px; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--panel)); border-radius: 999px; padding: 0 7px; line-height: 18px; }
780
+ .side-sessions .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
781
+ .side-sessions .ct { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 0 7px; line-height: 18px; }
782
+ /* Settings and Shut down sit at the bottom, under a rule, apart from the places you go. */
783
+ /* Narrow windows' top bar and drawer (see the 760px block below); hidden on wide windows. */
784
+ .mbar, .side-scrim { display: none; }
785
+ .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border); }
786
+
787
+ .page { position: relative; overflow-y: auto; padding: 44px 48px 64px; --bg: var(--canvas); background: var(--bg); } /* positioned: the toggles' hidden inputs scroll with the page instead of stretching the document under it */
788
+ .page-head { margin-bottom: 26px; }
789
+ .page-head h1 { font-size: 30px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.025em; }
790
+ .page-head p { margin: 0; color: var(--muted); font-size: 15px; }
791
+
792
+ .choice-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
793
+ .choice-head h2 { margin: 0 0 2px; font-size: 22px; }
794
+ .choice-head p { margin: 0; color: var(--muted); }
795
+ .choice-ico { flex: none; width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--coral) 12%, var(--panel)); color: var(--coral); }
796
+ .choice-ico svg { width: 18px; height: 18px; }
797
+ .choice { display: flex; flex-direction: column; }
798
+ .choice .btn.full { width: 100%; height: 44px; margin-top: auto; }
799
+ .choice-foot { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
800
+ .choice-foot > svg, .choice-foot summary > svg { width: 14px; height: 14px; flex: none; }
801
+ .choice-foot b { color: var(--text); font-weight: 600; }
802
+ details.choice-foot { display: block; }
803
+ details.choice-foot summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
804
+ details.choice-foot summary::-webkit-details-marker { display: none; }
805
+ details.choice-foot summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
806
+ details.choice-foot summary u { margin-left: auto; text-decoration: none; color: var(--accent); font-weight: 600; flex: none; }
807
+ details.choice-foot .hint { display: block; margin-top: 6px; }
808
+
809
+ .sessions { margin-top: 36px; }
810
+ .invites { margin: 28px 0 8px; }
811
+ .invite-row .name { font-weight: 400; }
812
+ .invite-row .name b { font-weight: 650; }
813
+ .session-row.invite-row .sub { font-family: var(--sans); }
814
+ .modal .field.wi-email { margin-top: 16px; }
815
+ .sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
816
+ .sec-head h2 { margin: 0; font-size: 17px; }
817
+ .sec-head .count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 1px 8px; }
818
+ .session-list { padding: 4px 0; }
819
+ .session-row { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 18px; }
820
+ .session-row + .session-row { border-top: 1px solid var(--border); }
821
+ .session-row .name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
822
+ .session-row .name .pill { height: 20px; font-family: var(--sans); font-size: 11px; }
823
+ .session-row .sub { color: var(--muted); font-size: 12.5px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
824
+ .session-row .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
825
+ .session-row .facts span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
826
+ .session-row .facts svg { width: 13px; height: 13px; color: var(--faint); }
827
+ .session-row .acts { display: flex; gap: 4px; align-items: center; }
828
+ .session-row.gone .sub { white-space: normal; font-family: var(--sans); }
829
+ .folder-ico.live { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--panel)); }
830
+ .empty-card { display: flex; gap: 14px; align-items: center; padding: 20px 22px; color: var(--muted); }
831
+ .empty-card > svg { width: 22px; height: 22px; flex: none; color: var(--faint); }
832
+ .empty-card b { color: var(--text); }
833
+ .empty-card p { margin: 2px 0 0; }
834
+
835
+ /* settings */
836
+ .settings-tabs { display: flex; gap: 4px; margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--border); overflow-x: auto; }
837
+ .settings-tabs .tab svg { width: 15px; height: 15px; color: var(--muted); }
838
+ .settings-tabs .tab.on svg { color: var(--text); }
839
+ /* A settings card: its heading (title, one line on what it is for, and its main action) across the top, the body below at full width. */
840
+ .settings-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 24px 22px; margin-bottom: 18px; }
841
+ .sec-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
842
+ .sec-intro .sec-head-btn { margin-left: auto; }
843
+ .ws-settings-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
844
+ .ws-settings-row + .ws-settings-row { border-top: 1px dashed var(--border); }
845
+ .ws-settings-row .sw { flex: none; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); }
846
+ .ws-settings-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
847
+ .ws-settings-row .nm .org { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
848
+ .sec-intro h2 { margin: 0; font-size: 15.5px; }
849
+ .sec-intro p { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 13px; }
850
+ .sec-body { min-width: 0; }
851
+ .theme-switch { margin-bottom: 8px; }
852
+ .theme-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 1px solid transparent; }
853
+ .theme-switch button svg { width: 14px; height: 14px; flex: none; }
854
+ .theme-switch button.on {
855
+ background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--text); font-weight: 600;
856
+ border-color: var(--accent); box-shadow: none;
857
+ }
858
+ .sec-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
859
+ .profile-preview { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); margin-bottom: 18px; }
860
+ .profile-preview .avatar { width: 48px; height: 48px; font-size: 19px; }
861
+ .profile-preview b { display: block; font-size: 16px; font-weight: 600; }
862
+ .profile-preview span { color: var(--muted); font-size: 13px; }
863
+ .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
864
+ .swatch { position: relative; cursor: pointer; }
865
+ .swatch input { position: absolute; opacity: 0; }
866
+ .swatch > span { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
867
+ .swatch.auto > span { width: auto; padding: 0 12px; border-radius: 999px; line-height: 30px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--panel-2); }
868
+ .swatch input:checked + span { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); }
869
+ .swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
870
+ .toggle { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
871
+ .toggle + .toggle { border-top: 1px dashed var(--border); }
872
+ .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
873
+ .toggle .track { flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; margin-top: 1px; }
874
+ .toggle .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
875
+ .toggle input:checked + .track { background: var(--ok); }
876
+ .toggle input:checked + .track .knob { transform: translateX(16px); }
877
+ .toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
878
+ /* Settings → Sounds: each switch with a Play button beside it. */
879
+ .sound-row > .toggle { flex: 1; min-width: 0; }
880
+ .sound-row + .sound-row { border-top: 1px dashed var(--border); }
881
+ .tg-text { display: flex; flex-direction: column; gap: 2px; }
882
+ .tg-text b { font-weight: 600; }
883
+ .choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
884
+ .choice-card { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; background: var(--panel); }
885
+ .choice-card input { margin-top: 4px; accent-color: var(--accent); }
886
+ .choice-card b { display: block; font-weight: 600; }
887
+ .choice-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); box-shadow: 0 0 0 1px var(--accent); }
888
+ .kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 2px 14px; padding: 8px 0; font-size: 13.5px; }
889
+ .kv > span:first-child { color: var(--muted); }
890
+ .kv .hint { grid-column: 2; }
891
+ .kv code { overflow-wrap: anywhere; }
892
+
893
+ /* The sidebar stays a sidebar down to 760px, below the desktop app's 880px minimum window
894
+ width, so the app always has it; narrower browsers get it as a header with a scrolling
895
+ row of workspaces. */
896
+ @media (max-width: 760px) {
897
+ .app-shell { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
898
+ /* A slim sticky bar instead of the sidebar. */
899
+ .mbar { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 30; height: 52px; padding: 0 10px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
900
+ .mbar .btn.icon { width: 36px; height: 36px; }
901
+ .mbar-brand { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
902
+ .mbar-brand svg { width: 24px; height: 24px; }
903
+ .mbar-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
904
+ .mbar-me { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
905
+ .mbar-me .avatar { width: 32px; height: 32px; font-size: 13px; }
906
+ /* The full sidebar becomes a drawer. */
907
+ .side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 41; width: min(300px, 86vw); height: 100dvh; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-pop); border-right: 1px solid var(--border); }
908
+ .app-shell.side-open .side { transform: none; }
909
+ .app-shell.side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(29, 27, 46, .35); }
910
+ @media (prefers-reduced-motion: reduce) { .side { transition: none; } }
911
+ .page { padding: 28px 16px 48px; overflow: visible; }
912
+ .page-head h1 { font-size: 30px; }
913
+ .choices { grid-template-columns: 1fr; }
914
+ .session-row { grid-template-columns: auto minmax(0, 1fr) auto; }
915
+ .session-row .facts { grid-column: 2 / -1; grid-row: 2; }
916
+ .settings-sec { gap: 14px; padding: 18px 16px; }
917
+ .choice-cards { grid-template-columns: 1fr; }
918
+ .sec-actions { flex-direction: column; align-items: stretch; }
919
+ }
920
+
921
+ /* sessions menu, dialogs, welcome */
922
+ .menu-wrap { position: relative; margin-bottom: 10px; }
923
+ .sessions-btn { width: 100%; height: 40px; justify-content: flex-start; }
924
+ .sessions-btn .caret { margin-left: auto; display: grid; transform: rotate(90deg); opacity: .7; }
925
+ .sessions-btn .caret svg { width: 12px; height: 12px; }
926
+ .badge-count { font-size: 11px; font-weight: 700; background: var(--coral); color: var(--on-accent); border-radius: 999px; padding: 0 7px; line-height: 18px; }
927
+ .popover.menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; z-index: 30; max-height: 70vh; overflow-y: auto; }
928
+ .pop-item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
929
+ .pop-item .hint { font-size: 11.5px; font-weight: 400; }
930
+ .pop-item .dot { flex: none; }
931
+ .pop-sep { height: 1px; background: var(--border); margin: 6px 4px; }
932
+ .pop-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 4px 8px 2px; }
933
+ .sec-head .spacer { flex: 1; }
934
+ .sec-head { align-items: center; }
935
+ .welcome { padding: 28px; }
936
+ .welcome-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
937
+ .welcome-steps b { display: block; margin: 10px 0 2px; font-size: 14.5px; }
938
+ .welcome-steps p { margin: 0; }
939
+ .welcome-steps .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: color-mix(in srgb, var(--coral) 12%, var(--panel)); color: var(--coral); font-weight: 700; font-size: 13px; }
940
+ .welcome-actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
941
+ .modal .note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--panel-2); color: var(--muted); font-size: 13px; }
942
+ .modal .note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
943
+ .modal .note b { color: var(--text); font-weight: 600; }
944
+ @media (max-width: 900px) {
945
+ .welcome-steps { grid-template-columns: 1fr; }
946
+ .welcome-actions { flex-direction: column; }
947
+ .menu-wrap { margin-bottom: 4px; }
948
+ }
949
+
950
+ /* access: pill, owner's request bar, member controls, invite pair */
951
+ .access-pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 4px; background: color-mix(in srgb, var(--violet) 12%, var(--panel)); color: var(--violet); white-space: nowrap; }
952
+ .access-pill.wait { background: color-mix(in srgb, var(--warn) 14%, var(--panel)); color: var(--warn); }
953
+ /* Bars that need you (requests, catching up, GitHub): an ink wash with the vermilion edge. */
954
+ .requests { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--text) 3%, var(--bg)); box-shadow: inset 3px 0 0 var(--accent); }
955
+ .request { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius); }
956
+ .request .avatar { width: 30px; height: 30px; font-size: 12px; }
957
+ .rq-main { flex: 1; min-width: 160px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
958
+ .rq-main .hint { width: 100%; font-size: 12px; }
959
+ .request .input { height: 30px; width: auto; font-size: 12.5px; padding: 0 8px; }
960
+ .request input.input { width: 190px; }
961
+ .requests.catchup { max-height: 42vh; overflow-y: auto; gap: 6px; }
962
+ .cu-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
963
+ .cu-head b { font-weight: 600; }
964
+ .cu-head .spacer, .cu-person summary .spacer { flex: 1; }
965
+ .cu-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
966
+ .cu-line svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--ok); }
967
+ .cu-line.warn svg { color: var(--warn); }
968
+ .cu-line .linkish.mono { font-size: 12.5px; }
969
+ .cu-person summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13px; padding: 4px 6px; margin: 0 -6px; border-radius: 4px; }
970
+ .cu-person summary::-webkit-details-marker { display: none; }
971
+ .cu-person summary:hover { background: var(--panel); }
972
+ .cu-person summary .avatar { width: 22px; height: 22px; font-size: 10px; flex: none; }
973
+ .cu-person summary b { font-weight: 600; }
974
+ .cu-person summary .hint { font-size: 11.5px; white-space: nowrap; }
975
+ .cu-person summary > svg { width: 13px; height: 13px; flex: none; transition: transform .15s ease; transform: rotate(-90deg); }
976
+ .cu-person[open] summary > svg { transform: none; }
977
+ .cu-person ul, .cu-backups { list-style: none; margin: 4px 0 2px; padding: 6px; background: var(--panel); border-radius: 4px; }
978
+ .cu-person li, .cu-backups li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0; flex-wrap: wrap; }
979
+ .cu-person li .hint, .cu-backups li .hint { font-size: 11.5px; white-space: nowrap; }
980
+ .cu-person .chg-file:hover, .cu-person .chg-file:focus-visible { background: var(--panel-2); }
981
+ .cu-backups code { font-size: 12px; overflow-wrap: anywhere; }
982
+ /* Files to merge: a pill on the Files header filters the tree to them; each is marked in its row. */
983
+ .merge-pill { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; }
984
+ .merge-pill:hover, .merge-pill:focus-visible { background: color-mix(in srgb, var(--warn) 20%, transparent); outline: none; }
985
+ .merge-pill[aria-pressed="true"] { background: var(--warn); border-color: var(--warn); color: var(--panel); }
986
+ .pane-head .hint { margin-right: auto; }
987
+ .t-badge.merge { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
988
+ @media (min-width: 901px) {
989
+ .ws-body.tree-collapsed .pane-head { flex-direction: column; gap: 6px; }
990
+ .ws-body.tree-collapsed .merge-pill { padding: 0 6px; }
991
+ .ws-body.tree-collapsed .merge-pill .mp-l { display: none; }
992
+ }
993
+ /* The folded Files pane's rail (rail.js): someone waiting on you, the locks, who holds them. */
994
+ .tree-rail { display: none; }
995
+ @media (min-width: 901px) {
996
+ .ws-body.tree-collapsed .tree-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0 12px; flex: none; }
997
+ }
998
+ .rail-sig, .rail-who, .rail-more { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
999
+ .rail-sig:hover, .rail-who:hover, .rail-more:hover, .rail-sig:focus-visible, .rail-who:focus-visible, .rail-more:focus-visible, .rail-sig[aria-expanded="true"], .rail-who[aria-expanded="true"] { background: var(--panel-2); color: var(--text); outline: none; }
1000
+ .rail-sig svg { width: 17px; height: 17px; }
1001
+ .rail-n { position: absolute; right: -3px; bottom: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); font-size: 9.5px; font-weight: 700; line-height: 13px; text-align: center; font-variant-numeric: tabular-nums; }
1002
+ .rail-sig.lock { color: var(--edit); }
1003
+ .rail-sig.lock.none { color: var(--faint); }
1004
+ .rail-sig.lock.mine .rail-n { background: var(--edit); border-color: var(--edit); color: var(--panel); }
1005
+ .rail-sig.waiting { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); animation: rail-call 1.8s ease-in-out infinite; }
1006
+ .rail-sig.waiting .rail-n { background: var(--warn); border-color: var(--warn); color: var(--panel); }
1007
+ @keyframes rail-call { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
1008
+ .rail-who .avatar { width: 26px; height: 26px; font-size: 11px; }
1009
+ .rail-who.ai .avatar { border-radius: 7px; } /* an AI holds it: square, like the AI tag beside a lane's name */
1010
+ .rail-q { position: absolute; right: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); border: 2px solid var(--bg); }
1011
+ .rail-more { font-size: 11px; font-weight: 700; }
1012
+ .rail-sep { width: 18px; height: 1px; background: var(--border); margin: 2px 0; flex: none; }
1013
+ .merge-pill.urgent { animation: rail-call 1.8s ease-in-out infinite; }
1014
+ @media (prefers-reduced-motion: reduce) { .rail-sig.waiting, .merge-pill.urgent { animation: none; } }
1015
+ /* The lock list beside the rail, or a Loom lane's "holds": who holds what, how long, why, who waits. */
1016
+ .lk-pop {
1017
+ position: fixed; z-index: 45; width: 300px; max-width: calc(100vw - 16px); max-height: min(70vh, 520px); overflow: auto; padding: 10px 0 8px;
1018
+ background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-pop);
1019
+ font-size: 12.5px; line-height: 1.4; color: var(--text);
1020
+ }
1021
+ .lk-pop.in { animation: tcard-in .14s cubic-bezier(.2, .8, .2, 1); }
1022
+ @media (prefers-reduced-motion: reduce) { .lk-pop.in { animation: none; } }
1023
+ .lk-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
1024
+ .lk-total { font-variant-numeric: tabular-nums; }
1025
+ .lk-list { list-style: none; margin: 0; padding: 0; }
1026
+ .lk-row { padding: 7px 12px 8px; border-top: 1px solid var(--border); }
1027
+ .lk-row.ours { background: color-mix(in srgb, var(--edit) 6%, transparent); }
1028
+ .lk-main { width: 100%; display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
1029
+ .lk-main:disabled { cursor: default; }
1030
+ .lk-main:not(:disabled):hover .lk-name, .lk-main:focus-visible .lk-name { text-decoration: underline; text-underline-offset: 3px; }
1031
+ .lk-main:focus-visible { outline: none; }
1032
+ .lk-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
1033
+ .lk-name { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1034
+ .lk-count { margin-left: 6px; font-family: var(--sans); font-weight: 500; color: var(--muted); }
1035
+ .lk-held { flex: none; font-size: 11.5px; font-weight: 600; color: var(--edit); font-variant-numeric: tabular-nums; }
1036
+ .lk-dir { padding-left: 15px; font-family: var(--mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1037
+ .lk-who { padding-left: 15px; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
1038
+ .lk-who b { font-weight: 600; color: var(--text); }
1039
+ .lk-who i { font-style: normal; color: var(--faint); }
1040
+ .lk-q, .lk-free { padding-left: 15px; margin-top: 3px; font-size: 11.5px; }
1041
+ .lk-q { display: flex; align-items: flex-start; gap: 5px; color: var(--warn); }
1042
+ .lk-q svg { width: 12px; height: 12px; flex: none; margin-top: 2px; }
1043
+ .lk-free { color: var(--faint); }
1044
+ .lk-none { margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--border); color: var(--muted); }
1045
+ .lk-foot { padding: 7px 12px 0; border-top: 1px solid var(--border); font-size: 11px; color: var(--faint); }
1046
+ .linkish { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; overflow-wrap: anywhere; text-align: left; }
1047
+ .linkish.mono { font-family: var(--mono); font-size: 13px; }
1048
+ .linkish:hover { color: var(--accent); }
1049
+ .merge-send { display: inline-flex; gap: 4px; align-items: center; }
1050
+ .merge-send .input, .merge-view .fv-banner .input { height: 30px; width: auto; font-size: 12.5px; padding: 0 8px; }
1051
+ .merge-cols { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 1px; background: var(--border); min-height: 0; flex: 1; }
1052
+ .merge-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }
1053
+ .merge-col-head { padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--panel); }
1054
+ .merge-col .fv-code tr.mchg td { background: color-mix(in srgb, var(--warn) 16%, transparent); }
1055
+ .merge-col .fv-code tr.mchg td.ln { background: color-mix(in srgb, var(--warn) 16%, var(--panel)); }
1056
+ @media (max-width: 900px) { .merge-cols { grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); } }
1057
+ .pm-member { display: flex; align-items: center; gap: 6px; padding: 4px 6px; font-size: 13px; }
1058
+ .pm-member .nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1059
+ .pm-member .input { height: 28px; width: auto; font-size: 12px; padding: 0 6px; }
1060
+ .pm-member input.input { width: 110px; }
1061
+ .invite-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 4px; text-align: left; }
1062
+ .invite-pair .codebox { margin: 6px 0 10px; }
1063
+ .invite-pair .codebox code { font-size: 11.5px; max-height: 72px; overflow: auto; }
1064
+ .invite-pair .btn { width: 100%; }
1065
+ @media (max-width: 900px) { .invite-pair { grid-template-columns: 1fr; } }
1066
+ .pm-member.edit { flex-wrap: wrap; padding: 6px; border-radius: 4px; }
1067
+ .pm-member.edit + .pm-member.edit { border-top: 1px dashed var(--border); }
1068
+ .pm-member.edit .nm { flex-basis: 100%; font-weight: 600; }
1069
+ .pm-member.edit input.input { flex: 1; }
1070
+
1071
+ /* git: new session from GitHub, and the host's Git panel */
1072
+ .src-switch { margin-bottom: 16px; }
1073
+ .src-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
1074
+ .src-switch svg { width: 14px; height: 14px; }
1075
+ .modal .note.gh-setup { margin-bottom: 14px; }
1076
+ .modal .note code { font-size: 12px; color: var(--text); }
1077
+ .gh-wait { margin: 0 0 14px; }
1078
+ .gh-list { max-height: 216px; overflow-y: auto; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); padding: 4px; }
1079
+ .gh-list > .hint { display: block; margin: 0; padding: 8px; }
1080
+ .gh-repo { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer; text-align: left; }
1081
+ .gh-repo:hover, .gh-repo:focus-visible { background: var(--panel-2); outline: none; }
1082
+ .gh-repo.on { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
1083
+ .gh-repo .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
1084
+ .gh-repo b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1085
+ .gh-repo .grow .hint { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1086
+ .gh-repo > .hint { flex: none; font-size: 11.5px; }
1087
+ .modal .choice-cards { margin-bottom: 10px; }
1088
+ .modal .choice-card { padding: 9px 12px; }
1089
+ .gh-base { width: auto; flex: 0 1 170px; min-width: 110px; }
1090
+ .field > label .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
1091
+
1092
+ /* changes: who changed what */
1093
+ .chg-count { font-size: 11px; font-weight: 700; line-height: 18px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--panel-2); color: var(--muted); text-align: center; }
1094
+ .chg-panel { display: flex; flex-direction: column; gap: 10px; }
1095
+ .chg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
1096
+ .chg-head b { font-weight: 600; }
1097
+ .chg-seg { align-self: flex-start; }
1098
+ .chg-seg button { flex: none; height: 26px; padding: 0 10px; font-size: 12.5px; }
1099
+ .chg-delta { font-family: var(--mono); font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: none; }
1100
+ .chg-delta .add, .chg-chip .add { color: var(--ok); }
1101
+ .chg-delta .del, .chg-chip .del { color: var(--bad); }
1102
+ .chg-person { padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--border); }
1103
+ .chg-person:first-child { padding-top: 0; border-top: 0; }
1104
+ .chg-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
1105
+ .chg-row .avatar { width: 22px; height: 22px; font-size: 10px; flex: none; }
1106
+ .chg-row b { font-weight: 600; }
1107
+ .chg-row .hint, .chg-panel li .hint { font-size: 11.5px; white-space: nowrap; flex: none; }
1108
+ .chg-row .spacer { flex: 1; }
1109
+ .chg-panel ul { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--panel-2); border-radius: 4px; }
1110
+ .chg-panel li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0; flex-wrap: wrap; }
1111
+ .chg-file { flex: 1; min-width: 0; display: flex; border: 0; background: none; padding: 2px 4px; margin: 0 -4px; border-radius: 3px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
1112
+ .chg-file:hover, .chg-file:focus-visible { background: var(--panel); }
1113
+ .chg-file code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 12px; }
1114
+ .chg-file.gone { cursor: default; color: var(--muted); }
1115
+ .chg-file.gone code { text-decoration: line-through; }
1116
+ .chg-kind { flex: none; font-size: 10.5px; font-weight: 700; padding: 0 6px; height: 18px; line-height: 18px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
1117
+ .chg-kind.gone { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
1118
+ .chg-by { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0 0 4px; }
1119
+ .chg-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 0 7px; height: 18px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--text); }
1120
+ .chg-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
1121
+ .chg-chip .add, .chg-chip .del { font-family: var(--mono); font-size: 10.5px; }
1122
+ .chg-pulled { margin-top: 6px; }
1123
+ .chg-pulled summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 3px 6px; border-radius: 4px; border: 1px dashed var(--border-strong); }
1124
+ .chg-pulled summary::-webkit-details-marker { display: none; }
1125
+ .chg-pulled summary:hover { color: var(--text); }
1126
+ .chg-pulled summary svg { width: 13px; height: 13px; flex: none; transition: transform .15s ease; transform: rotate(-90deg); }
1127
+ .chg-pulled[open] summary svg { transform: none; }
1128
+ .chg-pulled summary .spacer { flex: 1; }
1129
+ .chg-chip.pulled { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
1130
+ .chg-chip i { font-style: normal; font-weight: 500; color: var(--muted); }
1131
+ .chg-entry { padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
1132
+ .chg-entry + .chg-entry { margin-top: 4px; border-top: 1px solid var(--border); }
1133
+ .chg-entry .hint { margin: 0; }
1134
+ .chg-task { font-size: 12px; }
1135
+ .chg-kind.pulled { background: var(--panel-2); color: var(--muted); }
1136
+ .chg-diff { margin: 0; padding: 6px 0; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; overflow-x: auto; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; }
1137
+ .chg-diff .ln { display: block; padding: 0 10px 0 6px; white-space: pre; min-width: max-content; }
1138
+ .chg-diff .ln i { display: inline-block; width: 14px; font-style: normal; color: var(--muted); user-select: none; }
1139
+ .chg-diff .add { background: light-dark(#dcecdf, #1f4a2e); box-shadow: inset 3px 0 0 var(--ok); }
1140
+ .chg-diff .add i { color: var(--ok); }
1141
+ .chg-diff .del { background: light-dark(#f6e0dd, #55262a); box-shadow: inset 3px 0 0 var(--bad); }
1142
+ .chg-diff .del i { color: var(--bad); }
1143
+ .chg-diff .hunk { color: var(--muted); font-family: var(--sans); font-size: 11px; padding: 4px 10px 2px; }
1144
+ .chg-diff .hunk:not(:first-child) { margin-top: 4px; border-top: 1px dashed var(--border); }
1145
+ /* Changes counted in the totals whose diff the history no longer keeps (diffview.js). */
1146
+ .chg-gone { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
1147
+ .chg-gone:first-child { margin-top: 10px; padding-top: 0; border-top: 0; }
1148
+ .chg-gone h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
1149
+ .chg-gone ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
1150
+ .chg-gone li { display: flex; align-items: center; gap: 8px; min-width: 0; }
1151
+ .chg-gone li .avatar { width: 22px; height: 22px; font-size: 10px; flex: none; }
1152
+ .chg-gone li b { font-weight: 600; }
1153
+ .chg-gone .spacer { flex: 1; }
1154
+ .chg-gone > .hint { margin: 8px 0 0; font-size: 12px; }
1155
+ .chg-panel .error { margin: 0; }
1156
+ .chg-panel .error:empty { display: none; }
1157
+
1158
+ .tag.summary { font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--panel-2); }
1159
+ .pm-toggle { cursor: pointer; }
1160
+ .pm-toggle input { accent-color: var(--ok); }
1161
+
1162
+ .git-branch .tag.warn, .branch-menu .warn { color: var(--warn); }
1163
+ .branch-menu { font-size: 12.5px; }
1164
+ .branch-menu .br-here { padding: 2px 2px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: grid; gap: 4px; }
1165
+ .branch-menu .br-title b { font-weight: 600; }
1166
+ .branch-menu .br-sub, .branch-menu .br-meta, .branch-menu .br-hint { color: var(--muted); }
1167
+ .branch-menu .br-clash { margin: 2px 0; padding-left: 16px; }
1168
+ .branch-menu .br-clash code { font-size: 11.5px; }
1169
+ .branch-menu .br-sync { justify-self: start; margin-top: 4px; }
1170
+ .branch-menu .br-head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 2px 2px 6px; }
1171
+ .branch-menu .br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
1172
+ .branch-menu .br-row { padding: 6px; border-radius: 4px; display: grid; gap: 2px; }
1173
+ .branch-menu .br-row.on { background: var(--panel-2); }
1174
+ .branch-menu .br-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
1175
+ .branch-menu .br-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
1176
+ .branch-menu .br-people { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
1177
+ .branch-menu .br-who { font-size: 11px; padding: 1px 6px; border-radius: 9px; border: 1px solid var(--border); white-space: nowrap; }
1178
+ .branch-menu .br-who.ai { border-style: dashed; }
1179
+ .branch-menu .br-who.wt { color: var(--muted); }
1180
+ .branch-menu .br-who.warn { border-color: var(--warn); }
1181
+ .branch-menu .br-tag { font-size: 10.5px; padding: 1px 6px; border-radius: 9px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
1182
+ .branch-menu .br-tag.warn { color: var(--warn); }
1183
+ .branch-menu .br-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
1184
+ .branch-menu .br-meta a:hover { color: var(--text); }
1185
+ .git-branch svg { flex: none; width: 15px; height: 15px; }
1186
+ /* A long branch name (or the branch in the pause note) ends in an ellipsis; the full name is in the tooltip. */
1187
+ .git-branch .branch-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1188
+ .git-branch .tag { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1189
+
1190
+ /* commit timing */
1191
+ .relay-problem { min-width: 0; max-width: 42ch; height: 28px; padding: 0 10px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--border)); background: color-mix(in srgb, var(--bad) 10%, var(--panel)); color: var(--bad); font-size: 12px; font-weight: 600; line-height: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1192
+ .git-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--border)); background: color-mix(in srgb, var(--warn) 10%, var(--panel)); color: var(--warn); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
1193
+ .git-chip.ready { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); background: color-mix(in srgb, var(--ok) 10%, var(--panel)); color: var(--ok); }
1194
+ .git-chip svg { width: 13px; height: 13px; }
1195
+ .git-chip .sd { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
1196
+ .git-chip .sd.ok { background: var(--ok); }
1197
+ .git-chip .sd.edit { background: var(--edit); }
1198
+ .cp-files { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }
1199
+ .cp-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 4px 8px; border-top: 1px solid var(--border); }
1200
+ .cp-files li:first-child { border-top: 0; }
1201
+ .cp-files .path { font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1202
+ .cp-files .who { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; }
1203
+ .cp-files .who i { width: 8px; height: 8px; border-radius: 50%; }
1204
+ .cp-files .t { color: var(--faint); font-size: 11.5px; min-width: 22px; text-align: right; }
1205
+ .cp-files li.more { display: block; color: var(--muted); font-size: 11.5px; }
1206
+ .cp-commit { display: flex; gap: 6px; margin: 0 0 6px; }
1207
+ .cp-commit .input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; font-size: 12.5px; }
1208
+ /* one chip and one panel for source control: branch, GitHub, changes */
1209
+ .git-wrap { position: relative; min-width: 0; flex: 0 1 auto; display: flex; }
1210
+ .git-chip { min-width: 0; max-width: 100%; overflow: hidden; }
1211
+ .git-chip .git-branch, .git-chip .git-chg { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
1212
+ .git-chip .git-branch[hidden], .git-chip .git-chg[hidden], .git-chip .git-sep[hidden], .git-chip .git-say[hidden], .git-chip .sd[hidden] { display: none; }
1213
+ .git-chip .git-sep { color: var(--faint); }
1214
+ .git-chip .git-branch:not([hidden]) ~ .git-say::before, .git-chip .git-chg:not([hidden]) ~ .git-say::before { content: '·'; margin-right: 6px; color: var(--faint); font-weight: 400; }
1215
+ .git-chip .chg-count { background: none; padding: 0; min-width: 0; color: inherit; font-weight: 600; }
1216
+ .git-chip.quiet:hover, .git-chip[aria-expanded="true"] { border-color: var(--border-strong, var(--border)); color: var(--text); }
1217
+ .git-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 460px; max-width: calc(100vw - 24px); max-height: 78vh; overflow: auto; padding: 0; display: flex; flex-direction: column; }
1218
+ .git-panel .git-sec { flex: none; padding: 12px; border-top: 1px solid var(--border); }
1219
+ .git-panel .git-sec:first-child, .git-panel .git-sec[hidden] + .git-sec:not([hidden]) { border-top: 0; }
1220
+ .git-panel .git-sec[hidden] { display: none; }
1221
+ .git-panel .chg-head h4 { margin: 0; }
1222
+ .branch-menu .br-here { border-bottom: 0; margin-bottom: 0; padding-bottom: 4px; }
1223
+ .branch-menu .br-all { margin-top: 6px; }
1224
+ .branch-menu .br-all > summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 4px 2px; }
1225
+ .branch-menu .br-all[open] > summary { margin-bottom: 6px; }
1226
+ .branch-menu .br-n { font-size: 11px; padding: 0 6px; border-radius: 9px; background: var(--panel-2); }
1227
+ @media (max-width: 900px) {
1228
+ .git-panel { position: fixed; top: 60px; right: 8px; left: 8px; width: auto; }
1229
+ .git-chip .git-say { display: none; }
1230
+ }
1231
+ .commit-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
1232
+ .commit-reqs li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; }
1233
+ .commit-reqs li > div:not(.commit-acts) { color: var(--muted); margin: 2px 0 6px; }
1234
+ .commit-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
1235
+ .git-chip.quiet { border-color: var(--border); background: var(--panel); color: var(--muted); font-weight: 500; }
1236
+ .git-chip.needs { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--panel); color: var(--accent); }
1237
+ .gh-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
1238
+ .gh-text { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
1239
+ .gh-text b { font-weight: 600; }
1240
+ .gh-text span { color: var(--muted); }
1241
+ .gh-acts { display: flex; align-items: center; gap: 6px; }
1242
+ .git-panel h4 { margin: 4px 2px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
1243
+ .commit-panel h4 + .hint, .commit-panel > .hint { margin: 0 2px 10px; font-size: 12px; }
1244
+ .commit-reqs + h4 { margin-top: 12px; }
1245
+ .commit-reqs details { margin: 2px 0 6px; font-size: 12px; color: var(--muted); }
1246
+ .commit-reqs summary { cursor: pointer; }
1247
+ .commit-files { margin: 4px 0 0; padding-left: 16px; max-height: 160px; overflow: auto; font-family: var(--mono, ui-monospace, monospace); font-size: 11.5px; word-break: break-all; }
1248
+ .commit-why { margin: 0 0 6px; font-size: 12px; color: var(--warn); }
1249
+ .commit-acts { display: flex; gap: 6px; flex-wrap: wrap; }
1250
+ .commit-auto { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; }
1251
+ .commit-sync { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; }
1252
+ .commit-panel > .commit-sync:first-child { margin-top: 0; padding-top: 2px; border-top: 0; }
1253
+ .commit-sync h4 { margin: 0 0 6px; }
1254
+ .commit-sync p { margin: 0 0 6px; }
1255
+ .commit-sync.warn p:first-of-type { color: var(--warn); }
1256
+ .commit-sync .commit-auto { border-top: 0; margin-top: 6px; padding-top: 0; }
1257
+ .commit-sync .commit-auto input { margin: 0 6px 0 0; vertical-align: -2px; }
1258
+ .commit-auto .hint { display: block; margin: 6px 0 0; font-size: 11.5px; }
1259
+ .commit-auto .hint .btn { margin: 0 6px 0 0; }
1260
+ .open-in { display: flex; }
1261
+ .open-in [data-open-in] + #open-in-more { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
1262
+ .open-in .btn:has(+ #open-in-more) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
1263
+
1264
+ /* ---- The Quilt mark (mark.js, brand/SPEC.md): eight pieces, sewn in once, and the loading loop ---- */
1265
+ .qm { display: block; overflow: visible; }
1266
+ .qm-i { fill: var(--mark-ink); }
1267
+ .qm-a { fill: var(--mark-accent); }
1268
+ .qm-w { stroke: var(--mark-ink); }
1269
+ .qm-p { transform-box: fill-box; transform-origin: center; }
1270
+ .qm-px { image-rendering: pixelated; }
1271
+ /* Sewn in once: the pieces drop into place clockwise from the top-left, the corner last, then "quilt" appears. */
1272
+ .qm-sew .qm-p { opacity: 0; transform: scale(.35) rotate(-10deg); animation: qm-sew .42s cubic-bezier(.2, .9, .3, 1.25) forwards; animation-delay: calc(var(--o) * 60ms + 80ms); }
1273
+ .qm-sew .qm-c { animation-delay: 560ms; }
1274
+ .qm-sew .qm-wm { opacity: 0; animation: qm-fade .35s ease-out .6s forwards; }
1275
+ @keyframes qm-sew { to { opacity: 1; transform: none; } }
1276
+ @keyframes qm-fade { to { opacity: 1; } }
1277
+ /* Loading: pieced patch by patch, clockwise, the corner last; holds; then all fade and it starts again. */
1278
+ .qm-loop .qm-p { opacity: 0; animation: qm-loop 2.8s ease-in-out infinite; animation-delay: calc(var(--o) * 100ms); }
1279
+ .qm-loop .qm-c { animation-delay: 780ms; }
1280
+ @keyframes qm-loop { 0% { opacity: 0; transform: scale(.3); } 14%, 80% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.3); } }
1281
+ @media (prefers-reduced-motion: reduce) {
1282
+ .qm-sew .qm-p, .qm-sew .qm-wm { animation: none; opacity: 1; transform: none; }
1283
+ .qm-loop .qm-p { animation: none; opacity: 1; transform: none; }
1284
+ .qm-loop { animation: qm-fade-pulse 1.6s ease-in-out infinite; }
1285
+ @keyframes qm-fade-pulse { 50% { opacity: .45; } }
1286
+ }
1287
+ /* Optical centring: the lockup's box includes the q's descender, so centred in a bar the mark and letters
1288
+ read high. Nudged down 8% of its height (brand/SPEC.md, lockups). */
1289
+ .brand .qm-word { height: 34px; width: auto; transform: translateY(8%); }
1290
+ .side .brand .qm-word { height: 38px; }
1291
+ .wordmark .qm-word { height: 72px; width: auto; margin: 0 auto; }
1292
+ .booting { min-height: 100vh; display: grid; place-items: center; }
1293
+ .booting .qm-sym { width: 56px; height: 56px; }
1294
+ /* Loading a workspace (fills the page) or a session (fills the window): the mark pieces itself
1295
+ together over what is loading. It fades in after a beat, so a quick load never flashes it. */
1296
+ .loading-screen { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; animation: loading-in .3s ease-out .12s both; }
1297
+ .loading-screen.full { min-height: 100vh; }
1298
+ .loading-screen.steady { animation: none; }
1299
+ .loading-screen .qm-sym { width: 56px; height: 56px; margin-bottom: 14px; }
1300
+ .loading-screen .ls-label { margin: 0; font-size: 15px; font-weight: 600; }
1301
+ .loading-screen .ls-name { margin: 0; font-size: 13px; color: var(--muted); max-width: 80vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1302
+ @keyframes loading-in { from { opacity: 0; } to { opacity: 1; } }
1303
+ /* Over a session while its files and AI feeds load; it fades away once they are in. */
1304
+ .sv-loading { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; place-items: center; transition: opacity .28s ease; }
1305
+ .sv-loading.done { opacity: 0; pointer-events: none; }
1306
+ /* It takes over from the loading screen go() showed, so it is there at once, without a fade. */
1307
+ .sv-loading .loading-screen { animation: none; }
1308
+ @media (prefers-reduced-motion: reduce) { .ws-page.enter, .loading-screen { animation: none; } .sv-loading { transition: none; } }
1309
+ .qm-inline { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 8px; }
1310
+ .btn .qm-inline { margin-right: 6px; }
1311
+ /* A wait in a list or a panel ("Loading…", "Checking GitHub…"): the mark piecing itself together, small, beside the words. */
1312
+ .ql { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
1313
+ .ql .qm-inline { width: 14px; height: 14px; margin: 0; flex: none; }
1314
+ .btn .ql, #update-bar .ql { color: inherit; }
1315
+ /* In a button, or on the dark update bar, the mark's ink follows the text colour. */
1316
+ .btn .qm-i, #update-bar .qm-i { fill: currentColor; }
1317
+ .btn .qm-w, #update-bar .qm-w { stroke: currentColor; }
1318
+
1319
+ /* People menu: sections with clear headings, a card for you, plain switches */
1320
+ .people-menu { width: 380px; padding: 0; }
1321
+ .pm-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); font-weight: 650; font-size: 15px; }
1322
+ .pm-count { font-size: 12px; font-weight: 500; color: var(--muted); }
1323
+ .pm-section { padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 8px; }
1324
+ .pm-section + .pm-section { border-top: 1px solid var(--border); }
1325
+ .pm-section .pm-title { padding: 0; }
1326
+ .pm-card { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); padding: 6px; }
1327
+ .pm-card .pm-open { padding: 6px; }
1328
+ .pm-card .pm-focus { padding: 2px 6px 6px; }
1329
+ .pm-settings { padding: 4px 12px; }
1330
+ .pm-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; cursor: pointer; }
1331
+ .pm-switch + .pm-switch { border-top: 1px solid var(--border); }
1332
+ .pm-switch b { display: block; font-weight: 600; font-size: 13px; }
1333
+ .pm-switch small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
1334
+ .pm-switch.off { opacity: .55; cursor: default; }
1335
+ .pm-switch input { appearance: none; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
1336
+ .pm-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
1337
+ .pm-switch input:checked { background: var(--ok); }
1338
+ .pm-switch input:checked::after { transform: translateX(14px); }
1339
+ .pm-switch input:disabled { cursor: default; }
1340
+ .pm-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1341
+ .pm-empty { color: var(--muted); font-size: 13px; padding: 2px 0 8px; }
1342
+ .pm-foot { padding: 8px 12px 12px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
1343
+ @media (prefers-reduced-motion: reduce) { .pm-switch input, .pm-switch input::after { transition: none; } }
1344
+ /* Git for everyone (src/ui/git-rule.js): one segmented control that fills its card, in the session's
1345
+ settings and a workspace's and an org's GitHub settings. Choices a rule above doesn't allow are greyed. */
1346
+ .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
1347
+ .seg button { font: inherit; font-size: 12px; line-height: 1.3; padding: 8px 6px; border: 0; margin: 0; background: var(--panel); color: var(--muted); cursor: pointer; min-width: 0; }
1348
+ .seg button + button { border-left: 1px solid var(--border-strong); }
1349
+ .seg button b { display: block; color: var(--text); font-weight: 600; }
1350
+ .seg button:hover:not(:disabled):not(.on) { background: color-mix(in srgb, var(--panel-2) 55%, var(--panel)); }
1351
+ .seg button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
1352
+ .seg button:disabled { opacity: .45; cursor: not-allowed; }
1353
+ .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
1354
+ .git-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
1355
+ .git-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
1356
+ .git-head h4 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14px; font-weight: 600; }
1357
+ .git-head .pill { max-width: 100%; height: auto; min-height: 24px; padding-block: 2px; white-space: normal; }
1358
+ .pill.rule { color: var(--violet); }
1359
+ .git-line { margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--panel-2); font-size: 12.5px; }
1360
+ .git-line.ok b { color: var(--ok); }
1361
+ .git-line.off b { color: var(--bad); }
1362
+ .git-card .hint { font-size: 12px; }
1363
+ .git-cards { display: grid; gap: 10px; }
1364
+ .text-btn { font: inherit; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
1365
+ /* People: who is here and what each is on. Access and sharing are in Session settings. */
1366
+ .pm-list { padding: 6px 8px 8px; display: flex; flex-direction: column; }
1367
+ .pm-list .pm-open { padding: 7px 8px; }
1368
+ .pm-list .pm-focus { padding: 0 8px 6px 50px; }
1369
+ .pm-list .pm-empty { padding: 6px 8px 8px; }
1370
+ .pm-list .pm-sep { margin: 6px 8px; }
1371
+
1372
+ /* Boxes under each person (boxes.js; docs/mockups/2026-10-16-boxes.html, option C). A box is someone's
1373
+ unfinished work on a file: amber, apart from a claim's violet. Its change opens in place, under its row. */
1374
+ :root { --box: var(--warn); }
1375
+ .pm-boxsum { color: var(--muted); font-size: 12px; }
1376
+ .pm-boxes { display: grid; gap: 2px; padding: 0 8px 8px 50px; min-width: 0; }
1377
+ .pm-box { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; height: 28px; padding: 0 6px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
1378
+ .pm-box:hover, .pm-box:focus-visible, .pm-box[aria-expanded="true"] { background: var(--panel-2); }
1379
+ .pm-box svg { width: 13px; height: 13px; flex: none; color: var(--box); }
1380
+ .pm-box-name { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
1381
+ .bx-delta { margin-left: auto; flex: none; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
1382
+ .bx-delta .add, .bx-head .add { color: var(--ok); }
1383
+ .bx-delta .del, .bx-head .del { color: var(--bad); }
1384
+ .bx-open { margin: 2px 0 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; min-width: 0; }
1385
+ .bx-head { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; font-size: 11.5px; line-height: 1.45; color: var(--muted); border-bottom: 1px solid var(--border); }
1386
+ .bx-head b { color: var(--text); font-weight: 600; }
1387
+ .bx-ico { display: grid; place-items: center; flex: none; padding-top: 2px; color: var(--box); }
1388
+ .bx-ico svg { width: 13px; height: 13px; }
1389
+ .bx-what { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
1390
+ .bx-head .bx-delta { padding-top: 1px; }
1391
+ .bx-diff { margin: 0; padding: 4px 0; max-height: 240px; overflow: auto; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; }
1392
+ .bx-diff .ln { display: block; padding: 0 8px; white-space: pre; min-width: max-content; }
1393
+ .bx-diff .ln i { display: inline-block; width: 14px; font-style: normal; color: var(--muted); user-select: none; }
1394
+ .bx-diff .ctx { color: var(--muted); }
1395
+ .bx-diff .add { background: light-dark(#dcecdf, #1f4a2e); }
1396
+ .bx-diff .add i { color: var(--ok); }
1397
+ .bx-diff .del { background: light-dark(#f6e0dd, #55262a); }
1398
+ .bx-diff .del i { color: var(--bad); }
1399
+ .bx-diff .hunk { color: var(--faint); font-family: var(--sans); font-size: 11px; padding: 2px 8px; }
1400
+ .bx-diff .hunk:not(:first-child) { margin-top: 4px; border-top: 1px dashed var(--border); padding-top: 4px; }
1401
+ .bx-none { margin: 0; padding: 8px; font-size: 12px; color: var(--muted); }
1402
+ .bx-foot { display: grid; grid-template-columns: minmax(0, 1fr); padding: 6px 8px 8px; border-top: 1px solid var(--border); }
1403
+ .bx-foot .btn, .bx-unpack { width: 100%; height: 26px; font-size: 12px; font-weight: 600; gap: 6px; }
1404
+ .bx-foot .btn svg, .bx-unpack svg { width: 13px; height: 13px; flex: none; }
1405
+ .bx-unpack { margin: 2px 0 4px; color: var(--box); border-color: color-mix(in srgb, var(--box) 45%, var(--border-strong)); }
1406
+ .bx-asked { display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; font-size: 12px; color: var(--muted); }
1407
+ .bx-asked svg { width: 13px; height: 13px; flex: none; }
1408
+ .t-badge.box { background: color-mix(in srgb, var(--box) 16%, transparent); color: var(--box); }
1409
+ .t-badge.box.own { background: color-mix(in srgb, var(--box) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--box) 40%, transparent); }
1410
+ .t-row.ghost .t-name { color: var(--muted); font-style: italic; }
1411
+ .t-badge.box.inside { background: transparent; border: 1px dashed color-mix(in srgb, var(--box) 45%, transparent); }
1412
+ .pm-what { color: var(--text); }
1413
+ .pm-dm { opacity: .55; }
1414
+ .pm-row:hover .pm-dm, .pm-dm:focus-visible { opacity: 1; }
1415
+ .people-menu .pm-foot { justify-content: flex-start; padding: 8px; }
1416
+ .people-menu .pm-foot .btn { gap: 6px; }
1417
+ .people-menu .pm-foot .btn svg { width: 14px; height: 14px; }
1418
+ .session-settings { width: min(920px, 100%); height: min(640px, calc(100vh - 48px)); padding: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; }
1419
+ .ss-nav { display: flex; flex-direction: column; gap: 2px; padding: 22px 12px; background: var(--panel-2); border-right: 1px solid var(--border); min-height: 0; overflow-y: auto; }
1420
+ .ss-nav h3 { margin: 0 10px 2px; font-size: 16px; }
1421
+ .ss-nav .lead { margin: 0 10px 16px; font-size: 12px; }
1422
+ .ss-tabs { display: flex; flex-direction: column; gap: 2px; }
1423
+ .ss-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
1424
+ .ss-tab svg { flex: none; width: 16px; height: 16px; }
1425
+ .ss-tab:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
1426
+ .ss-tab.on { color: var(--text); background: var(--panel); border-color: var(--border); font-weight: 600; }
1427
+ .ss-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
1428
+ .ss-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
1429
+ .ss-head { position: relative; padding: 20px 56px 14px 24px; border-bottom: 1px solid var(--border); }
1430
+ .ss-head h4 { margin: 0; font-size: 15px; font-weight: 600; }
1431
+ .ss-head h3 { margin: 0 0 2px; }
1432
+ .ss-head .lead { margin: 0; }
1433
+ .ss-close { position: absolute; top: 14px; right: 14px; }
1434
+ .ss-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 16px; }
1435
+ .ss-body .pm-section { padding: 14px 16px 8px; }
1436
+ .ss-body > .pm-empty { padding: 18px 16px; }
1437
+ .ss-body[data-tab="chat"] .pm-title { display: none; }
1438
+ @media (max-width: 720px) {
1439
+ .session-settings { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 32px); }
1440
+ .ss-nav { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 10px 10px; }
1441
+ .ss-nav .lead { display: none; }
1442
+ .ss-tabs { flex-direction: row; overflow-x: auto; }
1443
+ .ss-tab { width: auto; flex: none; }
1444
+ }
1445
+ .ss-body .pm-foot { border-top: 1px solid var(--border); margin-top: 6px; }
1446
+ @media (prefers-reduced-motion: reduce) {
1447
+ .ws-body, .tree-scroll { transition: none; }
1448
+ }
1449
+
1450
+
1451
+ /* Custom dropdowns (see startDropdowns in common.js) */
1452
+ select.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0; }
1453
+ .dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
1454
+ .dd-btn:not(.input) { height: 28px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--border); background: var(--panel); font-size: 13px; }
1455
+ .dd-btn .dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1456
+ .dd-btn svg { width: 14px; height: 14px; flex: none; color: var(--muted); transition: transform .15s; }
1457
+ .dd-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); background: var(--panel); }
1458
+ .dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
1459
+ .dd-btn:hover:not(:disabled) { border-color: var(--accent); }
1460
+ .dd-btn:disabled { opacity: .6; cursor: default; }
1461
+ .dd-menu {
1462
+ position: fixed; z-index: 1000; max-height: 280px; max-width: min(420px, calc(100vw - 16px)); overflow-y: auto;
1463
+ padding: 4px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius);
1464
+ box-shadow: var(--shadow-pop); animation: dd-in .12s ease-out;
1465
+ }
1466
+ @keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
1467
+ .dd-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 4px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
1468
+ .dd-item.active { background: var(--panel-2); }
1469
+ .dd-item.on { font-weight: 600; }
1470
+ .dd-item svg { width: 14px; height: 14px; flex: none; visibility: hidden; }
1471
+ .dd-item.on svg { visibility: visible; color: var(--accent); }
1472
+ .dd-item[aria-disabled="true"] { opacity: .5; cursor: default; }
1473
+
1474
+ /* Sign-in screen */
1475
+ .signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
1476
+ .signin-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 36px 28px; }
1477
+ .signin-card h1 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
1478
+ .signin-card p { margin: 0; }
1479
+ .signin-mark svg { width: 56px; height: 56px; }
1480
+ .signin-note { color: var(--warn); }
1481
+ .signin-btn { width: 100%; justify-content: center; }
1482
+ .signin-code { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: .12em; padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); }
1483
+ .signin-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
1484
+ .signin-wait { margin: 0; font-size: 13.5px; }
1485
+
1486
+
1487
+ /* ================================================================ updates and what's new */
1488
+ .pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); vertical-align: 1px; }
1489
+ .pill.warn { background: color-mix(in srgb, var(--warn) 16%, var(--panel)); color: var(--warn); }
1490
+
1491
+ /* the bar across the top when a newer Quilt is out */
1492
+ body.has-update { --update-bar: 44px; }
1493
+ body.has-update #app { padding-top: var(--update-bar); } /* padding, not margin: a margin would collapse to the body and make the document scroll */
1494
+ #update-bar {
1495
+ position: fixed; top: 0; left: 0; right: 0; height: var(--update-bar); z-index: 25;
1496
+ display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px;
1497
+ background: var(--text); color: var(--bg); font-size: 13px; border-bottom: 1px solid var(--border-strong);
1498
+ box-shadow: inset 0 -3px 0 var(--mark-accent);
1499
+ padding-bottom: 3px;
1500
+ }
1501
+ /* the mark's corner piece: a new piece is ready */
1502
+ #update-bar .ub-dot { width: 11px; height: 11px; background: var(--mark-accent); clip-path: polygon(100% 0, 100% 100%, 0 100%); border-radius: 0 0 2px 0; flex: none; }
1503
+ #update-bar .ub-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1504
+ #update-bar .ub-text b { font-weight: 600; }
1505
+ #update-bar .btn { color: var(--bg); border-color: transparent; text-decoration: none; }
1506
+ #update-bar .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
1507
+ #update-bar .btn.primary { background: var(--bg); color: var(--text); }
1508
+ #update-bar .btn.primary:hover { background: var(--panel-2); }
1509
+ #update-bar .ub-x { opacity: .7; } #update-bar .ub-x:hover { opacity: 1; }
1510
+ /* "Don't show this again": hides the bar until a newer release (releases.js). */
1511
+ #update-bar .ub-never { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 12.5px; white-space: nowrap; opacity: .8; cursor: pointer; }
1512
+ #update-bar .ub-never:hover, #update-bar .ub-never:focus-within { opacity: 1; }
1513
+ #update-bar .ub-never input { width: 14px; height: 14px; margin: 0; accent-color: var(--mark-accent); cursor: pointer; }
1514
+ #update-bar .ub-short { display: none; }
1515
+ /* Narrow windows keep the message readable: a shorter label, then (phone-narrow) no What's new, which opens by itself. */
1516
+ @media (max-width: 760px) {
1517
+ #update-bar .ub-long { display: none; }
1518
+ #update-bar .ub-short { display: inline; }
1519
+ }
1520
+ @media (max-width: 560px) {
1521
+ #update-bar [data-release-notes] { display: none; }
1522
+ #update-bar .ub-text { min-width: 7em; }
1523
+ }
1524
+ /* "Update Quilt": one button that becomes its own progress, or the error with a way out */
1525
+ .update-ctl { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
1526
+ .update-ctl .btn { white-space: nowrap; }
1527
+ .update-ctl .btn:disabled { opacity: 1; cursor: progress; }
1528
+ .update-ctl .qm-inline { width: 14px; height: 14px; margin: 0; flex: none; }
1529
+ .update-err { font-size: 12.5px; color: var(--bad); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1530
+ #update-bar .update-err { color: var(--bg); opacity: .9; }
1531
+ .rn-rel-head .update-ctl { margin-left: auto; }
1532
+ .rn-rel-head .update-ctl .btn { margin-left: 0; }
1533
+
1534
+ /* the quilt pattern: ink patches with seams between them, like the mark, and one vermilion
1535
+ half-square in the corner */
1536
+ .quilt-patch {
1537
+ background-color: #2a2840;
1538
+ background-image:
1539
+ linear-gradient(to right, #1d1b2e 4px, transparent 4px),
1540
+ linear-gradient(to bottom, #1d1b2e 4px, transparent 4px);
1541
+ background-size: 28px 28px;
1542
+ }
1543
+ .quilt-patch::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: var(--mark-accent); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
1544
+ .quilt-stitch { position: absolute; inset: 12px; border: 2px dashed rgba(247, 243, 236, .45); border-radius: 12px; pointer-events: none; }
1545
+
1546
+ /* settings in a pop-up (from inside a session): the Settings cards on a scrolling sheet */
1547
+ .settings-back { z-index: 30; }
1548
+ .ask-back { z-index: 40; } /* confirm dialogs (Shut down, sign out…) sit on top of the Settings pop-up */
1549
+ .settings-modal { position: relative; display: flex; flex-direction: column; width: min(900px, 100%); height: 86vh; max-height: 100%; background: var(--canvas); border-radius: 14px; box-shadow: 0 30px 70px -30px rgba(29, 27, 46, .6), 0 0 0 1px var(--border-strong); overflow: hidden; }
1550
+ .settings-head { position: relative; flex: none; padding: 22px 64px 16px 28px; border-bottom: 1px solid var(--border); }
1551
+ .settings-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
1552
+ .settings-head h2 svg { width: 20px; height: 20px; color: var(--muted); }
1553
+ .settings-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
1554
+ .settings-close { position: absolute; top: 14px; right: 14px; }
1555
+ .settings-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 28px; overscroll-behavior: contain; } /* positioned, so the hidden toggle inputs scroll with the body instead of stretching the sheet */
1556
+ .settings-body .settings-sec:last-child { margin-bottom: 0; }
1557
+ @media (max-width: 760px) {
1558
+ .settings-modal { height: 94vh; border-radius: 10px; }
1559
+ .settings-body { padding: 14px 14px 20px; }
1560
+ .settings-body .settings-sec { gap: 14px; padding: 18px 16px; }
1561
+ }
1562
+
1563
+ /* the release notes pop-up: 50vw × 80vh, the logo on top, scrolling notes below */
1564
+ .rn-back { z-index: 40; }
1565
+ .rn { position: relative; width: 50vw; min-width: min(560px, 100%); max-width: 100%; height: 80vh; max-height: 100%; padding: 26px; border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(29, 27, 46, .6), 0 1px 0 var(--border-strong); overflow: hidden; }
1566
+ .rn-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--panel); border-radius: 10px; box-shadow: 0 10px 30px -22px rgba(29, 27, 46, .5); overflow: hidden; }
1567
+ .rn-head { position: relative; flex: none; text-align: center; padding: 30px 56px 18px; border-bottom: 1px solid var(--border); }
1568
+ .rn-logo .qm-word { height: 52px; width: auto; }
1569
+ .rn-head h2 { margin: 10px 0 2px; font-size: 22px; }
1570
+ .rn-lead { margin: 0; color: var(--muted); font-size: 13.5px; }
1571
+ .rn-lead b { color: var(--text); font-weight: 600; }
1572
+ .rn-close { position: absolute; top: 12px; right: 12px; }
1573
+ .rn-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 32px 28px; overscroll-behavior: contain; }
1574
+ .rn-rel { padding: 22px 0 20px; border-bottom: 1px dashed var(--border-strong); }
1575
+ .rn-rel:last-of-type { border-bottom: 0; }
1576
+ .rn-rel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
1577
+ .rn-rel-head .btn { margin-left: auto; text-decoration: none; }
1578
+ /* a version as a patch: ink, stitched, with the mark's vermilion corner */
1579
+ .rn-patch { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 14px 0 12px; border-radius: 5px; font-family: var(--mono); font-weight: 600; font-size: 14px; color: #f7f3ec; background: #1d1b2e; border: 2px dashed rgba(247, 243, 236, .35); overflow: hidden; }
1580
+ .rn-patch::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; background: var(--mark-accent); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
1581
+ .rn-when { color: var(--muted); font-size: 13px; }
1582
+ .rn-tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--panel)); padding: 2px 8px; border-radius: 999px; }
1583
+ .rn-latest { margin: 14px -14px 0; padding: 18px 14px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--mark-accent) 6%, var(--panel)); }
1584
+ .rn-sum { margin: 0 0 10px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
1585
+ .rn-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
1586
+ .rn-list li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
1587
+ .rn-list li b { color: var(--text); font-weight: 600; }
1588
+ /* bullets are patches; the first one in each list is the vermilion half-square */
1589
+ .rn-list li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 8px; height: 8px; border-radius: 1.5px; background: var(--mark-ink); }
1590
+ .rn-list li:first-child::before { background: var(--mark-accent); clip-path: polygon(100% 0, 100% 100%, 0 100%); border-radius: 0 0 1.5px 0; }
1591
+ .rn-list code { font-size: 12px; background: var(--panel-2); padding: 1px 5px; border-radius: 3px; color: var(--text); }
1592
+ .rn-foot { padding: 22px 0 4px; text-align: center; color: var(--faint); font-size: 12.5px; }
1593
+ @media (max-width: 760px) {
1594
+ .rn { width: 100%; min-width: 0; height: 92vh; padding: 14px; }
1595
+ .rn-body { padding: 4px 18px 20px; }
1596
+ .rn-head { padding: 24px 48px 14px; }
1597
+ #update-bar .ub-text { font-size: 12px; }
1598
+ }
1599
+
1600
+ /* task board: four columns, shared with the session. It always fits: when the columns
1601
+ can't all sit side by side, session.js folds some to a thin strip (layoutBoard), and
1602
+ below one column beside three strips it stacks them. Its head follows the board's own
1603
+ width (a container), since the file tree and chat can leave it narrow in a wide window. */
1604
+ #tasks-btn { gap: 5px; }
1605
+ #tasks-btn svg { width: 18px; height: 18px; }
1606
+ #tasks-btn .tasks-n { margin-left: 3px; }
1607
+ #tasks-btn.on { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
1608
+ .tasks-n { font-size: 11px; font-weight: 700; background: var(--coral); color: var(--on-accent); border-radius: 999px; min-width: 18px; padding: 0 6px; line-height: 18px; text-align: center; }
1609
+ .board { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; container: board / inline-size; }
1610
+ .board-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--border); }
1611
+ .board-title { flex: none; margin: 0; font-size: 16px; }
1612
+ /* The add form is one bar: task text, then who it's for, then Add. */
1613
+ .board-add {
1614
+ flex: 1; display: flex; align-items: center; gap: 0; min-width: 0; padding: 3px;
1615
+ border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel);
1616
+ transition: border-color .15s, box-shadow .15s;
1617
+ }
1618
+ .board-add:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
1619
+ .board-add-task { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px; cursor: text; }
1620
+ .board-add-task svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
1621
+ .board-add-task input { flex: 1; min-width: 0; height: 30px; padding: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--text); }
1622
+ .board-add-task input::placeholder { color: var(--faint); }
1623
+ .board-add-assign { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 12px; margin-right: 4px; border-left: 1px solid var(--border); }
1624
+ .board-add-assign label { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
1625
+ .board-add .dd-btn.task-add-assign { width: 12rem; height: 28px; border-color: transparent; background: var(--panel-2); }
1626
+ .board-add .dd-btn.task-add-assign:hover, .board-add .dd-btn.task-add-assign[aria-expanded="true"] { border-color: var(--accent); }
1627
+ /* Filter: search and Show behind one button (board.js filterHtml). Accented while it hides
1628
+ tickets, and its label says what's on, so a filtered board never passes for a short one. */
1629
+ .board-filter { position: relative; flex: none; display: flex; align-items: center; gap: 2px; }
1630
+ .board-filter-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 22rem; }
1631
+ .board-filter-btn svg { width: 15px; height: 15px; flex: none; }
1632
+ .board-filter-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1633
+ .board-filter.on .board-filter-btn { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); color: var(--text); font-weight: 600; }
1634
+ .board-filter-x { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--accent); display: grid; place-items: center; cursor: pointer; }
1635
+ .board-filter-x svg { width: 12px; height: 12px; }
1636
+ .board-filter-x:hover, .board-filter-x:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); }
1637
+ .board-filter-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 300px; max-width: calc(100vw - 24px); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
1638
+ .board-search {
1639
+ display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px;
1640
+ background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: text;
1641
+ }
1642
+ .board-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
1643
+ .board-search svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
1644
+ .board-search input { flex: 1; min-width: 0; height: 30px; padding: 0; border: 0; background: transparent; outline: none; font-size: 13.5px; color: var(--text); }
1645
+ .board-search input::placeholder { color: var(--faint); }
1646
+ .board-search-n { flex: none; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
1647
+ .board-search-n:empty { display: none; }
1648
+ .board-filter-hint { margin: -4px 2px 0; font-size: 11.5px; line-height: 1.4; color: var(--faint); }
1649
+ .board-filter-show { display: flex; flex-direction: column; gap: 1px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
1650
+ .board-filter-head { padding: 0 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
1651
+ .board-filter-opt {
1652
+ display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 4px;
1653
+ background: transparent; font: inherit; font-size: 13px; color: var(--text); text-align: left; cursor: pointer;
1654
+ }
1655
+ .board-filter-opt:hover, .board-filter-opt:focus-visible { background: var(--panel-2); outline: none; }
1656
+ .board-filter-opt[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); font-weight: 600; }
1657
+ .bf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1658
+ .bf-n { flex: none; font-size: 11.5px; font-weight: 600; color: var(--muted); }
1659
+ .board-filter-clear { align-self: flex-start; }
1660
+ .board-add .btn { flex: none; height: 30px; padding: 0 12px; }
1661
+ .board-cols { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
1662
+ /* Open columns share the width (320px at least); a folded one is a 44px strip. The two
1663
+ trade places with an animation: layoutBoard only toggles .folded. */
1664
+ .board-col {
1665
+ --col: var(--muted);
1666
+ position: relative; flex: 1 1 0; min-width: 320px; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
1667
+ background: color-mix(in srgb, var(--text) 3.5%, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius);
1668
+ transition: flex-grow .28s cubic-bezier(.2, .8, .2, 1), flex-basis .28s cubic-bezier(.2, .8, .2, 1), min-width .28s cubic-bezier(.2, .8, .2, 1), min-height .28s cubic-bezier(.2, .8, .2, 1), background-color .15s;
1669
+ }
1670
+ .board-col[data-column="doing"] { --col: var(--edit); }
1671
+ .board-col[data-column="qa"] { --col: var(--warn); }
1672
+ .board-col[data-column="done"] { --col: var(--ok); }
1673
+ .board-col.folded { flex: 0 0 44px; min-width: 44px; }
1674
+ .board-col.over, .board-col:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
1675
+ .board-col:focus { outline: none; }
1676
+ .board-col.folded.over { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
1677
+ .board-col h3 { flex: none; margin: 0; padding: 10px 8px 6px 12px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--col); display: flex; align-items: center; gap: 8px; }
1678
+ /* What an open column shows fades in once it has room; a folding one fades out first. */
1679
+ .board-col > .board-list, .board-col > h3 { transition: opacity .16s .12s; }
1680
+ .board-col.folded > .board-list, .board-col.folded > h3 { opacity: 0; visibility: hidden; transition: opacity .1s, visibility 0s .1s; }
1681
+ .board-fold {
1682
+ margin-left: auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent;
1683
+ color: var(--faint); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s;
1684
+ }
1685
+ .board-fold svg { width: 15px; height: 15px; }
1686
+ .board-col:hover .board-fold, .board-fold:focus-visible { opacity: 1; }
1687
+ .board-fold:hover { background: var(--panel); color: var(--text); }
1688
+ @media (hover: none) { .board-fold { opacity: 1; } }
1689
+ /* The strip: count on top, the name running down it, an open icon at the foot. */
1690
+ .board-strip {
1691
+ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0;
1692
+ border: 0; background: transparent; color: var(--col); font: inherit; cursor: pointer; text-align: left;
1693
+ opacity: 0; visibility: hidden; transition: opacity .1s, visibility 0s .1s, background .15s;
1694
+ }
1695
+ .board-col.folded > .board-strip { opacity: 1; visibility: visible; transition: opacity .18s .14s, visibility 0s, background .15s; }
1696
+ .board-strip:hover, .board-strip:focus-visible { background: color-mix(in srgb, var(--col) 9%, transparent); outline: none; }
1697
+ .board-strip:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: inherit; }
1698
+ .board-strip-n {
1699
+ flex: none; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
1700
+ font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--col) 15%, var(--panel)); color: var(--col);
1701
+ }
1702
+ .board-strip-name { flex: 1; min-height: 0; overflow: hidden; writing-mode: vertical-rl; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
1703
+ .board-strip svg { flex: none; width: 16px; height: 16px; color: var(--faint); transition: color .15s; }
1704
+ .board-strip:hover svg { color: var(--col); }
1705
+ /* An empty folded column steps back; one that just got a task pulses its count. */
1706
+ .board-col.folded > .board-strip:has([data-n="0"]) { opacity: .6; }
1707
+ .board-strip.grew .board-strip-n { animation: strip-grew 1.1s cubic-bezier(.2, .8, .2, 1); }
1708
+ @keyframes strip-grew {
1709
+ 0% { transform: scale(1); }
1710
+ 25% { transform: scale(1.3); background: var(--col); color: var(--panel); box-shadow: 0 0 0 6px color-mix(in srgb, var(--col) 22%, transparent); }
1711
+ 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
1712
+ }
1713
+ /* Stacked (too narrow for a column beside three strips): one column open, the others bars. */
1714
+ .board[data-layout="stack"] .board-cols { flex-direction: column; overflow: hidden; gap: 8px; }
1715
+ .board[data-layout="stack"] .board-col { min-width: 0; min-height: 0; }
1716
+ .board[data-layout="stack"] .board-col.folded { flex: 0 0 40px; min-height: 40px; }
1717
+ .board[data-layout="stack"] .board-strip { flex-direction: row; padding: 0 12px; gap: 10px; }
1718
+ .board[data-layout="stack"] .board-strip-name { writing-mode: horizontal-tb; flex: 1; }
1719
+ .board[data-layout="stack"] .board-strip-n { order: 1; }
1720
+ .board[data-layout="stack"] .board-strip svg { order: 2; transform: rotate(90deg); }
1721
+ .board[data-layout="stack"] .board-fold svg { transform: rotate(90deg); }
1722
+ /* A render or resize lands in place (layoutBoard), only opening or folding animates. */
1723
+ .board-cols.still .board-col, .board-cols.still .board-col > *, .board-cols.still .board-col.folded > * { transition: none; }
1724
+ @media (prefers-reduced-motion: reduce) {
1725
+ .board-col, .board-col > h3, .board-col > .board-list, .board-strip, .board-col.folded > .board-strip { transition: none; }
1726
+ .board-strip.grew .board-strip-n { animation: none; }
1727
+ }
1728
+ .board-n { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0; text-transform: none; }
1729
+ /* Lists scroll up and down only. Sideways gestures must reach .board-cols, so
1730
+ x stays hidden and overscroll is contained on y alone. */
1731
+ .board-list { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-x: auto; overscroll-behavior-y: contain; padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; }
1732
+ .board-empty { margin: 8px 4px; color: var(--faint); font-size: 12.5px; }
1733
+ .task { background: var(--panel); border: 1px solid var(--border-strong); border-radius: 4px; box-shadow: var(--shadow); padding: 8px 8px 6px 10px; cursor: grab; }
1734
+ .task.dragging { opacity: .45; }
1735
+ /* The buttons float top right; the title's first line sits beside them and the rest
1736
+ runs the full width of the card underneath. */
1737
+ .task-main { display: flow-root; }
1738
+ /* The negative bottom margin keeps the 26px buttons to the first line of text, so the
1739
+ second line already runs the full width. They sit a little high, leaving a gap above it. */
1740
+ .task-main > .task-tools { float: right; margin: -4px -2px -8px 8px; }
1741
+ .task-title { margin: 3px 0 0; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; cursor: text; }
1742
+ /* While renaming, the box takes the row and the buttons sit after it. */
1743
+ .task-main:has(> .task-edit) { display: flex; align-items: flex-start; gap: 2px; }
1744
+ .task-main:has(> .task-edit) > .task-tools { float: none; order: 1; margin: 0; }
1745
+ .task-edit { flex: 1; min-width: 0; height: 32px; margin: 0; padding: 0 8px; border-radius: 4px; border: 1px solid var(--accent); background: var(--panel); outline: none; }
1746
+ .task-tools, .task-moves { display: flex; align-items: center; gap: 4px; flex: none; }
1747
+ :is(.task, .task-archived) button.task-icon {
1748
+ width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px;
1749
+ background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer;
1750
+ }
1751
+ :is(.task, .task-archived) button.task-icon:hover { background: var(--panel-2); }
1752
+ :is(.task, .task-archived) button.task-icon svg { width: 16px; height: 16px; overflow: visible; }
1753
+ :is(.task, .task-archived) button.task-x {
1754
+ width: 22px; height: 22px; border-radius: 999px;
1755
+ background: var(--panel-2); color: var(--text);
1756
+ }
1757
+ :is(.task, .task-archived) button.task-x svg { width: 13px; height: 13px; }
1758
+ :is(.task, .task-archived) button.task-x:hover { background: color-mix(in srgb, var(--bad) 16%, var(--panel)); color: var(--bad); }
1759
+ .task button.task-move {
1760
+ height: 24px; padding: 0 8px 0 6px; border: 0; border-radius: 999px; gap: 3px;
1761
+ background: var(--panel-2); color: var(--text); font-size: 12px; font-weight: 600;
1762
+ display: inline-flex; align-items: center; cursor: pointer;
1763
+ }
1764
+ .task button.task-move svg { width: 14px; height: 14px; flex: none; }
1765
+ .task button.task-move:hover { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
1766
+ /* A card's ⋯ menu: it hangs off the button, in the page, so a column's scroll doesn't clip it. */
1767
+ .popover.task-menu { position: fixed; top: auto; right: auto; width: 168px; }
1768
+ .task-menu .pop-item.danger:hover, .task-menu .pop-item.danger:focus-visible { background: color-mix(in srgb, var(--bad) 14%, var(--panel)); color: var(--bad); }
1769
+ .task-menu .pop-item.danger:hover svg, .task-menu .pop-item.danger:focus-visible svg { color: var(--bad); }
1770
+ /* Archived tasks: shown in place of the columns, one row each. */
1771
+ .board-archive-toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; }
1772
+ .board-archive-toggle svg { width: 15px; height: 15px; }
1773
+ .board-archive-toggle.on { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
1774
+ /* Archived tasks (board.js archivedHtml): a filter in the head, then Finished and Set aside. */
1775
+ .board-archive-search {
1776
+ flex: 1; min-width: 0; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px;
1777
+ background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: text;
1778
+ }
1779
+ .board-archive-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
1780
+ .board-archive-search svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
1781
+ .board-archive-search input { flex: 1; min-width: 0; height: 30px; padding: 0; border: 0; background: transparent; outline: none; font-size: 13.5px; color: var(--text); }
1782
+ .board-archive-search input::placeholder { color: var(--faint); }
1783
+ .board.archived .board-filter { margin-left: auto; }
1784
+ .board-archive { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 24px; }
1785
+ .board-archive-lead { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
1786
+ .board-archive-none { margin: 24px 0; color: var(--muted); font-size: 13px; }
1787
+ .archive-group + .archive-group { margin-top: 16px; }
1788
+ .archive-group > summary {
1789
+ display: flex; align-items: baseline; gap: 8px; padding: 4px 6px; margin: 0 -6px 6px; border-radius: 4px;
1790
+ list-style: none; cursor: pointer; user-select: none;
1791
+ }
1792
+ .archive-group > summary::-webkit-details-marker { display: none; }
1793
+ .archive-group > summary:hover { background: var(--panel-2); }
1794
+ .archive-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1795
+ .archive-caret { align-self: center; display: grid; color: var(--faint); transition: transform .15s ease; }
1796
+ .archive-caret svg { width: 13px; height: 13px; }
1797
+ .archive-group[open] .archive-caret { transform: rotate(90deg); }
1798
+ .archive-group-name { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
1799
+ .archive-group[data-group="finished"] .archive-group-name { color: var(--ok); }
1800
+ .archive-group-hint { font-size: 12px; color: var(--faint); }
1801
+ /* Each group is a grid of cards as wide as it has room for (one column when narrow).
1802
+ A card's actions sit in its foot, right under its task, at the bottom of the row. */
1803
+ .board-archive-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
1804
+ .task-archived {
1805
+ position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 8px; min-width: 0;
1806
+ background: var(--panel); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); transition: border-color .15s;
1807
+ }
1808
+ .task-archived:hover { border-color: var(--border-strong); }
1809
+ .task-archived-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
1810
+ /* Three lines at most; the whole title is its tooltip, and the filter searches all of it. */
1811
+ .task-archived-title { font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
1812
+ .task-archived-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--faint); }
1813
+ .arch-col {
1814
+ --c: var(--muted); display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px;
1815
+ font-size: 11px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
1816
+ }
1817
+ .arch-col[data-column="doing"] { --c: var(--edit); }
1818
+ .arch-col[data-column="qa"] { --c: var(--warn); }
1819
+ .arch-verified { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--ok); cursor: help; }
1820
+ .arch-verified svg { width: 12px; height: 12px; }
1821
+ .arch-who { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
1822
+ .arch-who i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
1823
+ .task-archived-actions { flex: none; display: flex; align-items: center; gap: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
1824
+ .arch-restore { order: -1; margin-right: auto; display: inline-flex; align-items: center; gap: 6px; border-color: var(--border); }
1825
+ .arch-restore svg { width: 14px; height: 14px; }
1826
+ .arch-restore:hover { border-color: var(--border-strong); }
1827
+ /* Removing asks first: the row's actions give way to the question. */
1828
+ .arch-confirm { display: none; flex-wrap: wrap; align-items: center; gap: 6px; flex: none; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--bad) 30%, var(--border)); font-size: 12.5px; color: var(--bad); }
1829
+ .arch-confirm span { flex-basis: 100%; }
1830
+ .task-archived.confirming { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); background: color-mix(in srgb, var(--bad) 5%, var(--panel)); }
1831
+ .task-archived.confirming .task-archived-actions { display: none; }
1832
+ .task-archived.confirming .arch-confirm { display: flex; }
1833
+ .arch-confirm .btn.danger { border-color: color-mix(in srgb, var(--bad) 50%, var(--border)); }
1834
+ .arch-confirm .btn.ghost { color: var(--text); }
1835
+ .arch-confirm .btn.danger:hover { background: var(--bad); color: var(--panel); }
1836
+ .task-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 28px; }
1837
+ .task.mine { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 55%, var(--panel)), var(--shadow); }
1838
+ .task.mine-ai { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--violet) 55%, var(--panel)), var(--shadow); }
1839
+ .task .dd-btn.task-assign, .task select.task-assign { width: 100%; margin-top: 8px; height: 26px; font-size: 12px; }
1840
+ .task-files { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
1841
+ /* What the agent ran and saw before moving the card to Done. */
1842
+ .task-verified { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted, #6b6b6b); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
1843
+ .task-verified::before { content: '✓ '; }
1844
+ /* Agent change description / self-validation notes on a QA card. */
1845
+ .task-qa-notes { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted, #6b6b6b); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
1846
+ .task-qa-notes::before { content: 'QA: '; font-weight: 600; color: var(--warn); }
1847
+ .task-notes-back { opacity: 0; transition: opacity .2s ease; }
1848
+ .task-notes-back.is-open { opacity: 1; }
1849
+ .task-notes-back .task-notes-modal { opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .22s ease, transform .22s ease; }
1850
+ .task-notes-back.is-open .task-notes-modal { opacity: 1; transform: none; }
1851
+ @media (prefers-reduced-motion: reduce) {
1852
+ .task-notes-back, .task-notes-back .task-notes-modal { transition: none; }
1853
+ }
1854
+ .task-notes-modal { width: min(960px, 100%); }
1855
+ .task-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: min(40vh, 420px); overflow: auto; }
1856
+ .task-comment { background: var(--panel-2); border-radius: 6px; padding: 8px 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
1857
+ .task-comment-head { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
1858
+ .task-comment-head b { color: var(--text); font-weight: 600; }
1859
+ .task-comment .md p { margin: 0; }
1860
+ .task-comment-form textarea { width: 100%; resize: vertical; min-height: 56px; font: inherit; font-size: 14px; }
1861
+ .task-notes-btn { position: relative; }
1862
+ .task-notes-btn:not(.on) { opacity: .55; }
1863
+ .task-count { position: absolute; top: -3px; right: -4px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-size: 9px; line-height: 14px; text-align: center; font-weight: 600; }
1864
+ .task-notes-sec { margin: 0 0 14px; }
1865
+ .task-notes-sec h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
1866
+ .task-notes-body { white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; background: var(--panel-2); border-radius: 6px; padding: 12px 14px; max-height: min(72vh, 760px); overflow: auto; }
1867
+ .task-notes-body img, .md img.md-img { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: 8px; }
1868
+ .task button.task-recur.on { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
1869
+ .task-cron-form { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
1870
+ .task-cron-row { display: flex; gap: 4px; align-items: center; }
1871
+ .task-cron {
1872
+ flex: 1; min-width: 0; height: 24px; padding: 0 8px; border: 1px solid var(--border); border-radius: 4px;
1873
+ background: var(--panel); font-size: 12px; color: var(--text);
1874
+ }
1875
+ .task-cron:focus { border-color: var(--accent); outline: none; }
1876
+ .task-cron-set {
1877
+ height: 24px; padding: 0 8px; border: 0; border-radius: 999px;
1878
+ background: var(--panel-2); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer;
1879
+ }
1880
+ .task-cron-set:hover { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
1881
+ .task-cron-read { font-size: 11px; color: var(--muted); }
1882
+ .task-file-chip {
1883
+ display: inline-flex; align-items: center; gap: 2px; max-width: 100%;
1884
+ padding: 0 2px 0 6px; border-radius: 999px; background: var(--panel-2);
1885
+ font-family: var(--mono); font-size: 11px;
1886
+ }
1887
+ .task-file-chip code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; background: none; padding: 0; }
1888
+ .task-file-x {
1889
+ width: 18px; height: 18px; padding: 0; border: 0; border-radius: 999px;
1890
+ background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
1891
+ }
1892
+ .task-file-x svg { width: 11px; height: 11px; }
1893
+ .task-file-x:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
1894
+ .task-file-form { margin-top: 4px; }
1895
+ .task-file {
1896
+ width: 100%; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px;
1897
+ background: transparent; font-size: 12px; font-family: var(--mono); color: var(--text);
1898
+ }
1899
+ .task-file::placeholder { color: var(--faint); font-family: var(--sans); }
1900
+ .task-file:focus { border-color: var(--border-strong); background: var(--panel); outline: none; }
1901
+ .task-by { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--faint); }
1902
+ /* Too narrow for the head on one line: Tasks, Show and Archived on top, the add form under them. */
1903
+ /* The archive's head wraps its filter onto a row of its own when narrow. */
1904
+ @container board (max-width: 1040px) {
1905
+ .board.archived .board-head { flex-wrap: wrap; row-gap: 8px; }
1906
+ .board-archive-search { order: 1; flex-basis: 100%; max-width: none; }
1907
+ }
1908
+ /* Narrower: the add form keeps its row, its neighbours give up their words. */
1909
+ @container board (max-width: 900px) {
1910
+ .board-add-assign > label { display: none; }
1911
+ .board-add .dd-btn.task-add-assign { width: 9.5rem; }
1912
+ .board-filter:not(.on) .board-filter-label { display: none; }
1913
+ .board-filter.on .board-filter-btn { max-width: 11rem; }
1914
+ .board-archive-toggle:not(.on) > span:not(.board-n) { display: none; }
1915
+ }
1916
+ /* Phone-narrow: the add form takes a row of its own, under Tasks, Filter and Archived. */
1917
+ @container board (max-width: 560px) {
1918
+ .board-head { flex-wrap: wrap; row-gap: 8px; }
1919
+ .board-filter { margin-left: auto; }
1920
+ .board-add { order: 1; flex-basis: 100%; flex-wrap: wrap; row-gap: 4px; }
1921
+ .board-add-task { flex-basis: 100%; }
1922
+ .board-add-assign { flex: 1; min-width: 0; padding-left: 8px; border-left: 0; }
1923
+ .board-add .dd-btn.task-add-assign { flex: 1; min-width: 0; width: auto; }
1924
+ }
1925
+ /* access types: the invite panel, the people menu's Access section, and a chat you can't post to */
1926
+ .inv-sub { margin: 14px 0 6px; }
1927
+ .inv-section #inv-type { width: 100%; }
1928
+ .inv-section .hint { margin: 6px 0 0; }
1929
+ .inv-list { display: flex; flex-direction: column; gap: 4px; }
1930
+ .inv-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
1931
+ .inv-row .avatar { width: 24px; height: 24px; font-size: 11px; }
1932
+ .inv-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1933
+ .inv-section .error:empty { display: none; }
1934
+ .pm-access .pm-now { flex-basis: 100%; }
1935
+ .pm-access select.input { flex: 1; }
1936
+ .pm-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
1937
+ .pm-admit { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px; font-size: 12.5px; color: var(--muted); }
1938
+ .pm-admit > span { font-weight: 600; color: var(--text); }
1939
+ .pm-admit .input { height: 30px; width: 100%; font-size: 12.5px; }
1940
+ .pm-gh label > span { font-weight: 600; color: var(--text); }
1941
+ .pm-gh-row { display: flex; gap: 6px; }
1942
+ .pm-gh .hint { font-size: 12px; color: var(--muted); }
1943
+ .composer.muted .box { opacity: .6; }
1944
+ .composer.muted textarea { cursor: not-allowed; }
1945
+
1946
+ /* ---------- workspaces ---------- */
1947
+ .ws-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
1948
+ .ws-card { display: flex; flex-direction: column; min-height: 230px; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); cursor: pointer; text-align: left; }
1949
+ .ws-card:hover { border-color: var(--border-strong); }
1950
+ .ws-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1951
+ .ws-cover { position: relative; height: 64px; background: var(--c, var(--panel-2)); }
1952
+ .ws-mark { position: absolute; left: 14px; top: 14px; z-index: 1; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); font-weight: 700; font-size: 15px; }
1953
+ .ws-mark.big { position: static; width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
1954
+ .ws-live { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(255, 255, 255, .9); }
1955
+ .ws-card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 12px; }
1956
+ .ws-card-body h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
1957
+ .ws-foot .spacer, .sc .who .spacer, .modal .actions .spacer { flex: 1; }
1958
+ .ws-space { height: 18px; font-size: 10.5px; }
1959
+ /* The later .pill rule makes pills inline-block, which hides their dot. */
1960
+ .ws-live, .ws-space, .sc .pill { display: inline-flex; align-items: center; gap: 5px; }
1961
+ .ws-space.coral { color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--panel)); }
1962
+ .ws-desc { margin: 0; flex: 1; color: var(--muted); font-size: 12.5px; }
1963
+ .ws-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
1964
+ .ws-stats b { color: var(--text); font-weight: 600; }
1965
+ .ws-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
1966
+ .ws-card.add { align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; border: 1.5px dashed var(--border-strong); box-shadow: none; background: transparent; color: var(--muted); }
1967
+ .ws-card.add b { color: var(--text); font-weight: 600; }
1968
+ .ws-card.add span { font-size: 12.5px; }
1969
+ .ws-card.add:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); }
1970
+ .ws-plus { width: 46px; height: 46px; border-radius: 50%; border: 1.5px dashed var(--border-strong); display: grid; place-items: center; color: var(--accent); }
1971
+ .ws-plus svg { width: 20px; height: 20px; }
1972
+ .ws-card.form { cursor: default; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
1973
+ /* The form fits the add card's height exactly, so opening it never moves the grid. */
1974
+ .ws-card.form { min-height: 230px; }
1975
+ .ws-card.form .ws-card-body { gap: 2px; padding: 10px 16px 12px; }
1976
+ .ws-card.form .label { margin-top: 4px; }
1977
+ .ws-card.form .input { height: 34px; }
1978
+ .ws-card.form .error { margin: 4px 0 0; min-height: 0; }
1979
+ .ws-card.form .actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: auto; padding-top: 8px; }
1980
+ .ws-filter button { height: 30px; padding: 0 12px; font-size: 12.5px; }
1981
+ .ws-loose { margin-top: 30px; }
1982
+ .ws-loose-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
1983
+ .ws-chips { display: flex; flex-wrap: wrap; gap: 10px; }
1984
+ .ws-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); font-size: 13px; }
1985
+ .ws-chip .folder-ico { width: 28px; height: 28px; }
1986
+ .ws-chip .t { display: flex; flex-direction: column; line-height: 1.3; }
1987
+ .ws-chip .t span { color: var(--muted); font-size: 12px; }
1988
+ .ws-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; color: var(--accent); font-weight: 600; font-size: 12.5px; text-decoration: none; }
1989
+ .ws-back svg { width: 12px; height: 12px; transform: rotate(180deg); }
1990
+ .ws-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
1991
+ .ws-head-t { min-width: 0; }
1992
+ .ws-head-t p { margin: 2px 0 0; }
1993
+ /* What is in the workspace at a glance, under its name. */
1994
+ .ws-statline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
1995
+ .ws-statline b { color: var(--text); font-weight: 600; }
1996
+ .ws-statline .live { display: inline-flex; align-items: center; gap: 6px; }
1997
+ .ws-statline .dot, .sr-who .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
1998
+ /* Sessions and files on the left, the people and agents alongside; one column on a narrower window. */
1999
+ .ws-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
2000
+ .ws-dash .sec:first-child { margin-top: 0; }
2001
+ .ws-main { min-width: 0; }
2002
+ .ws-aside { min-width: 0; position: sticky; top: 0; }
2003
+ .ws-aside .pc-grid { grid-template-columns: minmax(0, 1fr); }
2004
+ @media (max-width: 1100px) { .ws-dash { grid-template-columns: minmax(0, 1fr); } .ws-aside { position: static; } .ws-aside .pc-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
2005
+ /* A session as a row: the name has the room it needs, and Open sits at the end. */
2006
+ .sr-list { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
2007
+ .sr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
2008
+ .sr:last-child { border-bottom: 0; }
2009
+ .sr .folder-ico { width: 28px; height: 28px; }
2010
+ .sr-t { min-width: 0; line-height: 1.35; }
2011
+ .sr-t b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2012
+ .sr-t .mono { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2013
+ .sr-who { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
2014
+ .ws-empty { margin: 0; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 8px; }
2015
+ /* The page fades in once, when it arrives after its loading screen. */
2016
+ .ws-page.enter { animation: page-in .26s ease-out both; }
2017
+ @keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
2018
+ .ws-head h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
2019
+ .ws-head p { margin: 0; color: var(--muted); }
2020
+ .ws-head .acts { margin-left: auto; display: flex; gap: 6px; }
2021
+ .sec { margin-top: 26px; }
2022
+ .sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
2023
+ .pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
2024
+ .sc { display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
2025
+ .sc .top { display: flex; align-items: center; gap: 8px; }
2026
+ .sc .top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
2027
+ .sc .top .folder-ico { width: 28px; height: 28px; }
2028
+ .sc .mono { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2029
+ .sc .who { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 12px; color: var(--muted); }
2030
+ .sc.add, .pc.add { align-items: center; justify-content: center; gap: 6px; border-style: dashed; box-shadow: none; background: transparent; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
2031
+ .sc.add svg, .pc.add svg { width: 18px; height: 18px; color: var(--accent); }
2032
+ /* A person or agent on a workspace's page: avatar, name, access on one line (a grid, so access
2033
+ never wraps under the name); an agent's why-here and Invite to new sessions on a second line
2034
+ across the card (the choice wraps under the pill as a whole when the card is narrow);
2035
+ Remove in the corner, with room kept for it. */
2036
+ .pc { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; align-content: start; column-gap: 12px; row-gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
2037
+ .pc.add { display: flex; }
2038
+ .pc.has-x { padding-right: 44px; }
2039
+ .pc .avatar { width: 40px; height: 40px; font-size: 15px; }
2040
+ .pc .t { min-width: 0; line-height: 1.35; }
2041
+ .pc .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2042
+ .pc .t span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2043
+ .pc .input.sm { height: 28px; width: auto; padding: 0 8px; font-size: 12.5px; }
2044
+ .pc .btn.pc-x { position: absolute; top: 15px; right: 10px; width: 26px; height: 26px; }
2045
+ .pc .ws-scope { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 26px; padding-top: 10px; border-top: 1px solid var(--border); }
2046
+ .pc .ws-scope > span { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); }
2047
+ .pc .ws-scope > .pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; font-size: 11px; color: var(--muted); }
2048
+ .pc .ws-scope > .pill svg { width: 11px; height: 11px; }
2049
+ .pc .ws-scope > .pill.violet { color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--panel)); }
2050
+ .pc .input.xs { height: 26px; width: auto; max-width: 100%; padding: 0 8px; font-size: 12px; }
2051
+ .pc.agent.out { opacity: .7; }
2052
+ .pc.agent.out .avatar { filter: grayscale(1); }
2053
+ @media (max-width: 900px) {
2054
+ .ws-grid { grid-template-columns: 1fr 1fr; }
2055
+ .sc-grid { grid-template-columns: 1fr 1fr; }
2056
+ }
2057
+ @media (max-width: 560px) { .ws-grid, .sc-grid { grid-template-columns: 1fr; } }
2058
+
2059
+ /* ---------- workspace files ---------- */
2060
+ .files-sec, .files-body { border-radius: 10px; transition: outline-color .12s; outline: 2px dashed transparent; outline-offset: 6px; }
2061
+ .files-dragging { outline-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); }
2062
+ .sec-head .sec-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; text-decoration: none; }
2063
+ .sec-head .sec-link svg { width: 12px; height: 12px; }
2064
+ .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-content: start; }
2065
+ .tile { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; text-align: left; font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); cursor: pointer; }
2066
+ .tile:hover { border-color: var(--border-strong); }
2067
+ .tile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
2068
+ .tile .thumb { position: relative; height: 84px; display: grid; place-items: center; overflow: hidden; background: var(--panel-2); color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 600; }
2069
+ .tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
2070
+ .tile .thumb.img { background: linear-gradient(135deg, var(--panel-2), #d9c6ea); }
2071
+ .tile .thumb.vid { background: linear-gradient(135deg, #322d36, #6b5b7e); color: #fff; }
2072
+ .tile .thumb .play svg { width: 22px; height: 22px; }
2073
+ .tile .thumb .stem { max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2074
+ .tile .thumb .badge, .files-list .badge, .fpk-row .badge { font-family: var(--sans); font-size: 9.5px; font-weight: 700; color: #fff; padding: 1px 5px; border-radius: 3px; letter-spacing: .02em; }
2075
+ .tile .thumb .badge { position: absolute; left: 6px; top: 6px; }
2076
+ .tile .thumb .ver { position: absolute; top: 6px; right: 6px; font-family: var(--sans); font-size: 10px; font-weight: 700; color: #1d1b2e; background: rgba(255, 255, 255, .88); padding: 0 6px; border-radius: 999px; }
2077
+ .tile .nm { padding: 8px 10px 2px; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2078
+ .tile .mu { padding: 0 10px 9px; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2079
+ .tile.folder .thumb { background: transparent; border-bottom: 1px solid var(--border); color: var(--accent); }
2080
+ .tile.folder .thumb svg { width: 28px; height: 28px; }
2081
+ .tile.add { position: relative; align-items: center; justify-content: center; gap: 6px; min-height: 134px; padding: 12px; border: 1.5px dashed var(--border-strong); box-shadow: none; background: transparent; color: var(--muted); font-size: 12.5px; text-align: center; }
2082
+ .tile.add:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); }
2083
+ .tile.add .up svg { width: 20px; height: 20px; color: var(--accent); }
2084
+ .tile.add .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; display: none; }
2085
+ .tile.add .bar span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
2086
+ .tile.add[data-busy] { cursor: progress; color: var(--text); }
2087
+ .tile.add[data-busy] .bar { display: block; }
2088
+ .files-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
2089
+ .files-head .t { min-width: 0; }
2090
+ .files-head .hint { margin: 2px 0 0; }
2091
+ .files-head .spacer { flex: 1; }
2092
+ .files-mode button { flex: none; height: 28px; padding: 0 12px; font-size: 12.5px; }
2093
+ .crumbs { margin: 0; font-size: 20px; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
2094
+ .crumbs a { color: var(--text); text-decoration: none; }
2095
+ .crumbs a:hover { color: var(--accent); }
2096
+ .crumbs .sep { color: var(--faint, var(--muted)); font-weight: 400; }
2097
+ .crumbs .here { color: var(--muted); font-weight: 500; }
2098
+ .files-progress:empty { display: none; }
2099
+ /* The preview column is always there on wide windows (empty until a file is picked), so
2100
+ picking a file never reflows the tiles. */
2101
+ .files-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
2102
+ .file-preview.empty { min-height: 220px; justify-content: center; box-shadow: none; background: transparent; border-style: dashed; }
2103
+ .file-preview.empty .hint { margin: 0; text-align: center; }
2104
+ .files-main { min-width: 0; }
2105
+ .files-scroll { overflow-x: auto; padding: 0 3px 3px 0; }
2106
+ .files-list { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
2107
+ .files-list th { white-space: nowrap; text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; border-bottom: 1px solid var(--border); }
2108
+ .files-list td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
2109
+ .files-list tr:last-child td { border-bottom: 0; }
2110
+ .files-list tbody tr { cursor: pointer; }
2111
+ .files-list tbody tr:hover { background: var(--panel-2); }
2112
+ .files-list tbody tr.on { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
2113
+ .files-list td.nm { color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 8px; max-width: 360px; }
2114
+ .files-list td.nm span:last-child { overflow: hidden; text-overflow: ellipsis; }
2115
+ .files-list td.nm svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
2116
+ .file-preview { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
2117
+ .fp-top { display: flex; align-items: center; gap: 6px; }
2118
+ .fp-name { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
2119
+ .fp-top .btn.icon { width: 28px; height: 28px; padding: 0; }
2120
+ .fp-media { min-height: 120px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
2121
+ .fp-media > img, .fp-media > video { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #1f1c24; }
2122
+ .fp-media > audio { display: block; width: 100%; }
2123
+ .fp-media > iframe { display: block; width: 100%; height: 340px; border: 0; background: #fff; }
2124
+ .fp-media > .hint, .fp-text > .hint { margin: 0; padding: 18px 12px; text-align: center; }
2125
+ .fp-pre { margin: 0; max-height: 320px; overflow: auto; padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
2126
+ .fp-table { max-height: 320px; overflow: auto; }
2127
+ .fp-table table { border-collapse: collapse; font-size: 11.5px; }
2128
+ .fp-table th, .fp-table td { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
2129
+ .fp-table th { position: sticky; top: 0; background: var(--panel-2); font-weight: 600; }
2130
+ .fp-meta { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
2131
+ .fp-note { margin: 0; font-size: 12.5px; padding: 8px 10px; border-left: 3px solid var(--border-strong); background: var(--panel-2); border-radius: 0 4px 4px 0; overflow-wrap: anywhere; }
2132
+ .fp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
2133
+ .fp-acts .btn { height: 30px; padding: 0 10px; }
2134
+ .fp-acts a.btn { text-decoration: none; }
2135
+ .fp-acts svg { width: 14px; height: 14px; }
2136
+ .fp-versions { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--border); padding-top: 8px; font-size: 12.5px; color: var(--muted); }
2137
+ .fp-versions > .btn { align-self: flex-start; }
2138
+ .fp-versions > b { color: var(--text); }
2139
+ .fp-version { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
2140
+ .fp-version .grow { flex: 1; min-width: 0; }
2141
+ .fp-version .grow .hint { display: block; }
2142
+ .fp-version .cur { color: var(--accent); }
2143
+ .fp-version a { font-weight: 600; font-size: 12px; }
2144
+ .file-picker .input { margin: 8px 0 10px; }
2145
+ .fpk-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; }
2146
+ .fpk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
2147
+ .fpk-row:hover, .fpk-row:focus-visible { background: var(--panel-2); }
2148
+ .fpk-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2149
+ .tile-wrap { position: relative; display: flex; min-width: 0; }
2150
+ .tile-wrap > .tile { flex: 1; }
2151
+ .folder-acts { display: flex; gap: 2px; }
2152
+ .tile-wrap .folder-acts { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity .12s; }
2153
+ .tile-wrap:hover .folder-acts, .tile-wrap:focus-within .folder-acts { opacity: 1; }
2154
+ .folder-acts .btn.icon { width: 26px; height: 26px; padding: 0; background: var(--panel); }
2155
+ .folder-acts svg { width: 13px; height: 13px; }
2156
+ .files-list td.acts { padding: 4px 8px; }
2157
+ .files-list .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
2158
+ @media (hover: none) { .tile-wrap .folder-acts { opacity: 1; } }
2159
+ @media (max-width: 900px) {
2160
+ .file-preview { position: static; }
2161
+ }
2162
+ @media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
2163
+ @media (max-width: 1000px) {
2164
+ .files-body { grid-template-columns: minmax(0, 1fr); }
2165
+ .file-preview { position: static; }
2166
+ .file-preview.empty { display: none; }
2167
+ }
2168
+ /* Dragging a file onto a folder moves it there. */
2169
+ .tile.dragging, tr.dragging { opacity: .45; }
2170
+ .tile.folder.drop-on, tr.is-folder.drop-on, .crumbs a.drop-on { outline: 2px solid var(--accent); outline-offset: 2px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
2171
+ .files-sec .sec-head .btn.sm { height: 28px; }
2172
+ .files-sec .sec-head { flex-wrap: wrap; row-gap: 4px; }
2173
+ .files-sec .sec-head .hint, .files-sec .sec-link { white-space: nowrap; }
2174
+ @media (max-width: 560px) {
2175
+ /* On a phone the usage line drops under the heading instead of squeezing it. */
2176
+ .files-sec .sec-head .hint { order: 10; flex-basis: 100%; }
2177
+ }
2178
+
2179
+
2180
+ /* GitHub for a workspace (workspaces.js githubDialog): its connections and the repositories it allows. */
2181
+ .ws-gh-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
2182
+ .ws-gh-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
2183
+ .ws-gh-list li .btn { margin-left: auto; }
2184
+ label.radio, .field label.radio { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--text); cursor: pointer; }
2185
+ label.radio input { margin: 0; }
2186
+ label.radio:has(input:disabled) { cursor: default; opacity: .75; }
2187
+
2188
+ /* When work comes to your AI (Settings → Your AI): today's usage and the latest runs. */
2189
+ #auto-usage { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
2190
+ #auto-usage:empty { display: none; }
2191
+ .auto-usage-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 2px; }
2192
+ .auto-runs { display: flex; flex-direction: column; }
2193
+ .auto-run { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
2194
+ .auto-run:last-child { border-bottom: 0; }
2195
+ .auto-run .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
2196
+ .auto-run .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2197
+
2198
+ /* One set of AI rules (session ⋯ menu): what gathering into AGENTS.md changes, file by file. */
2199
+ .gather-rules { width: min(760px, 100%); max-height: min(86vh, 900px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
2200
+ .gr-body { min-height: 0; overflow-y: auto; padding: 16px 24px 20px; }
2201
+ .gr-file + .gr-file { margin-top: 16px; }
2202
+ .gr-file-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
2203
+ .gr-file-head code { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
2204
+ .gr-file .chg-diff { max-height: 260px; overflow-y: auto; }
2205
+ .gr-manual { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); font-size: 13px; }
2206
+ .gr-manual p { margin: 6px 0 0; }
2207
+ .gr-manual code { font-family: var(--mono); font-size: 12px; }
2208
+
2209
+ /* the git panel, kept short: one line for the branch, one for GitHub, ten files a person */
2210
+ .branch-menu .br-compact { padding: 0; gap: 6px; }
2211
+ .branch-menu .br-compact .br-line { gap: 6px; }
2212
+ .branch-menu .br-compact svg { flex: none; width: 14px; height: 14px; color: var(--muted); }
2213
+ .branch-menu .br-compact .br-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
2214
+ .branch-menu .br-compact .br-sync { flex: none; margin: 0; height: 24px; padding: 0 8px; gap: 4px; font-size: 12px; }
2215
+ .branch-menu .br-compact .br-sync svg { width: 12px; height: 12px; color: inherit; }
2216
+ .cp-line { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12.5px; min-width: 0; }
2217
+ .cp-line:last-child { margin-bottom: 0; }
2218
+ .cp-line > span:not(.sd) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2219
+ .cp-line .sd { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
2220
+ .cp-line .sd.ok { background: var(--ok); }
2221
+ .cp-line .sd.edit { background: var(--edit); }
2222
+ .cp-line.warn { color: var(--warn); }
2223
+ .cp-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
2224
+ .cp-line .hint { font-size: 12px; }
2225
+ .chg-panel li.chg-more { color: var(--muted); font-size: 12px; padding: 4px 2px 2px; }
2226
+ .pm-switch select { flex: none; align-self: center; }
2227
+
2228
+ /* ================================================================ light mode's finish
2229
+ Light mode only (--light is 1): things are set apart by fills and soft shadows rather than lines,
2230
+ column titles are quiet, type is a step lighter, the open tab is underlined, and every card lifts
2231
+ the same way. Dark mode keeps its own look. */
2232
+ @container style(--light: 1) {
2233
+ /* The board on white: pale troughs without a border, cards with a hairline and a soft drop. */
2234
+ .board { background: var(--panel); }
2235
+ .board-col { background: #f4f4f7; border-color: transparent; }
2236
+ .task, .task-archived { border-color: transparent; box-shadow: var(--card); }
2237
+ .task-archived:hover { border-color: transparent; box-shadow: var(--card-hover); }
2238
+ .task.mine { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 55%, var(--panel)), var(--card); }
2239
+ .task.mine-ai { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--violet) 55%, var(--panel)), var(--card); }
2240
+ /* Column titles: quiet text and a count; the status colour is a dot. */
2241
+ .board-col h3 { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
2242
+ .board-col h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--col); flex: none; }
2243
+ /* A step lighter: headings keep 600, names and labels read at 500, card titles at 400. */
2244
+ .task-title, .task-archived-title { font-weight: 400; }
2245
+ .tab, .ws-tab, .t-dir .t-name, .list-item .name, .session-row .name, .sr-t b { font-weight: 500; }
2246
+ /* The open tab is underlined in vermilion, not raised. */
2247
+ .ws-tab.on { background: transparent; border-color: transparent; border-radius: 4px 4px 0 0; box-shadow: inset 0 -2px 0 var(--accent); }
2248
+ .ws-tab.on:hover { background: var(--panel-2); }
2249
+ /* Workspace covers: the colour, muted toward the greys. */
2250
+ .ws-cover { background-color: color-mix(in oklab, var(--c, var(--panel-2)) 70%, #b4b4c2); }
2251
+ /* Picked options (the theme, a choice card): white with the vermilion edge, not a pink wash. */
2252
+ .theme-switch button.on, .choice-card:has(input:checked) { background: var(--panel); }
2253
+ }
2254
+
2255
+ /* ---------- Settings → Your AI: a cloud AI, one card that grows ---------- */
2256
+ /* The later .pill rule makes pills inline-block, which hides their dot: this one keeps the first rule's shape. */
2257
+ .pill.cai-pill { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; font-size: 12px; letter-spacing: 0; vertical-align: middle; background: var(--panel-2); border: 1px solid var(--border); }
2258
+ .cai-pill .dot { flex: none; }
2259
+ .cloud-ai .sec-intro .cai-pill { margin-left: auto; }
2260
+ .cai-body { display: grid; gap: 14px; }
2261
+ .cai-body > p { margin: 0; }
2262
+ .cai-body .error { margin: 0; }
2263
+ .pill.bad { color: var(--bad); } .pill.bad .dot { background: var(--bad); }
2264
+ .pill.sleep { color: var(--edit); } .pill.sleep .dot { background: var(--edit); }
2265
+ .cai-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
2266
+ .cai-tool { display: grid; gap: 6px; justify-items: center; align-content: start; padding: 16px 12px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel); text-align: center; }
2267
+ .cai-tool b { font-weight: 600; }
2268
+ .cai-tool .hint { font-size: 12px; }
2269
+ .cai-tool .btn { width: 100%; margin-top: 6px; }
2270
+ .cai-logo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); }
2271
+ .cai-logo .tool-mark { width: 20px; height: 20px; }
2272
+ .cai-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
2273
+ .cai-two > .field { margin-bottom: 0; }
2274
+ .cai-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: cai; }
2275
+ .cai-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
2276
+ .cai-step::before { counter-increment: cai; content: counter(cai); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); }
2277
+ .cai-step.now::before { background: var(--text); color: var(--bg); }
2278
+ .cai-step.done::before { content: "✓"; background: color-mix(in srgb, var(--ok) 18%, var(--panel)); color: var(--ok); }
2279
+ .cai-step.bad::before { content: "!"; background: color-mix(in srgb, var(--bad) 16%, var(--panel)); color: var(--bad); }
2280
+ .cai-step > div { display: grid; gap: 8px; min-width: 0; padding-top: 2px; }
2281
+ .cai-step:not(.now):not(.done) > div > b { color: var(--muted); font-weight: 500; }
2282
+ .cai-code { font-family: var(--mono); font-size: 26px; letter-spacing: .12em; text-align: center; padding: 10px; border-radius: var(--radius); background: var(--panel-2); border: 1px dashed var(--border-strong); user-select: all; }
2283
+ .cai-link { font-family: var(--mono); font-size: 12px; color: var(--edit); overflow-wrap: anywhere; padding: 8px 10px; border-radius: 4px; background: var(--panel-2); user-select: all; }
2284
+ .cai-paste .input:disabled, .cai-paste .btn:disabled { opacity: .55; }
2285
+ .cai-who { display: flex; align-items: center; gap: 12px; }
2286
+ .cai-who .grow { flex: 1; min-width: 0; display: grid; }
2287
+ .cai-who .grow b { font-weight: 600; }
2288
+ .cai-sessions { display: grid; gap: 6px; }
2289
+ .cai-sess { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; background: var(--panel-2); font-size: 13px; }
2290
+ .cai-sess .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2291
+ .cai-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
2292
+ .cai-kv > div { padding: 10px 12px; border-radius: var(--radius); background: var(--panel-2); min-width: 0; }
2293
+ .cai-kv b { display: block; font-size: 18px; font-weight: 600; }
2294
+ .cai-kv span { font-size: 12px; color: var(--muted); }
2295
+ .cai-meter { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
2296
+ .cai-meter i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
2297
+ .cai-meter.over i { background: var(--warn); }
2298
+ .cai-sep { border: 0; border-top: 1px dashed var(--border); margin: 0; }
2299
+ .cai-form { display: grid; gap: 14px; }
2300
+ .cai-form > .field { margin-bottom: 0; }
2301
+ .cai-confirm { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--bad) 55%, var(--border)); background: color-mix(in srgb, var(--bad) 6%, var(--panel)); }
2302
+ .cai-confirm p { margin: 0; font-size: 13px; }
2303
+ @media (max-width: 640px) {
2304
+ .cai-tools, .cai-two { grid-template-columns: minmax(0, 1fr); }
2305
+ .cai-kv { gap: 6px; }
2306
+ .cai-kv > div { padding: 8px 10px; }
2307
+ .cai-kv b { font-size: 16px; }
2308
+ .cai-who { flex-wrap: wrap; }
2309
+ }