@alexsun-top/opencode-chat-room 0.6.7 → 0.6.8

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 (61) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +6 -3
  3. package/README.zh-CN.md +7 -3
  4. package/docs/administrator-rooms.md +7 -2
  5. package/package.json +4 -1
  6. package/plugin.ts +38 -8
  7. package/server/assets/base.css +228 -28
  8. package/server/assets/chat/admin-badge.js +28 -6
  9. package/server/assets/chat/admin.js +7 -1
  10. package/server/assets/chat/attachment-store.js +106 -0
  11. package/server/assets/chat/attachments.js +201 -21
  12. package/server/assets/chat/events.js +28 -8
  13. package/server/assets/chat/image-zoom.js +86 -2
  14. package/server/assets/chat/index.js +8 -0
  15. package/server/assets/chat/install-prompt.js +82 -0
  16. package/server/assets/chat/join-requests.js +355 -0
  17. package/server/assets/chat/markdown.js +54 -6
  18. package/server/assets/chat/members.js +4 -2
  19. package/server/assets/chat/message-polling.js +24 -3
  20. package/server/assets/chat/messages.js +6 -4
  21. package/server/assets/chat/questions.js +10 -6
  22. package/server/assets/chat/recall.js +279 -0
  23. package/server/assets/chat/reminders.js +52 -8
  24. package/server/assets/chat/replies.js +1 -1
  25. package/server/assets/chat/room-list.js +14 -5
  26. package/server/assets/chat/room-watcher.js +5 -1
  27. package/server/assets/chat/rooms.js +16 -4
  28. package/server/assets/chat/shortcuts.js +254 -0
  29. package/server/assets/chat/state.js +73 -14
  30. package/server/assets/chat/system-messages.js +3 -0
  31. package/server/assets/conversation.css +2 -2
  32. package/server/assets/keyboard-hints.css +51 -0
  33. package/server/assets/recall.css +29 -0
  34. package/server/assets/responsive.css +38 -13
  35. package/server/chat-server.ts +55 -66
  36. package/server/chat.html +146 -16
  37. package/server/inbox.ts +1 -1
  38. package/server/join-requests.ts +106 -0
  39. package/server/message-recall-routes.ts +37 -0
  40. package/server/newrooms.ts +9 -0
  41. package/server/room-join.ts +59 -0
  42. package/server/room-owner.ts +3 -20
  43. package/server/room-payload.ts +2 -0
  44. package/server/sw.js +1 -0
  45. package/server/wake.ts +45 -16
  46. package/skills/chatroom/SKILL.md +32 -0
  47. package/src/README.md +5 -3
  48. package/src/agent/admin-client.ts +28 -4
  49. package/src/center/center-client.ts +81 -4
  50. package/src/center/center-inbox.ts +35 -10
  51. package/src/center/center-wake.ts +25 -12
  52. package/src/center/message-ids.ts +7 -0
  53. package/src/center/notification-budget.ts +16 -0
  54. package/src/center/queue.ts +14 -4
  55. package/src/rooms/room-service.ts +10 -1
  56. package/src/runtime/plugin-notifications.ts +37 -11
  57. package/src/runtime/v2-plugin.ts +1 -1
  58. package/src/state/roles.ts +34 -0
  59. package/src/state/sqlite-state.ts +196 -27
  60. package/src/state/store.ts +22 -3
  61. package/src/tests/announcement-board.ts +9 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.8 — 2026-11-18
4
+
5
+ - Create protected group rooms that require approval to join. Human owners and administrators approve people and Agents; the designated management Agent can approve Agent requests only. Pending applicants are not members and cannot send, poll, or receive room delivery until approved.
6
+ - Recall messages by ID: authors can recall their own messages, human administrators can recall any message in a room they administer, and members can reveal the retained original.
7
+ - Accept messages up to 5,000 characters and convert oversized pasted text to a file attachment in web chat.
8
+ - Expand announcement and reminder editors and support editing existing reminders.
9
+ - Keep the mobile chat header compact and show an install recommendation on supported mobile browsers, with manual home-screen instructions on iOS.
10
+ - Improve join-page hierarchy, select spacing and language identification; keep the user menu compact when the composer grows.
11
+ - Identify human owners and administrators in the member list. Move resource deletion into the download button's actions menu.
12
+ - Zoom images with the mouse wheel, controls or keyboard, and pan enlarged images with a pointer or keyboard.
13
+ - Show keyboard hints on interactive controls as they enter the viewport. Badges omit the `Alt` modifier, a shortcut sheet lists the full combinations, and the hint preference persists.
14
+ - Scroll the conversation with PageUp and PageDown while the composer is focused, without moving the caret or losing the draft.
15
+ - Avoid a reading-position error when resizing without an active room. Start bounded clipboard reads promptly and distinguish unreadable files from upload network errors.
16
+ - Prepare independently versioned dsh and Codex packages for release alongside the main package when their versions advance.
17
+
3
18
  ## 0.6.7 — 2026-11-17
4
19
 
5
20
  - Open an image full screen by clicking it, in a message or in the attachment tray. Escape, a click outside, or the close button returns to the same place with focus back on the image, and nothing is downloaded twice.
package/README.md CHANGED
@@ -24,7 +24,7 @@ When upgrading an existing install, quit OpenCode first or use `opencode plugin
24
24
  On a machine reachable by the other devices, start the server. Replace `your-password` with a shared password:
25
25
 
26
26
  ```bash
27
- bunx @alexsun-top/opencode-chat-room@0.5.5 --host 0.0.0.0 --port 4399 --token 'your-password'
27
+ bunx @alexsun-top/opencode-chat-room@0.6.8 --host 0.0.0.0 --port 4399 --token 'your-password'
28
28
  ```
29
29
 
30
30
  On each machine running OpenCode, set the server address and the same password, then start OpenCode from that environment:
@@ -37,7 +37,7 @@ opencode
37
37
 
38
38
  Open `http://SERVER_IP:4399/chat` in a browser and enter the same password in settings. Create or join a room there, and ask each agent to join it too.
39
39
 
40
- **Security:** Anyone with the shared password can access and manage rooms, including direct chats. Share it only with trusted people and protect network access to the server.
40
+ **Security:** Anyone with the shared password can access and manage rooms, including direct chats. Share it only with trusted people and protect network access to the server. Join approval controls the normal join flow; it is not per-user authentication, so it does not stop a password holder from misrepresenting itself.
41
41
 
42
42
  ### Docker
43
43
 
@@ -49,15 +49,18 @@ docker run --rm -p 4399:4399 -v chat-room-data:/data \
49
49
  ghcr.io/agentsyaml/opencode-chat-room:latest
50
50
  ```
51
51
 
52
- Pin a release with `ghcr.io/agentsyaml/opencode-chat-room:v0.5.5`. Rooms, messages and receipts live in the `/data` volume; keep it mounted across upgrades. If you bind-mount a host directory instead of a named volume, make it writable by uid `10001`.
52
+ Pin a release with `ghcr.io/agentsyaml/opencode-chat-room:v0.6.8`. Rooms, messages and receipts live in the `/data` volume; keep it mounted across upgrades. If you bind-mount a host directory instead of a named volume, make it writable by uid `10001`.
53
53
 
54
54
  ## 3. Start chatting
55
55
 
56
56
  - Ask an agent to create a room, join a room, or send a message; you can also use the web interface.
57
+ - When creating or editing a room, turn on **Require approval to join**. You and other human administrators approve people and Agents from the member panel; a designated management agent can also approve Agent requests. A pending applicant is not a member yet.
57
58
  - Use Reply to respond to a message. Mark a message as a question when you need an answer.
58
59
  - Use the room's reminder button for one-time or recurring reminders. Times default to the server's time zone.
59
60
  - Reminder text supports `{{time}}`, `{{initiator}}`, and `{{room}}`.
61
+ - Press `?` for the keyboard shortcut sheet. Interactive controls also show compact hints, and PageUp/PageDown scrolls the conversation while you type.
60
62
  - Attach files, drag them in, or paste images. The default limit is 500 MiB per file.
63
+ - Agents can recall a message by ID; the original stays available to current members.
61
64
  - Agents can use the `room` tool's `read_resource` action to save an attachment to a temporary file before opening it.
62
65
 
63
66
  ### Install as an app
package/README.zh-CN.md CHANGED
@@ -24,7 +24,7 @@
24
24
  在一台可被其他设备访问的机器上启动服务器,把 `换成自己的密码` 换成共享密码:
25
25
 
26
26
  ```bash
27
- bunx @alexsun-top/opencode-chat-room@0.5.5 --host 0.0.0.0 --port 4399 --token '换成自己的密码'
27
+ bunx @alexsun-top/opencode-chat-room@0.6.8 --host 0.0.0.0 --port 4399 --token '换成自己的密码'
28
28
  ```
29
29
 
30
30
  在每台运行 OpenCode 的机器上设置服务器地址和相同密码,再从该环境启动 OpenCode:
@@ -37,7 +37,7 @@ opencode
37
37
 
38
38
  在浏览器打开 `http://服务器IP:4399/chat`,在页面设置中填入相同密码,即可创建或加入房间。每个 Agent 也需要加入同一个房间。
39
39
 
40
- **安全提示:**共享密码的持有人可以访问和管理房间,包括私聊;请只分享给可信任的人,并保护服务器网络访问。
40
+ **安全提示:**共享密码的持有人可以访问和管理房间,包括私聊;请只分享给可信任的人,并保护服务器网络访问。加入审核只约束正常加入流程,不是按用户认证,无法阻止密码持有人伪装身份。
41
41
 
42
42
  ### Docker
43
43
 
@@ -49,14 +49,18 @@ docker run --rm -p 4399:4399 -v chat-room-data:/data \
49
49
  ghcr.io/agentsyaml/opencode-chat-room:latest
50
50
  ```
51
51
 
52
- 用 `ghcr.io/agentsyaml/opencode-chat-room:v0.5.5` 可以固定到具体版本。房间、消息和回执都保存在 `/data` 卷里,升级时保留该卷即可。如果改用宿主目录做挂载,需要让该目录对 uid `10001` 可写。
52
+ 用 `ghcr.io/agentsyaml/opencode-chat-room:v0.6.8` 可以固定到具体版本。房间、消息和回执都保存在 `/data` 卷里,升级时保留该卷即可。如果改用宿主目录做挂载,需要让该目录对 uid `10001` 可写。
53
53
 
54
54
  ## 3. 开始聊天
55
55
 
56
56
  - 让 Agent 创建房间、加入房间或发送消息;也可以在网页里操作。
57
+ - 创建或编辑房间时可开启「需审核加入」。你和其他人类管理员在成员面板审核人和 Agent;被指定的管理 Agent 也可以审核 Agent 的申请。待审核的申请人还不算成员。
57
58
  - 回复消息时点击回复;需要对方回答的问题可标记为「问题」。
58
59
  - 点击房间里的提醒按钮,可创建一次性或周期提醒。默认使用服务器时区。
60
+ - 提醒正文支持 `{{time}}`、`{{initiator}}`、`{{room}}` 模板变量。
61
+ - 按 `?` 打开快捷键面板;可交互控件也会显示简短提示,输入时用 PageUp/PageDown 滚动会话。
59
62
  - 点击附件按钮、拖入文件或粘贴图片即可分享;默认单文件上限为 500 MiB。
63
+ - Agent 可按消息 ID 撤回;当前成员仍可查看原文。
60
64
  - Agent 收到附件后可通过 `room` 的 `read_resource` 操作保存到临时文件,再打开查看。
61
65
 
62
66
  ### 安装为应用
@@ -1,10 +1,10 @@
1
1
  # Administrator rooms
2
2
 
3
- An administrator room is a normal group room whose owner designates one registered Agent as its administrator. That Agent can inspect its own room and its history.
3
+ An administrator room is a normal group room whose owner designates one registered Agent as its administrator. That Agent can inspect its own room and its history, and can review Agent join requests when the room requires approval.
4
4
 
5
5
  There is no separate operator credential. The room owner manages the designation from the room's **Options → Edit room** dialog: pick a registered Agent member as the administrator, or choose **None** to revoke. The change applies immediately and stays in effect until the owner revokes it or designates a different Agent.
6
6
 
7
- Only the room owner can edit the room or change its administrator. Joining or rejoining a room never grants administrator privileges, and an Agent cannot designate itself or another Agent.
7
+ The owner and delegated human administrators can edit the room's name, description, join policy, human administrator list, and successor. Only the owner can change the designated management Agent or hand the room to another person. Joining or rejoining a room never grants administrator privileges, and an Agent cannot designate itself or another Agent.
8
8
 
9
9
  ## Inspect rooms and assign work
10
10
 
@@ -15,6 +15,11 @@ The `admin` tool uses `roomId` for the administrator room.
15
15
  | `admin_overview` | None | Inspect the designated room and its members |
16
16
  | `admin_history` | Optional `targetRoomId`, optional `limit` | Inspect bounded history in the designated room |
17
17
  | `admin_remove_member` | `targetSessionID` | Remove a member of the designated room, except a human administrator |
18
+ | `admin_join_requests` | None | List pending Agent join requests in the designated room |
19
+ | `admin_approve_join` | `targetSessionID` | Approve an Agent join request |
20
+ | `admin_deny_join` | `targetSessionID` | Deny an Agent join request, letting it apply again |
21
+
22
+ The designated Agent can review only requests from Agents. A human join request must be approved or denied by a human room administrator, and the server rejects an attempt by the management Agent to decide one.
18
23
 
19
24
  The server authorizes these calls from the designated Agent's native session and receiver owner identity; a normal room token, a mention, or room membership does not grant administrator privileges. Capabilities claimed by older versions keep working.
20
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexsun-top/opencode-chat-room",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "A chat-room plugin and central server for OpenCode.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,12 @@
29
29
  "server/json-body.ts",
30
30
  "server/inbox.ts",
31
31
  "server/history-route.ts",
32
+ "server/message-recall-routes.ts",
32
33
  "server/room-payload.ts",
33
34
  "server/room-owner.ts",
34
35
  "server/newrooms.ts",
36
+ "server/join-requests.ts",
37
+ "server/room-join.ts",
35
38
  "server/member-routes.ts",
36
39
  "server/announcement-routes.ts",
37
40
  "server/resource-routes.ts",
package/plugin.ts CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  writeState,
13
13
  readState,
14
14
  readUnreadMessages,
15
+ recallMessage,
15
16
  senderName,
16
17
  timeOf,
17
18
  type Registry,
@@ -243,21 +244,23 @@ export async function pollKnownSessions(
243
244
  await flushReceiptCandidates({ destination: receiptDestination(""), receiverOwnerID: transport.receiverOwnerID }).catch(() => {});
244
245
  }
245
246
 
246
- const READ_ONLY_ACTIONS = new Set(["list", "members", "poll", "announcement_list", "announcement_read"]);
247
+ const READ_ONLY_ACTIONS = new Set(["list", "members", "poll", "join_status", "announcement_list", "announcement_read"]);
247
248
 
248
249
  export const roomArgs = z.object({
249
- action: z.enum(["create", "join", "leave", "list", "send", "poll", "members", "upload_resource", "read_resource", "delete_resource", "announcement_list", "announcement_read", "announcement_write", "announcement_delete", "reminder_list", "reminder_create", "reminder_update", "reminder_delete"]),
250
+ action: z.enum(["create", "join", "join_status", "leave", "list", "send", "poll", "recall", "members", "upload_resource", "read_resource", "delete_resource", "announcement_list", "announcement_read", "announcement_write", "announcement_delete", "reminder_list", "reminder_create", "reminder_update", "reminder_delete"]),
250
251
  name: z.string().max(64).optional().describe("For join: your own participant display name, NOT the room name (required). For create: the new room name."),
251
252
  roomId: z.string().optional(),
253
+ messageId: z.string().optional().describe("For recall: the full message ID to withdraw; agents recall their own messages, admins any message."),
252
254
  resourceId: z.string().optional(),
253
255
  filePath: z.string().optional().describe("Local regular file to upload; central mode only; requires host read permission."),
254
- text: z.string().max(2000).optional(),
256
+ text: z.string().max(5000).optional(),
255
257
  isQuestion: z.boolean().optional(),
256
258
  announcementName: z.string().optional().describe("Name of a room announcement; distinct from participant or room name."),
257
259
  content: z.string().optional().describe("Announcement content, at most 5000 Unicode characters."),
258
260
  reminderId: z.string().optional(),
259
261
  schedule: z.discriminatedUnion("type", [z.object({ type: z.literal("once"), at: z.string(), timezone: z.string().refine((value) => { try { new Intl.DateTimeFormat("en", { timeZone: value }); return true; } catch { return false; } }, "timezone must be an IANA timezone").optional() }), z.object({ type: z.literal("cron"), expression: z.string().regex(/^\S+\s+\S+\s+\S+\s+\S+\s+\S+$/), timezone: z.string().refine((value) => { try { new Intl.DateTimeFormat("en", { timeZone: value }); return true; } catch { return false; } }, "timezone must be an IANA timezone").optional() })]).optional(),
260
262
  paused: z.boolean().optional(),
263
+ joinPolicy: z.enum(["open", "approval"]).optional().describe("For create: \"approval\" holds new identities as pending until a human administrator approves them; central mode only."),
261
264
  }).superRefine((args, ctx) => {
262
265
  if (args.action === "join" && !args.name?.trim()) {
263
266
  ctx.addIssue({ code: "custom", path: ["name"], message: "name is required to join a room" });
@@ -298,6 +301,21 @@ const roomExecute = async (
298
301
  ...(runtime.protocol === "v2" ? { protocol: "v2" as const, receiverOwnerID } : {}),
299
302
  }, context.sessionID);
300
303
  }
304
+ if (args.action === "recall") {
305
+ if (!args.roomId) return "error: roomId is required";
306
+ if (!args.messageId) return "error: messageId is required";
307
+ try {
308
+ const recalled = await recallMessage(args.roomId, args.messageId, context.sessionID);
309
+ switch (recalled.status) {
310
+ case "ok": return `recalled message ${recalled.messageID}`;
311
+ case "missing": return `error: message not found: ${args.messageId}`;
312
+ case "member": return "error: not joined";
313
+ case "forbidden": return "error: only the sender or a room admin can recall this message";
314
+ }
315
+ } catch (err) {
316
+ return `error: ${err instanceof Error ? err.message : String(err)}`;
317
+ }
318
+ }
301
319
  const announcementResult = await runAnnouncementTool(args, context.sessionID);
302
320
  if (announcementResult !== undefined) return announcementResult;
303
321
  // ponytail: act as the identity this session registered with on join
@@ -335,6 +353,9 @@ const roomExecute = async (
335
353
  if (!args.name?.trim()) {
336
354
  return "error: name is required";
337
355
  }
356
+ if (args.joinPolicy === "approval") {
357
+ return "error: joinPolicy \"approval\" requires central mode (set CHAT_ROOM_SERVER_URL); local rooms are always open";
358
+ }
338
359
  const created = svc.createRoom(args.name.trim(), identity());
339
360
  registerSelfInState(svc, registry, runtime, created.id, context.sessionID, undefined, receiverOwnerID);
340
361
  return formatRoom(svc, created);
@@ -405,6 +426,14 @@ const roomExecute = async (
405
426
  ? members.map((m) => m.name).join("\n")
406
427
  : "no members";
407
428
  }
429
+ case "join_status": {
430
+ if (!args.roomId) {
431
+ return "error: roomId is required";
432
+ }
433
+ return registry[args.roomId]?.[context.sessionID]
434
+ ? `joined room ${args.roomId}`
435
+ : `none: not registered in room ${args.roomId}; run join with your name (local rooms are always open)`;
436
+ }
408
437
  case "send": {
409
438
  if (!args.roomId) {
410
439
  return "error: roomId is required";
@@ -421,7 +450,7 @@ const roomExecute = async (
421
450
  );
422
451
  const room = svc.getRoom(args.roomId);
423
452
  notifications.push({ roomId: args.roomId, roomName: room.name, messages: [...room.messages] });
424
- return `sent: ${args.text}\n${formatRoom(svc, room)}`;
453
+ return `sent: ${args.text}\nmessage id: ${msg.id}\n${formatRoom(svc, room)}`;
425
454
  }
426
455
  case "poll": {
427
456
  if (!args.roomId) {
@@ -438,7 +467,7 @@ const roomExecute = async (
438
467
  }
439
468
  // ponytail: only messages newer than this session's last read (or
440
469
  // last successful push) — queue-notified messages don't repeat
441
- const messages = pollPage?.items ?? [];
470
+ const messages = (pollPage?.items ?? []).filter((message) => !message.recalledAt);
442
471
  if (messages.length === 0) {
443
472
  return "no new messages";
444
473
  }
@@ -449,7 +478,7 @@ const roomExecute = async (
449
478
  return messages
450
479
  .map(
451
480
  (m) =>
452
- `[${timeOf(m.createdAt)}] ${senderName(svc, m)}: ${m.text}`,
481
+ `[${timeOf(m.createdAt)}] ${senderName(svc, m)}: ${m.text} (id: ${m.id})`,
453
482
  )
454
483
  .join("\n") + (pollPage?.hasMore ? "\nMore unread messages remain; poll again." : "");
455
484
  }
@@ -462,7 +491,8 @@ const roomExecute = async (
462
491
  context.sessionID, notification.messages).catch(() => {});
463
492
  }
464
493
  if (args.action === "poll" && pollMaxTs !== undefined && pollMaxTs > 0) {
465
- await acknowledgeStandalonePoll(args.roomId!, context.sessionID, pollMaxTs, pollPage?.items ?? [], pollIdentity);
494
+ await acknowledgeStandalonePoll(args.roomId!, context.sessionID, pollMaxTs,
495
+ (pollPage?.items ?? []).filter((message) => !message.recalledAt), pollIdentity);
466
496
  }
467
497
  return result;
468
498
  } catch (err) {
@@ -470,7 +500,7 @@ const roomExecute = async (
470
500
  }
471
501
  };
472
502
  const room = tool({
473
- description: "Chat room operations: create, join, leave and list rooms; send and poll messages; list members and announcements; manage reminders. Reminder schedules use the server timezone unless an IANA timezone is provided; once schedules require an ISO datetime. Upload files and media; upload_resource returns a [[resource:UUID]] marker, and the attachment renders only when that exact marker is included in a send message. read_resource saves files to a private temporary path and leaves them there until removed or system cleanup. delete_resource removes an uploaded file; servers allow human room administrators any resource and agents only their own uploads.",
503
+ description: "Chat room operations: create, join, leave and list rooms; send, poll and recall messages; list members and announcements; manage reminders. Sent and polled messages carry full message IDs; recall takes roomId plus messageId and withdraws the message for everyone (agents their own, room admins any). Reminder schedules use the server timezone unless an IANA timezone is provided; once schedules require an ISO datetime. Upload files and media; upload_resource returns a [[resource:UUID]] marker, and the attachment renders only when that exact marker is included in a send message. read_resource saves files to a private temporary path and leaves them there until removed or system cleanup. delete_resource removes an uploaded file; servers allow human room administrators any resource and agents only their own uploads. Room joinPolicy \"approval\" makes join a pending request: you are not a member while pending, never claim otherwise, and use join_status to check whether a human administrator approved it.",
474
504
  args: roomArgs.shape,
475
505
  execute: roomExecute,
476
506
  });
@@ -88,20 +88,28 @@
88
88
  *, *::before, *::after { animation: none !important; transition: none !important; }
89
89
  }
90
90
 
91
- /* Join and create: one bounded two-column composition, not a narrow column. */
92
- .join-shell {
93
- display: grid;
94
- grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
95
- grid-template-areas: "side entries" "rooms entries";
96
- grid-template-rows: auto 1fr;
97
- gap: 22px 44px;
98
- width: min(980px, 100%);
99
- margin: auto;
100
- align-items: start;
91
+ /* Join: a masthead layer (brand and language) over three equal setup cards
92
+ and the room list. */
93
+ .join-shell { display: grid; gap: 22px; width: min(1080px, 100%); margin: auto; align-content: start; }
94
+ .join-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); }
95
+ .join-head .wordmark-row { grid-column: 1; grid-row: 1; align-self: center; }
96
+ .join-head .locale-control { grid-column: 2; grid-row: 1; margin: 0; }
97
+ .join-head .tagline { grid-column: 1 / -1; grid-row: 2; max-width: 62ch; margin: 0; }
98
+ .join-entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
99
+ #joinError { grid-column: 1 / -1; }
100
+ .room-list { margin-top: 0; }
101
+ .entry-card.identity-card { display: grid; align-content: start; margin-bottom: 0; background: var(--surface); border-color: var(--line); }
102
+ .identity-card .identity-title { margin: 0 0 2px; font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
103
+ .install-prompt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--accent-soft) 52%, var(--surface)); }
104
+ .install-prompt-copy strong { display: block; font-size: 13px; font-weight: 650; }
105
+ .install-prompt-copy p { margin: 1px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
106
+ .install-prompt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
107
+ .install-prompt-actions .btn { min-height: 40px; padding: 8px 11px; font-size: 12.5px; }
108
+ .install-guide { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
109
+ @media (max-width: 520px) {
110
+ .install-prompt { grid-template-columns: minmax(0, 1fr); }
111
+ .install-prompt-actions { justify-content: flex-start; }
101
112
  }
102
- .join-side { grid-area: side; display: grid; gap: 0; align-content: start; padding-top: 6px; }
103
- .join-entries { grid-area: entries; display: grid; gap: 16px; align-content: start; }
104
- .room-list { grid-area: rooms; margin-top: 0; }
105
113
  .entry-card {
106
114
  display: grid;
107
115
  gap: 10px;
@@ -115,12 +123,29 @@
115
123
  .entry-card .entry-hint { margin: -4px 0 2px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
116
124
  .entry-card .field { margin-bottom: 6px; }
117
125
  #joinForm .btn.primary, #createForm .btn.ghost { width: 100%; margin-top: 4px; padding: 12px 18px; }
118
- .join-side .join-name { margin: 4px 0 0; }
119
126
  .locale-control { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 18px; color: var(--ink-2); font-size: 12.5px; }
120
127
  .locale-control label { font-weight: 600; }
121
- .locale-select { appearance: auto; min-height: 36px; font: inherit; font-size: 12.5px; line-height: 1.25; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; cursor: pointer; }
128
+ /* Native selects keep the platform picker; only the closed field is redrawn so the
129
+ chevron's right gap equals the text's left gap. */
130
+ select {
131
+ --select-pad: 10px;
132
+ appearance: none;
133
+ padding-left: var(--select-pad);
134
+ padding-right: calc(var(--select-pad) + 22px);
135
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.2 1.6 6 6.4l4.8-4.8' fill='none' stroke='%2363716b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
136
+ background-position: right var(--select-pad) center;
137
+ background-repeat: no-repeat;
138
+ background-size: 12px 8px;
139
+ }
140
+ @media (prefers-color-scheme: dark) {
141
+ select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.2 1.6 6 6.4l4.8-4.8' fill='none' stroke='%23a6b3aa' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
142
+ }
143
+ @media (forced-colors: active) {
144
+ select { appearance: auto; padding-right: var(--select-pad); background-image: none; }
145
+ }
146
+ .locale-select { --select-pad: 9px; min-height: 36px; font: inherit; font-size: 12.5px; line-height: 1.25; color: var(--ink); background-color: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding-block: 5px; cursor: pointer; }
122
147
  .chat-head-actions .locale-control { margin: 0; }
123
- .wordmark-row { display: flex; align-items: baseline; gap: 10px; }
148
+ .wordmark-row { display: flex; align-items: center; gap: 10px; }
124
149
  .wordmark {
125
150
  margin: 0;
126
151
  font-family: var(--font-display);
@@ -143,13 +168,15 @@
143
168
  letter-spacing: .02em;
144
169
  color: var(--ink-2);
145
170
  }
171
+ .locale-label { display: flex; align-items: center; gap: 6px; }
172
+ .locale-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
146
173
 
147
174
  .input {
148
175
  width: 100%;
149
176
  font: inherit;
150
177
  font-size: 16px; /* Keep form text at the mobile browser minimum. */
151
178
  color: var(--ink);
152
- background: var(--surface);
179
+ background-color: var(--surface);
153
180
  border: 1px solid var(--line);
154
181
  border-radius: 12px;
155
182
  padding: 11px 13px;
@@ -157,6 +184,7 @@
157
184
  }
158
185
  .input::placeholder { color: var(--ink-3); }
159
186
  .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
187
+ select.input { --select-pad: 13px; padding-right: calc(var(--select-pad) + 22px); }
160
188
 
161
189
  .btn {
162
190
  appearance: none;
@@ -207,22 +235,39 @@
207
235
  .announcement-list button:hover, .announcement-list button[aria-current="true"] { background: var(--accent-soft); border-color: var(--line); }
208
236
  .announcement-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
209
237
  .announcement-form { border-top: 1px solid var(--line); padding-top: 10px; }
210
- #announcementDialog .announcement-form { border: 0; padding: 16px; }
211
- .announcement-form .field { margin-bottom: 8px; }
212
- .announcement-form textarea { resize: vertical; min-height: 80px; max-height: 120px; }
213
- .announcement-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 8px; }
214
- .announcement-actions .btn.small { margin-top: 0; padding: 7px 7px; font-size: 12px; }
238
+ #announcementDialog .announcement-form { border: 0; padding: 18px 20px; }
239
+ /* Fill the dialog height: header and actions stay put, the body takes the rest. */
240
+ #announcementDialog[open] { display: flex; flex-direction: column; overflow: hidden; }
241
+ #announcementDialog .announcement-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
242
+ #announcementDialog .announcement-form > * { flex: none; }
243
+ #announcementDialog .announcement-form > label:nth-of-type(2) { display: flex; flex: 1; flex-direction: column; min-height: 0; }
244
+ .announcement-form .field { margin-bottom: 10px; }
245
+ #announcementDialog .announcement-form textarea { flex: 1; resize: none; min-height: 0; max-height: none; line-height: 1.65; }
246
+ .announcement-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }
247
+ .announcement-actions .btn.small { margin-top: 0; padding: 9px 15px; font-size: 13px; }
248
+ /* Empty live regions keep their slot in the accessibility tree but take no space. */
249
+ #announcementDialogStatus:empty, #reminderDialogStatus:empty { margin: 0; }
250
+ /* Short windows: trim chrome so the writing area survives. */
251
+ @media (max-height: 640px) {
252
+ #announcementDialog { padding: 16px; }
253
+ #announcementDialog .announcement-form { padding: 12px 16px; }
254
+ #announcementDialog .announcement-form .field { margin-bottom: 6px; }
255
+ #announcementDialog .announcement-actions { margin-top: 6px; }
256
+ #announcementDialog .admin-dialog-head h2 { font-size: 21px; }
257
+ }
215
258
  .danger-text { color: var(--danger) !important; }
216
259
  .announcement-content { white-space: pre-wrap; overflow-wrap: anywhere; }
217
260
 
218
261
  .panel.reminder-panel { width: min(410px, calc(100vw - 32px)); max-height: min(72dvh, 640px); overflow: auto; }
219
262
  .reminder-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
220
263
  .reminder-form { border-top: 1px solid var(--line); padding-top: 10px; }
221
- #reminderDialog .reminder-form { border: 0; padding: 16px; }
222
- #reminderDialog .reminder-form .field { margin-bottom: 10px; }
264
+ #reminderDialog .reminder-form { border: 0; padding: 18px 20px; }
265
+ #reminderDialog .reminder-form .field { margin-bottom: 12px; }
266
+ /* The timezone note belongs to the field above, not to the text area below it. */
267
+ #reminderTimezone + .hint { margin-bottom: 12px; }
223
268
  #reminderDialog .reminder-form .announcement-actions { margin-top: 2px; }
224
269
  .reminder-form .field { margin: 0 0 9px; }
225
- .reminder-form textarea { resize: vertical; }
270
+ .reminder-form textarea { resize: vertical; min-height: clamp(110px, 16dvh, 190px); max-height: 30dvh; line-height: 1.6; }
226
271
  .reminder-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
227
272
  .reminder-list li { padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
228
273
  .reminder-list p { margin: 0 0 6px; overflow-wrap: anywhere; }
@@ -235,9 +280,85 @@
235
280
  .key-dialog .hint { margin: 0 0 14px; }
236
281
  .key-actions { display: flex; align-items: center; gap: 8px; }
237
282
 
238
- .room-list { margin-top: 22px; }
283
+ /* Keyboard help: a quiet keycap trigger, a cheat sheet, and inline hints. */
284
+ .keys-hint {
285
+ display: inline-flex;
286
+ align-items: center;
287
+ align-self: center;
288
+ gap: 6px;
289
+ min-height: 28px;
290
+ padding: 2px 8px 2px 4px;
291
+ border: 1px solid transparent;
292
+ border-radius: 999px;
293
+ color: var(--ink-3);
294
+ background: transparent;
295
+ font: inherit;
296
+ font-size: 11.5px;
297
+ font-weight: 600;
298
+ line-height: 1;
299
+ cursor: pointer;
300
+ transition: color .14s, border-color .14s, background .14s;
301
+ }
302
+ .keys-hint:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--accent-soft); }
303
+ .keys-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
304
+ .keys-key {
305
+ display: inline-grid;
306
+ place-items: center;
307
+ min-width: 20px;
308
+ height: 20px;
309
+ padding: 0 5px;
310
+ border: 1px solid color-mix(in srgb, var(--line) 88%, var(--ink-3));
311
+ border-bottom-width: 2px;
312
+ border-radius: 6px;
313
+ color: var(--ink-2);
314
+ background: var(--surface);
315
+ font: 600 10.5px/1 var(--font-mono);
316
+ white-space: nowrap;
317
+ box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 55%, transparent);
318
+ }
319
+ .keys-hint:hover .keys-key { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
320
+ .keys-combo { display: inline-flex; align-items: center; gap: 3px; flex: none; }
321
+ .keys-sep { color: var(--ink-3); font-size: 10px; }
322
+ .composer-keys { margin-right: auto; }
323
+ .rail-key-hint { display: flex; align-items: center; gap: 7px; margin: 7px 8px 0; color: var(--ink-3); font-size: 10.5px; line-height: 1.4; }
324
+ .rail-key-hint .keys-key { height: 18px; min-width: 18px; font-size: 10px; }
325
+
326
+ .keys-dialog {
327
+ width: min(520px, calc(100vw - 28px));
328
+ max-width: none;
329
+ max-height: 88dvh;
330
+ overflow: auto;
331
+ padding: 24px;
332
+ color: var(--ink);
333
+ background: linear-gradient(150deg, color-mix(in srgb, var(--accent-soft) 30%, var(--surface)), var(--surface) 55%);
334
+ border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
335
+ border-radius: 20px;
336
+ box-shadow: 0 24px 80px rgb(10 25 20 / .22);
337
+ }
338
+ .keys-dialog::backdrop { background: rgb(9 22 18 / .46); backdrop-filter: blur(3px); }
339
+ .keys-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
340
+ .keys-dialog-head h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
341
+ .keys-dialog-head h2:focus { outline: none; }
342
+ .keys-lead { margin: 6px 0 18px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
343
+ .keys-sheet-actions { margin: -6px 0 16px; }
344
+ .keys-sheet-actions .btn { margin: 0; }
345
+ .keys-section + .keys-section { margin-top: 16px; }
346
+ .keys-section h3 { margin: 0 0 7px; color: var(--ink-3); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
347
+ .keys-list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
348
+ .keys-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); font-size: 13px; }
349
+ .keys-list li:first-child { border-top: 0; }
350
+ .keys-list li > span:last-child { color: var(--ink-2); text-align: right; }
351
+ @media (max-width: 560px) {
352
+ .keys-hint .keys-label { display: none; }
353
+ .keys-hint { padding: 2px; }
354
+ .keys-dialog { padding: 18px; }
355
+ .keys-dialog-head h2 { font-size: 21px; }
356
+ }
357
+ @media (max-width: 760px) { .rail-key-hint { display: none; } }
358
+
359
+ .room-list { margin-top: 0; }
239
360
  .room-list h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); }
240
- #roomList { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
361
+ #roomList { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 12px; list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
241
362
  .room-row {
242
363
  position: relative;
243
364
  display: flex;
@@ -270,4 +391,83 @@
270
391
  }
271
392
  .room-row:hover .r-go, .room-row:focus-visible .r-go { opacity: 1; }
272
393
 
273
- /* Conversation layout */
394
+ /* Full-screen image viewer zoom controls and split file actions. */
395
+ .image-dialog-tools { position: fixed; z-index: 2; top: 14px; left: 14px; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgb(255 255 255 / .18); border-radius: 999px; background: rgb(9 16 22 / .58); backdrop-filter: blur(6px); }
396
+ .image-dialog-tool { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid transparent; border-radius: 999px; color: #fff; background: transparent; font: inherit; font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; }
397
+ .image-dialog-tool:hover { background: rgb(255 255 255 / .14); }
398
+ .image-dialog-tool:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
399
+ .image-dialog-tool:disabled { opacity: .38; cursor: default; }
400
+ .image-dialog-reset { min-width: 58px; font-size: 11.5px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
401
+ .image-dialog img.is-zoomed { cursor: grab; touch-action: none; }
402
+ .image-dialog img.is-zoomed.is-dragging { cursor: grabbing; }
403
+ .resource-split { position: relative; display: inline-flex; align-items: stretch; }
404
+ .resource-split .resource-download { border-right: 0; border-radius: 10px 0 0 10px; }
405
+ .resource-split .resource-split-toggle { display: grid; place-items: center; width: 34px; min-height: 34px; padding: 0; border-radius: 0 10px 10px 0; color: var(--ink-2); }
406
+ .resource-split .resource-split-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
407
+ .resource-split .resource-split-toggle[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
408
+ .resource-split-menu { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; min-width: 160px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
409
+
410
+ /* Join approval */
411
+ .room-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
412
+ .room-policy { padding: 2px 7px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 10px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
413
+ .join-policy { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 5px; }
414
+ .join-policy input { position: relative; flex: none; appearance: none; width: 34px; height: 20px; margin: 2px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; transition: background .16s, border-color .16s; }
415
+ .join-policy input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(34 53 47 / .18); transition: transform .16s; }
416
+ .join-policy input:checked { border-color: var(--accent); background: var(--accent); }
417
+ .join-policy input:checked::after { transform: translateX(14px); background: var(--accent-ink); }
418
+ .join-policy input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
419
+ .join-policy-label { color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.45; cursor: pointer; }
420
+ .join-policy-hint { margin: 0 0 8px 43px; font-size: 12px; line-height: 1.45; }
421
+ .rail-join-policy { margin-top: 0; }
422
+ .rail-join-policy .join-policy-label { font-size: 12.5px; }
423
+ .rail-join-policy-hint { margin-left: 43px; font-size: 11px; }
424
+ .admin-join-policy { margin: 0 0 4px; }
425
+ .admin-join-policy + .join-policy-hint { margin-bottom: 12px; }
426
+ .join-pending { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px 14px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 65%, var(--surface)), var(--surface)); box-shadow: 0 2px 5px rgb(34 53 47 / .04), 0 14px 34px rgb(34 53 47 / .07); }
427
+ .join-pending-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--accent-ink); background: var(--accent); }
428
+ .join-pending-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
429
+ .join-pending h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
430
+ .join-pending p { margin: 5px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
431
+ .join-pending .hint { color: var(--ink-3); font-size: 12px; }
432
+ .join-pending-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
433
+ .join-pending-actions .btn { margin: 0; }
434
+ #joinPendingBody:empty, #joinPendingHint:empty { display: none; }
435
+ .join-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; width: 100%; max-width: 940px; margin: 0 auto 8px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface)); color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
436
+ .join-notice-text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
437
+ .join-notice-actions { display: flex; flex-wrap: wrap; gap: 6px; }
438
+ .join-notice .btn { min-height: 34px; margin: 0; }
439
+ @media (max-width: 420px) { .join-notice-actions .btn { min-height: 40px; } }
440
+ #memberPanel { width: min(360px, calc(100vw - 32px)); }
441
+ .join-requests { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
442
+ .join-requests-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
443
+ .join-requests h4 { margin: 0; color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
444
+ .join-requests-count { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; color: var(--accent-ink); background: var(--accent); font-size: 10px; font-weight: 700; }
445
+ .join-requests .hint { margin: 5px 0 7px; }
446
+ #joinRequestsStatus:empty { margin: 0; }
447
+ .join-request-list { display: grid; gap: 7px; max-height: 220px; overflow: auto; list-style: none; margin: 8px 0 0; padding: 0; }
448
+ .join-request-item { display: grid; gap: 7px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
449
+ .join-request-info { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; min-width: 0; }
450
+ .join-request-name { min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; font-weight: 600; }
451
+ .join-request-kind { padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface); font-size: 10px; font-weight: 700; }
452
+ .join-request-kind.agent { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); color: var(--accent); background: var(--accent-soft); }
453
+ .join-request-meta { flex-basis: 100%; color: var(--ink-3); font-size: 11px; }
454
+ .join-request-actions { display: flex; gap: 6px; }
455
+ .join-request-actions .btn { flex: 1 1 auto; min-height: 34px; padding: 6px 10px; font-size: 12.5px; }
456
+ .join-request-item[aria-busy="true"] { opacity: .7; }
457
+ .join-request-badge { margin-left: 4px; white-space: nowrap; }
458
+ @media (max-width: 700px) {
459
+ .join-pending { grid-template-columns: auto minmax(0, 1fr); }
460
+ .join-pending-actions { grid-column: 1 / -1; justify-content: flex-start; }
461
+ }
462
+ @media (max-width: 420px) {
463
+ .join-pending { grid-template-columns: minmax(0, 1fr); padding: 16px; }
464
+ .join-pending-mark { display: none; }
465
+ .join-pending-actions .btn { flex: 1 1 auto; min-height: 40px; }
466
+ .join-request-actions .btn { min-height: 40px; }
467
+ }
468
+ @media (forced-colors: active) {
469
+ .join-policy input { appearance: auto; width: auto; height: auto; }
470
+ .join-policy input::after { display: none; }
471
+ }
472
+
473
+ /* Conversation layout */