heyquilt 0.0.1 → 0.3.106

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