chirkle 0.3.0 → 0.4.1

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 (156) hide show
  1. package/README.md +99 -47
  2. package/bin/release/darwin-amd64/chirkle-server +4 -0
  3. package/bin/release/darwin-arm64/chirkle-server +0 -0
  4. package/bin/release/linux-amd64/chirkle-server +0 -0
  5. package/bin/release/linux-arm64/chirkle-server +0 -0
  6. package/package.json +9 -6
  7. package/pb_hooks/federation/inbox.js +2 -69
  8. package/pb_hooks/federation/messages.js +5 -3
  9. package/pb_hooks/federation/net.js +1 -0
  10. package/pb_hooks/federation/people.js +1 -0
  11. package/pb_hooks/federation.pb.js +1 -8
  12. package/pb_hooks/lib/access.js +33 -10
  13. package/pb_hooks/lib/account.js +542 -6
  14. package/pb_hooks/lib/anonymous.js +2 -129
  15. package/pb_hooks/lib/bulk.js +1 -2
  16. package/pb_hooks/lib/collections.js +4 -4
  17. package/pb_hooks/lib/dms.js +1 -1
  18. package/pb_hooks/lib/files.js +82 -120
  19. package/pb_hooks/lib/handles.js +2 -2
  20. package/pb_hooks/lib/inbox.js +40 -54
  21. package/pb_hooks/lib/invites.js +266 -0
  22. package/pb_hooks/lib/media.js +5 -43
  23. package/pb_hooks/lib/messages.js +72 -117
  24. package/pb_hooks/lib/moderation.js +2 -16
  25. package/pb_hooks/lib/reactions.js +28 -4
  26. package/pb_hooks/lib/retention.js +88 -0
  27. package/pb_hooks/lib/site.js +13 -2
  28. package/pb_hooks/lib/stats.js +6 -34
  29. package/pb_hooks/lib/users.js +88 -7
  30. package/pb_hooks/lib/worker.js +22 -1
  31. package/pb_hooks/main.pb.js +85 -94
  32. package/pb_hooks/telegram/api.js +64 -12
  33. package/pb_hooks/telegram/inbound.js +158 -31
  34. package/pb_hooks/telegram/links.js +4 -3
  35. package/pb_hooks/telegram/outbound.js +86 -45
  36. package/pb_hooks/telegram/people.js +3 -3
  37. package/pb_hooks/telegram/worker.js +59 -15
  38. package/pb_migrations/1760000045_password_reset.js +38 -0
  39. package/pb_migrations/1760000047_telegram_supergroup_ids.js +51 -0
  40. package/pb_migrations/1760000048_inbox_reactions_merged.js +24 -0
  41. package/pb_migrations/1760000049_inbox_room_index.js +22 -0
  42. package/pb_migrations/1760000050_messages_unread_index.js +22 -0
  43. package/pb_migrations/1760000051_users_kind.js +31 -0
  44. package/pb_migrations/1760000052_deleted_accounts.js +19 -0
  45. package/pb_migrations/1760000053_account_jobs.js +45 -0
  46. package/pb_migrations/1760000054_room_invites.js +39 -0
  47. package/pb_migrations/1760000055_invite_barred.js +16 -0
  48. package/pb_migrations/1760000056_telegram_fetch.js +21 -0
  49. package/pb_public/assets/{access-PB77EH4F.css → access-GPRLOZOO.css} +2 -2
  50. package/pb_public/assets/{access-PB77EH4F.css.map → access-GPRLOZOO.css.map} +2 -2
  51. package/pb_public/assets/access-UK3L54NR.js +2 -0
  52. package/pb_public/assets/access-UK3L54NR.js.map +7 -0
  53. package/pb_public/assets/account-CT2BVMAX.css +2 -0
  54. package/pb_public/assets/account-CT2BVMAX.css.map +7 -0
  55. package/pb_public/assets/account-api-J6A6IYVX.js +2 -0
  56. package/pb_public/assets/account-api-J6A6IYVX.js.map +7 -0
  57. package/pb_public/assets/app-HB3NZHQ2.js +3 -0
  58. package/pb_public/assets/app-HB3NZHQ2.js.map +7 -0
  59. package/pb_public/assets/app-XJ73EU5O.css +2 -0
  60. package/pb_public/assets/app-XJ73EU5O.css.map +7 -0
  61. package/pb_public/assets/chunk-56ACD3V5.js +2 -0
  62. package/pb_public/assets/chunk-56ACD3V5.js.map +7 -0
  63. package/pb_public/assets/chunk-AG73QNUN.js +2 -0
  64. package/pb_public/assets/chunk-AG73QNUN.js.map +7 -0
  65. package/pb_public/assets/chunk-DCLJRQ53.js +2 -0
  66. package/pb_public/assets/chunk-DCLJRQ53.js.map +7 -0
  67. package/pb_public/assets/chunk-DZC4SY4M.js +2 -0
  68. package/pb_public/assets/chunk-DZC4SY4M.js.map +7 -0
  69. package/pb_public/assets/chunk-N2OFGBCZ.js +2 -0
  70. package/pb_public/assets/chunk-N2OFGBCZ.js.map +7 -0
  71. package/pb_public/assets/chunk-OKIIBH7O.js +2 -0
  72. package/pb_public/assets/chunk-OKIIBH7O.js.map +7 -0
  73. package/pb_public/assets/chunk-RPCBA7VF.js +2 -0
  74. package/pb_public/assets/chunk-RPCBA7VF.js.map +7 -0
  75. package/pb_public/assets/chunk-UZDXAORM.js +2 -0
  76. package/pb_public/assets/chunk-UZDXAORM.js.map +7 -0
  77. package/pb_public/assets/chunk-VTOUI25E.js +4 -0
  78. package/pb_public/assets/chunk-VTOUI25E.js.map +7 -0
  79. package/pb_public/assets/chunk-WR25F7FU.js +2 -0
  80. package/pb_public/assets/chunk-WR25F7FU.js.map +7 -0
  81. package/pb_public/assets/{emoji-VA2WCEAC.css → emoji-WWNPWCF3.css} +2 -2
  82. package/pb_public/assets/{emoji-VA2WCEAC.css.map → emoji-WWNPWCF3.css.map} +2 -2
  83. package/pb_public/assets/{emoji-picker-65VVVGYW.js → emoji-picker-K6JTK2GV.js} +4 -4
  84. package/pb_public/assets/emoji-picker-K6JTK2GV.js.map +7 -0
  85. package/pb_public/assets/forward-267HRNPY.js +2 -0
  86. package/pb_public/assets/forward-267HRNPY.js.map +7 -0
  87. package/pb_public/assets/inbox-CLMYESNI.js +2 -0
  88. package/pb_public/assets/inbox-CLMYESNI.js.map +7 -0
  89. package/pb_public/assets/invite-OGT5E2MZ.js +2 -0
  90. package/pb_public/assets/invite-OGT5E2MZ.js.map +7 -0
  91. package/pb_public/assets/invite-api-7G7XPXQW.js +2 -0
  92. package/pb_public/assets/invite-api-7G7XPXQW.js.map +7 -0
  93. package/pb_public/assets/lazy-H3KIJVB5.js +2 -0
  94. package/pb_public/assets/lazy-H3KIJVB5.js.map +7 -0
  95. package/pb_public/assets/login-TK6K4WGB.js +2 -0
  96. package/pb_public/assets/login-TK6K4WGB.js.map +7 -0
  97. package/pb_public/assets/media-WZ4653L5.js +2 -0
  98. package/pb_public/assets/media-WZ4653L5.js.map +7 -0
  99. package/pb_public/assets/mention-suggest-ODJD2IC5.js +2 -0
  100. package/pb_public/assets/mention-suggest-ODJD2IC5.js.map +7 -0
  101. package/pb_public/assets/notify-EPDM772N.js +2 -0
  102. package/pb_public/assets/notify-EPDM772N.js.map +7 -0
  103. package/pb_public/assets/profile-3R6S5QYS.js +2 -0
  104. package/pb_public/assets/profile-3R6S5QYS.js.map +7 -0
  105. package/pb_public/assets/search-WCHOGAJQ.js +2 -0
  106. package/pb_public/assets/search-WCHOGAJQ.js.map +7 -0
  107. package/pb_public/assets/stats-GTO2H6PG.js +2 -0
  108. package/pb_public/assets/stats-GTO2H6PG.js.map +7 -0
  109. package/pb_public/assets/switcher-TFSO45KV.js +2 -0
  110. package/pb_public/assets/switcher-TFSO45KV.js.map +7 -0
  111. package/pb_public/assets/user-search-3HQOCQWL.js +2 -0
  112. package/pb_public/assets/user-search-3HQOCQWL.js.map +7 -0
  113. package/pb_public/assets/viewer-2Y5FJBW4.js +2 -0
  114. package/pb_public/assets/viewer-2Y5FJBW4.js.map +7 -0
  115. package/pb_public/index.html +10 -2
  116. package/pb_public/stats.html +1 -1
  117. package/scripts/service.mjs +201 -0
  118. package/scripts/start.mjs +21 -17
  119. package/pb_hooks/lib/enrich.js +0 -75
  120. package/pb_hooks/lib/lists.js +0 -179
  121. package/pb_hooks/lib/live.js +0 -137
  122. package/pb_hooks/lib/reads.js +0 -183
  123. package/pb_public/assets/access-GUDTDXIP.js +0 -2
  124. package/pb_public/assets/access-GUDTDXIP.js.map +0 -7
  125. package/pb_public/assets/app-3WX5JYL2.js +0 -3
  126. package/pb_public/assets/app-3WX5JYL2.js.map +0 -7
  127. package/pb_public/assets/app-WAFKVN2H.css +0 -2
  128. package/pb_public/assets/app-WAFKVN2H.css.map +0 -7
  129. package/pb_public/assets/emoji-picker-65VVVGYW.js.map +0 -7
  130. package/pb_public/assets/forward-66PELNWT.js +0 -2
  131. package/pb_public/assets/forward-66PELNWT.js.map +0 -7
  132. package/pb_public/assets/inbox-TZJWPRTG.js +0 -2
  133. package/pb_public/assets/inbox-TZJWPRTG.js.map +0 -7
  134. package/pb_public/assets/lazy-4CXRBHHM.js +0 -2
  135. package/pb_public/assets/lazy-4CXRBHHM.js.map +0 -7
  136. package/pb_public/assets/login-G7Y44CJ7.js +0 -2
  137. package/pb_public/assets/login-G7Y44CJ7.js.map +0 -7
  138. package/pb_public/assets/media-FPRU2QH5.js +0 -2
  139. package/pb_public/assets/media-FPRU2QH5.js.map +0 -7
  140. package/pb_public/assets/mention-suggest-R7MXUH6R.js +0 -2
  141. package/pb_public/assets/mention-suggest-R7MXUH6R.js.map +0 -7
  142. package/pb_public/assets/notify-RQ6ZLR46.js +0 -2
  143. package/pb_public/assets/notify-RQ6ZLR46.js.map +0 -7
  144. package/pb_public/assets/profile-2CNVT2KX.js +0 -2
  145. package/pb_public/assets/profile-2CNVT2KX.js.map +0 -7
  146. package/pb_public/assets/search-3UT4HMES.js +0 -2
  147. package/pb_public/assets/search-3UT4HMES.js.map +0 -7
  148. package/pb_public/assets/stats-JX52AQCO.js +0 -2
  149. package/pb_public/assets/stats-JX52AQCO.js.map +0 -7
  150. package/pb_public/assets/switcher-CEUKRLEY.js +0 -2
  151. package/pb_public/assets/switcher-CEUKRLEY.js.map +0 -7
  152. package/pb_public/assets/user-search-7GNEIXMN.js +0 -2
  153. package/pb_public/assets/user-search-7GNEIXMN.js.map +0 -7
  154. package/pb_public/assets/viewer-DXT7SKOU.js +0 -2
  155. package/pb_public/assets/viewer-DXT7SKOU.js.map +0 -7
  156. package/scripts/fetch-pocketbase.sh +0 -63
@@ -0,0 +1,2 @@
1
+ @font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("./inter-cyrillic-ext-IYF56FF6.woff2") format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("./inter-cyrillic-JEOLYBOO.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("./inter-greek-IRE366VL.woff2") format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("./inter-latin-ext-HA22NDSG.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("./inter-latin-NRMW37G5.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{color-scheme:light dark;--bg: #fbfaff;--surface: #f1eefc;--raised: #fff;--fg: #1d1530;--text: #1d1530;--muted: #5e5874;--dim: #645e7c;--border: #e3ddf5;--line: #e3ddf5;--hover: #e9e4fb;--accent: #5b3df5;--fill: #5b3df5;--on-fill: #fff;--accent-2: #c42a7c;--grad: linear-gradient(135deg, #6a4bff, #c42a7c);--tint: color-mix(in srgb, var(--accent) 14%, transparent);--danger: #c41d36;--new: #b0175f;--highlight: #fff1b8;--shadow: 0 6px 24px rgb(60 30 140 / 14%);--radius: 10px;--pill: 999px;--ease: cubic-bezier(.34, 1.56, .64, 1);font:16px/1.5 Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-feature-settings:"calt" 0}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #1a1b1e;--surface: #111214;--raised: #232428;--fg: #ecece8;--text: #e0e0db;--muted: #b0b4ba;--dim: #9ea2a9;--border: #3a3d42;--line: #2a2c30;--hover: #2a2c30;--accent: #a58bff;--fill: #a58bff;--on-fill: #16181a;--danger: #ff7a8f;--new: #f9a8d4;--highlight: #3d3314;--shadow: 0 12px 32px rgb(0 0 0 / 45%)}}:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark;--bg: #1a1b1e;--surface: #111214;--raised: #232428;--fg: #ecece8;--text: #e0e0db;--muted: #b0b4ba;--dim: #9ea2a9;--border: #3a3d42;--line: #2a2c30;--hover: #2a2c30;--accent: #a58bff;--fill: #a58bff;--on-fill: #16181a;--danger: #ff7a8f;--new: #f9a8d4;--highlight: #3d3314;--shadow: 0 12px 32px rgb(0 0 0 / 45%)}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--fg);font-size:.875rem}@media(max-width:720px){body{font-size:.9375rem}body input,body textarea,body select{font-size:1rem}}::selection{background:color-mix(in srgb,var(--accent) 35%,transparent)}*{scrollbar-width:thin;scrollbar-color:var(--border) transparent}a{color:var(--accent)}h1,h2{margin:0;line-height:1.2;font-weight:700;letter-spacing:-.01em}button,input,textarea{margin:0;font:inherit;color:inherit}button,label.button{padding:.45rem .9rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--raised);font-weight:600;cursor:pointer;transition:transform .15s var(--ease),background-color .15s}@media(hover:hover){button:hover:not(:disabled){background:var(--hover)}}button:active:not(:disabled){transform:scale(.95)}button:disabled{opacity:.5;cursor:default}button.primary,.auth-form button[type=submit],.composer button[type=submit],.new-room button[type=submit]{border-color:transparent;background:var(--fill);color:var(--on-fill)}@media(hover:hover){button.primary:hover:not(:disabled),.auth-form button[type=submit]:hover:not(:disabled),.composer button[type=submit]:hover:not(:disabled),.new-room button[type=submit]:hover:not(:disabled){background:var(--fill);filter:brightness(1.12)}}button.danger{color:var(--danger);border-color:currentcolor}button.link{border:0;background:none;color:var(--accent);padding:.25rem}input,textarea{width:100%;padding:.55rem .75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);transition:border-color .15s}input:focus,textarea:focus{border-color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.i,.ic:before{content:"";display:inline-block;flex:none;width:18px;height:18px;background:currentcolor;mask:var(--i) center / contain no-repeat}.icon-button{display:inline-flex;flex:none;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:none;color:var(--muted)}input:focus-visible,textarea:focus-visible{outline:3px solid var(--tint);outline-offset:0}[aria-invalid=true]{border-color:var(--danger)}.field-error,.form-error,.list-error,.room-error,.send-error,.msg-error{color:var(--danger);font-size:.85rem;margin:.25rem 0}.field-error:empty,.form-error:empty,.list-error:empty,.room-error:empty{display:none}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.i-search{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")}.i-lock{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}.i-globe{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E")}.i-chev{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}.i-back{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E")}.i-plus{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}.i-gear{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/%3E%3C/svg%3E")}.i-dots{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3C/svg%3E")}.i-media{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E")}.i-clip{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.4 11.1-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E")}.i-smile{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01'/%3E%3C/svg%3E")}.i-send{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")}.i-react{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6-8.5M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01M19 2v6M16 5h6'/%3E%3C/svg%3E")}.i-reply{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17 4 12l5-5M20 18v-2a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E")}.i-fwd{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 17 5-5-5-5M4 18v-2a4 4 0 0 1 4-4h12'/%3E%3C/svg%3E")}.i-check{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E")}.i-edit{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E")}.i-trash{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3C/svg%3E")}.i-x{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E")}.i-upload{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E")}.i-down{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E")}.i-top{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14M12 21V8M6 13l6-6 6 6'/%3E%3C/svg%3E")}.i-eyeoff{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.2A10 10 0 0 1 12 4c6.5 0 10 8 10 8a17 17 0 0 1-2.2 3.2M6.6 6.6A17 17 0 0 0 2 12s3.5 8 10 8a10 10 0 0 0 5.4-1.6M3 3l18 18M10 10a3 3 0 0 0 4 4'/%3E%3C/svg%3E")}.i-archive{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1'/%3E%3Cpath d='M5 9v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9M10 13h4'/%3E%3C/svg%3E")}.i-bell{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E")}.i-users{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 6-6h2a6 6 0 0 1 6 6v1M16 4a4 4 0 0 1 0 8M22 21v-1a6 6 0 0 0-4-5.6'/%3E%3C/svg%3E")}.i-file{--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9Z'/%3E%3Cpath d='M14 3v6h6'/%3E%3C/svg%3E")}html,body,#app{height:100%}html{touch-action:manipulation}#app{display:flex;flex-direction:column;height:100dvh}.app-bar{display:flex;gap:.75rem;align-items:center;min-height:60px;padding:0 .5rem 0 1rem;border-bottom:1px solid var(--line);background:var(--surface)}#app:has(.auth) .guest-links{display:none}@media(min-width:721px){#app:has(.layout)>.app-bar{display:none}}.brand{display:flex;flex:0 1 auto;min-width:0;gap:.6rem;align-items:center;font-size:1rem;font-weight:700;letter-spacing:-.01em}.brand:before{content:"";flex:none;width:30px;height:30px;background:url(/icons/icon.svg) center / contain no-repeat}.brand.has-logo:before{content:none}.brand-logo{flex:none;height:1.75rem;max-width:6rem;object-fit:contain}.brand-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-name{display:grid;min-width:0}div.brand{position:relative}div.brand .brand-title:after{content:"";position:absolute;inset:0}.brand-by{font-size:.75rem;font-weight:400;color:var(--muted)}.brand-by a{position:relative;color:inherit}.bar-end{display:flex;gap:.25rem;align-items:center;min-width:0;margin-left:auto}.me-link{display:flex;flex:1;gap:.6rem;align-items:center;min-width:0;padding:.4rem;border-radius:var(--radius);color:var(--fg);font-weight:600;text-decoration:none}.who{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-bar .me-link{padding:6px}.app-bar .who{display:none}@media(hover:hover){.me-link:hover,.icon-button:hover{background:var(--hover)}}.me-link[aria-current=page]{background:var(--tint)}.app-bar .icon-button{width:44px;height:44px}.update-bar{padding:6px 16px;text-align:center;background:var(--tint);font-size:.875rem}.app-main{flex:1;min-height:0;overflow-y:auto}.layout{display:flex;height:100%;background:var(--surface)}.sidebar{display:flex;flex:0 0 280px;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--line);background:var(--surface)}.sidebar .rooms{display:flex;flex:1;flex-direction:column;min-height:0;max-width:none;margin:0;padding:0}.sidebar nav{flex:1;padding:0 12px 12px;overflow-y:auto}.side-top{display:flex;flex-direction:column;padding:14px 14px 12px}.side-top .brand{height:44px;padding:0 8px;color:var(--fg)}.jump-button{display:flex;flex:1;gap:10px;align-items:center;min-width:0;height:34px;padding:0 8px 0 10px;border:0;border-radius:8px;background:none;color:var(--muted);font-weight:500;text-align:left}.jump-button:before{width:16px;height:16px}.jump-button span{flex:1}.jump-button kbd{transition:color .15s}.jump-row:hover kbd{color:var(--text)}.jump-button:active:not(:disabled){transform:none}.side-foot{display:flex;flex:none;flex-wrap:wrap;gap:4px;align-items:center;min-height:68px;padding:8px 12px 8px 10px;border-top:1px solid var(--line)}.side-foot .me-link{gap:10px;height:48px;padding:0 8px}.side-foot .avatar{width:34px;height:34px}.side-foot .icon-button:before{width:17px;height:17px}.side-foot p{flex-basis:100%;margin:4px 4px 6px;color:var(--muted);font-size:.8125rem}.side-foot .button{flex:1}a.button,.guest-link{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 1rem;border:1px solid var(--border);border-radius:var(--radius);color:var(--fg);font-weight:600;text-decoration:none}a.button.primary,.guest-link.primary{border-color:transparent;background:var(--fill);color:var(--on-fill)}.pane{flex:1;min-width:0;overflow-y:auto;background:var(--bg)}.welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:2rem 1rem;text-align:center}.welcome:before{content:"\1f44b";margin-bottom:.75rem;font-size:3.5rem;animation:wave 2s ease-in-out infinite}.welcome h1{margin:0 0 .5rem;font-size:1.75rem}.welcome p{margin:0;color:var(--muted)}.invite-page p+p{margin-top:.75rem}.loadbar{position:relative;z-index:3;flex:none;height:0}.loadbar.on:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent) -70% 0 / 40% 100% no-repeat;animation:loadbar 1.2s ease-in-out infinite}@keyframes loadbar{to{background-position:170% 0}}.avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;border-radius:50%;object-fit:cover;overflow:hidden;font-weight:700;line-height:1;color:#fff;user-select:none}.avatar.s24{width:24px;height:24px;font-size:.6rem}.avatar.s32{width:32px;height:32px;font-size:.75rem}.msg>.avatar.s32{width:36px;height:36px}.avatar.s96{width:96px;height:96px;font-size:2rem;box-shadow:0 0 0 4px var(--bg),0 0 0 7px var(--accent)}.avatar.c0{background:#c4213b}.avatar.c1{background:#b04a00}.avatar.c2{background:#7a6000}.avatar.c3{background:#22803a}.avatar.c4{background:#00796b}.avatar.c5{background:#1d63d8}.avatar.c6{background:#7b3fe4}.avatar.c7{background:#c01a6e}.profile-body{display:flex;flex-direction:column;gap:20px;max-width:736px;padding:28px 28px 48px}.card,.profile-notify{display:flex;flex-direction:column;gap:14px;margin:0;padding:18px 20px 20px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--fg) 3%,var(--bg))}.profile-body h2,.card legend,.profile-notify legend{margin:0;padding:0;font-size:.9375rem;font-weight:600;line-height:1.3;letter-spacing:0}.card legend,.profile-notify legend{float:left;width:100%}.profile-avatar{display:flex;gap:16px;align-items:center}.profile-avatar h2{margin-bottom:8px}.profile-picture.busy{opacity:.6}.profile-avatar-actions{display:flex;flex-wrap:wrap;gap:8px}.profile-avatar-actions>.button,.profile-avatar-actions>button{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-color:transparent;border-radius:9px;font-size:.8125rem}label.button{background:var(--hover)}.profile-avatar-actions button{padding:0 12px;background:none;color:var(--muted)}label.button:focus-within,.profile-avatar-actions input:focus-visible+label.button{outline:2px solid var(--accent);outline-offset:2px}label.button.disabled{opacity:.5;pointer-events:none}.profile-theme:not(.profile-notify){display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:16px;row-gap:3px}.profile-theme legend{grid-column:1}.field-status{margin:.25rem 0;font-size:.8125rem;color:var(--muted)}.profile-theme .field-status{grid-column:1;margin:0;line-height:1.3}.profile-theme{padding-bottom:18px}.segmented{display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:var(--surface)}.profile-theme .segmented{grid-column:2;grid-row:1 / span 2}.segmented label{position:relative;padding:0 14px;border-radius:8px;color:var(--muted);font-size:.8125rem;font-weight:600;line-height:32px;cursor:pointer}.segmented label:has(input:checked){background:var(--hover);color:var(--fg)}.segmented label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.segmented input{position:absolute;opacity:0;pointer-events:none}.profile-password{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-password>:not(.field:nth-of-type(n+2)){grid-column:1 / -1}.profile-password button{justify-self:start}.profile-name label,.field label{display:block;margin-bottom:6px;color:var(--muted);font-size:.8125rem;font-weight:600}.profile-name .row{display:flex;gap:8px}.profile-name input{flex:1;min-width:0}.field-status.error{color:var(--danger)}.profile-password .field-status,.profile-password .field-error{margin:0}.profile-session{flex-direction:row;align-items:center;justify-content:space-between}.profile-session .field-status{margin:3px 0 0}.profile-session>button{flex:none;white-space:nowrap}.profile-notify{gap:0;padding-bottom:0}.profile-notify legend{order:-2;margin-bottom:3px}.profile-notify>.field-status{order:-1;margin:0 0 10px}.profile-notify>.field-status:empty{margin:0}.profile-avatar .avatar{width:72px;height:72px;font-size:1.5rem;box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--accent)}.notify-choice{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;min-height:52px;margin:0 -20px;padding:0 20px;border-top:1px solid var(--line);cursor:pointer}.notify-choice input,input.switch{appearance:none;flex:none;width:36px;height:22px;margin:0;padding:0;border:0;border-radius:11px;background:radial-gradient(circle 9px at 11px 50%,#fff 98%,transparent) var(--border);cursor:pointer;transition:background-position .15s}.notify-choice input:checked,input.switch:checked{background-color:var(--fill);background-position:14px 0}@media(max-width:720px){.profile-body{padding:20px 16px 40px}.profile-password{grid-template-columns:1fr}}@media(max-width:480px){.profile-theme:not(.profile-notify){grid-template-columns:1fr}.profile-theme .segmented{grid-column:1;grid-row:auto;justify-self:start;margin-top:10px}}.app-main:has(>.auth){display:flex;background:var(--page, var(--bg))}.auth{display:flex;flex-direction:column;gap:24px;width:100%;max-width:420px;margin:auto;padding:2rem 1rem}.auth h1{display:flex;flex-direction:column;gap:14px;align-items:center;font-size:1.625rem;text-align:center}.auth h1:not(.has-logo):before{content:"";width:56px;height:56px;background:url(/icons/icon.svg) center / contain no-repeat}.auth .brand-by{margin:-18px 0 0;text-align:center}.auth h1 .brand-logo{display:block;height:4rem;max-width:12rem}.auth-card{display:flex;flex-direction:column;gap:18px;padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--raised);animation:pop .4s var(--ease)}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:3px;border-radius:10px;background:var(--surface)}[role=tab]{height:36px;border:0;border-radius:8px;background:none;color:var(--muted)}[role=tab][aria-selected=true]{background:var(--hover);color:var(--fg)}.field{margin-bottom:14px}.field input{height:42px}.auth-forgot{display:block;margin:-6px 0 10px auto}.auth-card h2{margin:0;font-size:1.125rem}.auth-hint{margin:0 0 14px;color:var(--muted)}.auth-back{align-self:center}.auth-form button[type=submit]{width:100%;height:44px;margin-top:4px;font-size:.9375rem}.rooms{max-width:40rem;margin:0 auto;padding:1rem}.section-head{display:flex;align-items:center;justify-content:space-between;padding:16px 6px 6px 4px}.room-section h2{font-size:inherit}.fold,.room-section>summary{display:flex;gap:6px;align-items:center;height:28px;padding:0 8px 0 4px;border:0;border-radius:6px;background:none;color:var(--dim);font-size:.75rem;font-weight:600;letter-spacing:0;list-style:none;cursor:pointer}.room-section .section-title{display:flex;align-items:center;height:28px;padding:0 8px;color:var(--dim);font-size:.75rem;font-weight:600}.room-section>summary::-webkit-details-marker{display:none}.fold:before,.room-section>summary:before{width:12px;height:12px;transition:transform .15s}.fold[aria-expanded=false]:before,.room-section:not([open])>summary:before{transform:rotate(-90deg)}.section-head .icon-button{width:26px;height:26px;color:var(--dim)}.section-head .icon-button:before{width:15px;height:15px}.section-head .icon-button[aria-expanded=true]{background:var(--tint);color:var(--accent)}.room-section ul{margin:0;padding:0;list-style:none}.room-section li{position:relative;display:flex;align-items:center;margin:2px 0;border-radius:8px}@media(hover:hover){.room-section li:hover{background:var(--hover)}}.room-section li a{display:flex;flex:1;gap:10px;align-items:center;min-width:0;height:34px;padding:0 10px;color:var(--muted);font-weight:500;text-decoration:none}.room-section li a:before{content:"#";width:16px;color:var(--dim);font-weight:600;text-align:center}.more-body li a{height:32px;color:var(--dim)}.room-section li.dm a,.room-section[data-section=collections] li a{height:36px}.room-section li.dm a:before{content:none}.room-section li.dm .avatar{width:22px;height:22px;font-size:10px}.room-section li a>span:not(.avatar,.badge,.vis,.owner,.ci,.n){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-section li a.unread,.room-section li a[aria-current=page]{color:var(--fg);font-weight:600}.room-section li a[aria-current=page]:before{color:var(--accent)}.room-section li:has(a[aria-current=page]){background:var(--tint)}.room-section li a>.vis{color:var(--dim)}.room-section li a>.vis:before{width:14px;height:14px}.badge{flex:none;min-width:20px;margin-left:auto;padding:0 6px;border-radius:10px;background:var(--fill);color:var(--on-fill);font-size:.6875rem;font-weight:700;line-height:20px;text-align:center}@media(hover:hover){.room-section li>.row-action{position:absolute;right:0;opacity:0}.room-section li:hover>.row-action,.room-section li:focus-within>.row-action{position:static;opacity:1}}.row-action{flex:none;margin-right:4px;height:26px;padding:0 9px;border:0;border-radius:6px;background:var(--hover);font-size:.75rem}.room-section[data-section=more]>summary{justify-content:flex-start;margin:18px 6px 0 4px}.room-section[data-section=more] .count{margin-left:auto}.more-body{margin:2px 0 4px;padding:2px 0 6px;border-radius:10px;background:var(--hover)}.more-part h3{display:flex;gap:8px;align-items:center;margin:0;padding:8px 10px 4px;color:var(--dim);font-size:.6875rem;font-weight:600}.more-part h3:before{width:13px;height:13px}.empty{color:var(--muted)}.more-body .empty{margin:0;padding:8px 10px}.new-room{display:flex;flex-direction:column;gap:8px;margin:2px 2px 8px;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--raised);animation:pop .25s var(--ease)}.name-field{display:flex;gap:6px;align-items:center;height:36px;padding:0 10px;border:1px solid var(--accent);border-radius:8px;background:var(--surface);color:var(--dim);font-weight:600}.name-field input{padding:0;border:0;background:none;outline:none;color:var(--fg);font-weight:400}.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;margin:0;padding:2px;border:0;border-radius:8px;background:var(--surface)}.seg label{display:flex;gap:5px;align-items:center;justify-content:center;height:30px;border-radius:6px;color:var(--muted);font-size:.75rem;font-weight:600;cursor:pointer}.seg label:before{width:12px;height:12px}.seg label:has(:checked){background:var(--hover);color:var(--fg)}.seg label:has(:focus-visible){outline:2px solid var(--accent)}.new-room .hint{margin:0 2px;color:var(--muted);font-size:.75rem}.form-buttons{display:flex;gap:6px;justify-content:flex-end}.form-buttons button{height:32px;padding:0 12px;font-size:.8125rem}.form-buttons .cancel{border-color:transparent;background:none}.user-search{margin:.25rem 0 .5rem}.search-status{margin:.25rem 0;font-size:.8rem;color:var(--muted)}.search-results{margin:0;padding:0;list-style:none}.search-results .person{display:flex;gap:.5rem;align-items:center;width:100%;border:0;border-radius:var(--radius);background:none;text-align:left}.search-results .person>span:last-child,.switcher .name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu{position:relative}.menu>summary{list-style:none;cursor:pointer}.menu>summary::-webkit-details-marker{display:none}.menu>summary.ic{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;color:var(--muted)}.room-section .menu>summary.i-dots{width:26px;height:26px;border-radius:6px}.menu>summary:hover,.menu[open]>summary{background:var(--hover);color:var(--fg)}.menu-items{position:absolute;top:calc(100% + 4px);right:0;z-index:10;display:flex;flex-direction:column;gap:2px;min-width:17.5rem;max-width:20rem;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--raised);box-shadow:var(--shadow);animation:pop .2s var(--ease);transform-origin:top right}.menu-items button{display:flex;gap:12px;align-items:center;min-height:38px;padding:0 10px;border:0;border-radius:8px;background:none;font-weight:400;text-align:left}.menu-items button:hover{background:var(--hover)}.menu-items button:before{width:16px;height:16px;color:var(--muted)}.menu-items .tile:before{width:16px;height:16px;color:var(--muted)}.menu-items small{display:block;color:var(--muted);font-size:.6875rem;line-height:1.35}.menu-items .value{margin-left:auto;color:var(--muted);font-size:.75rem}.menu-items button:has(small){padding:6px 10px}.attach+.menu-items .tile{--hue: #a78bfa;display:flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:color-mix(in srgb,var(--hue) 16%,transparent)}.attach+.menu-items button+button .tile{--hue: #38bdf8}.attach+.menu-items .tile:before{color:color-mix(in srgb,var(--hue) 70%,var(--fg))}.attach+.menu-items button{padding:8px 10px;font-weight:600}.attach+.menu-items small{margin-top:2px;font-size:.75rem;font-weight:400}.menu-items .sep{margin-top:11px;box-shadow:0 -7px 0 -6px var(--border)}.menu-items [aria-checked]{justify-content:flex-start}.menu-items [aria-checked]:after{content:"";width:36px;height:22px;margin-left:auto;border-radius:11px;background:radial-gradient(circle 9px at 11px 50%,#fff 98%,transparent) var(--border);transition:background-position .15s}.menu-items [aria-checked=true]:after{background-color:var(--fill);background-position:14px 0}.menu-items p{margin:.25rem .5rem;font-size:.9rem}.room{display:flex;flex-direction:column;height:100%}.room-header{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;min-height:64px;padding:0 20px 0 28px;border-bottom:1px solid var(--line)}.room-header h1{display:flex;flex:1;gap:10px;align-items:center;min-width:0;font-size:1.125rem}.day span{padding:3px 10px;border:1px solid var(--border);border-radius:10px}.previews span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.room-header h1 .name,.room-header h1.dm-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-header .hash{width:auto;margin-right:2px;color:var(--dim);font-weight:600}.vis-badge{display:inline-flex;flex:none;gap:5px;align-items:center;height:24px;padding:0 9px;border-radius:12px;background:var(--hover);color:var(--muted);font-size:.75rem;font-weight:600;letter-spacing:0}.vis-badge:before{width:12px;height:12px}.room-members{position:relative;display:flex;gap:8px;align-items:center;height:36px;margin-right:13px;padding:0 10px 0 6px;border:0;border-radius:18px;background:none;color:var(--muted);font-size:.8125rem}.room-members:after{content:"";position:absolute;right:-13px;width:1px;height:20px;background:var(--border)}.faces{display:flex}.faces .avatar{border:2px solid var(--bg);box-sizing:content-box}.msg>.avatar{position:absolute;top:8px;left:28px}.faces .avatar+.avatar{margin-left:-8px}.room-header .room-error{flex-basis:100%}.room-header .room-shared{flex-basis:100%;margin:0;color:var(--muted);font-size:.8rem}.back{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-16px;border-radius:12px;color:var(--muted)}.back:before{width:22px;height:22px}.room-body{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}.messages{flex:1;min-height:0;overflow-y:auto;overflow-anchor:auto;margin:0;padding:12px 0 8px;list-style:none}.sentinel{height:1px}.beginning,.load-error,.service{padding:1.5rem 0 1rem;color:var(--muted);text-align:center;overflow-wrap:anywhere}.beginning:before{content:"\2728";display:block;font-size:2rem}.day{display:flex;gap:12px;align-items:center;margin:8px 28px 4px;color:var(--muted);font-size:.75rem;font-weight:600}.day:before,.day:after{content:"";flex:1;border-top:1px solid var(--line)}.service{padding:.5rem;font-size:.8rem}.msg{position:relative;padding:2px 28px 2px 78px;color:var(--text);line-height:1.55;transition:background-color .1s}.msg.group-start>.reply-quote~.avatar{top:30px}.msg.group-start{min-height:50px;padding-top:6px;margin-top:6px}@media(hover:hover){.messages:not(.by-touch) .msg:hover{background:color-mix(in srgb,var(--fill) 7%,transparent)}}.meta{display:flex;gap:8px;align-items:baseline;min-width:0;line-height:1.5}.author{min-width:0;overflow:hidden;color:var(--fg);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.meta time,.permalink{flex:none}.permalink:not(:hover){text-decoration:none}.author-menu{min-width:0}.author-menu>summary.author{display:block;padding:0;color:inherit}.author-menu>summary.author:hover,.author-menu[open]>summary.author{background:none;text-decoration:underline}.author-menu .menu-items{right:auto;left:0;min-width:8rem;transform-origin:top left}.author-menu.up .menu-items{top:auto;bottom:calc(100% + 4px);transform-origin:bottom left}.meta time,.permalink,.edited,.hint,.counter{font-size:.75rem;color:var(--dim)}.body{white-space:pre-wrap;overflow-wrap:anywhere}.edited{margin-left:.35rem}.msg .body,.msg .edited{display:inline}.placeholder{font-style:italic;color:var(--muted)}.previews{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:6px 0 2px;padding:0;list-style:none;font-size:.8125rem;font-weight:600}.previews li{max-width:100%}.previews a{display:flex;gap:8px;align-items:center;height:32px;padding:0 12px 0 8px;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--fg) 4%,transparent);text-decoration:none}.search-toggle[aria-expanded=true]{background:var(--tint);color:var(--fg)}.room-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:10px;align-items:center;padding:10px 20px 10px 28px;border-bottom:1px solid var(--line);background:var(--raised);box-shadow:0 12px 24px #0003}.search-bar{display:contents}.room-search:before{z-index:1;grid-area:1 / 1;width:16px;height:16px;margin-left:14px;color:var(--dim);pointer-events:none}.search-bar input{grid-area:1 / 1;height:42px;padding-left:40px}.search-bar button{grid-area:1 / 3}.room-search .search-status{grid-area:1 / 2;margin:0;color:var(--muted);font-size:.8125rem}.room-search .search-results{grid-column:1 / -1;max-height:45vh;overflow-y:auto;margin:6px -12px 0 -16px;padding:0;list-style:none}.room-search .search-results .link{display:block;height:34px;margin:6px auto 4px;padding:0 14px;border:1px solid var(--border);border-radius:10px;color:var(--fg);font-size:.8125rem;text-decoration:none}.search-result{display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:12px;width:100%;padding:7px 12px;border:0;border-radius:10px;background:none;text-align:left;font-weight:400}.search-result .avatar{grid-row:1 / 3;width:26px;height:26px;margin-top:2px;font-size:.625rem}.search-result .body{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.search-result mark{background:var(--highlight);color:inherit}.reply-quote{display:flex;gap:6px;align-items:center;max-width:calc(100% + 32px);margin:0 0 2px -32px;padding:0 4px 0 0;border:0;border-radius:6px;background:none;color:var(--dim);font-size:.75rem;font-weight:400;line-height:1.5;text-align:left}.reply-quote:before{content:"";flex:none;align-self:flex-end;width:26px;height:10px;margin-bottom:-4px;border:solid var(--border);border-width:2px 0 0 2px;border-top-left-radius:6px}.msg:not(.group-start)>.reply-quote{max-width:100%;margin-left:0}.msg:not(.group-start)>.reply-quote:before{content:none}.reply-quote:active:not(:disabled){transform:none}@media(hover:hover){.reply-quote:hover{color:var(--fg)}}.reply-author{flex:0 .15 auto;min-width:0;max-width:20em;overflow:hidden;color:var(--muted);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.reply-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-quote.deleted .reply-text{padding-right:.15em;font-style:italic}.replying{display:flex;gap:10px;align-items:center;min-height:40px;padding:0 14px 0 22px;border-top:1px solid var(--line);color:var(--muted);font-size:.8125rem}.replying-label{flex:1;min-width:0;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.replying-label strong{color:var(--fg);font-weight:600}.replying-text:before{content:" \b7 "}.replying .remove{width:28px;height:28px}.mention{color:var(--accent);font-weight:600}.mention.me{border-radius:4px;background:var(--tint);color:var(--text)}.room-section[data-section=inbox] a:before{content:"@"}.badge+.badge{margin-left:0}.attachments{margin:.3rem 0 .15rem}.att-images{--att-h: 120px;--att-max-w: 240px;display:flex;flex-wrap:wrap;gap:4px}.att-images.one{--att-h: 240px;--att-max-w: 400px}.att-tile{position:relative;display:block;min-width:calc(var(--att-h) / 2);max-width:min(100%,var(--att-max-w));height:var(--att-h);overflow:hidden;border-radius:var(--radius);background:var(--surface)}.att-tile img,.att-tile video{display:block;width:auto;max-width:100%;height:100%;margin-inline:auto;object-fit:scale-down;transition:transform .25s}.att-tile video{pointer-events:none}.att-tile:hover img,.att-tile:hover video{transform:scale(1.05)}.att-play{position:absolute;inset:50% auto auto 50%;translate:-50% -50%;display:grid;place-items:center;width:min(2.75rem,40%);aspect-ratio:1;border-radius:50%;background:#0d0b1499;pointer-events:none}.att-play:before{content:"";width:55%;height:55%;background:#fff;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat}.att-broken{display:flex;flex-wrap:wrap;gap:.25rem;align-items:center;justify-content:center;padding:.5rem;border:2px dashed var(--border);color:var(--muted);font-size:.8rem;text-align:center}.att-broken button{padding:.1rem .5rem;font-size:.8rem}.att-files{display:flex;flex-wrap:wrap;gap:.4rem;margin:.3rem 0 0;padding:0;list-style:none}.att-file{display:inline-block;max-width:18rem;padding:0 12px;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:color-mix(in srgb,var(--fg) 5%,transparent);color:var(--fg);font-size:.8125rem;font-weight:600;line-height:40px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.att-file:before{content:"";display:inline-block;width:16px;height:16px;margin-right:8px;background:var(--accent);vertical-align:-3px;mask:var(--i) center / contain no-repeat}.att-files audio{max-width:100%;height:2.2rem;vertical-align:top}.att-more{position:absolute;inset:0;display:grid;place-items:center;background:#0d0b148c;color:#fff;font-size:1.5rem;font-weight:700;pointer-events:none}.att-progress{display:block;width:min(100%,16rem);height:4px;margin-top:.35rem;overflow:hidden;border:0;border-radius:2px;background:var(--border);accent-color:var(--accent);appearance:none}.att-progress::-webkit-progress-bar{background:var(--border)}.att-progress::-webkit-progress-value{background:var(--accent);transition:width .2s}.att-progress::-moz-progress-bar{background:var(--accent)}.ci{display:inline-block;flex:none;width:1.15em;height:1.15em;background:currentcolor;vertical-align:-.2em;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h12a2 2 0 0 1 2 2v12'/%3E%3Crect x='3' y='7' width='14' height='14' rx='2'/%3E%3Cpath d='m3 19 5-5 4 4 2-2 3 3'/%3E%3Ccircle cx='12.5' cy='11.5' r='1'/%3E%3C/svg%3E") center / contain no-repeat}@media(hover:hover){.icon-button:hover:not(:disabled){background:var(--hover);color:var(--fg)}}.att-cell{position:relative;display:block;max-width:min(100%,var(--att-max-w))}.att-src,.att-save{position:absolute;z-index:1;border-radius:var(--pill);background:#0d0b14a6;color:#fff;font-size:.7rem;font-weight:700;line-height:1.6}.att-src{bottom:4px;left:4px;display:flex;gap:.2rem;align-items:center;max-width:calc(100% - 8px);padding:0 .45rem;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.att-src>.i-lock:before{width:12px;height:12px}a.att-src:hover{background:var(--accent)}.att-save{top:4px;right:4px;width:1.9rem;height:1.9rem;padding:0;border:0;font-size:.95rem;opacity:0}.att-cell:hover .att-save,.att-save:focus-visible,.att-save[aria-expanded=true]{opacity:1}@media(hover:none){.att-save{opacity:.85}}.room-section[data-section=collections] li a:before{content:"";width:22px;height:22px;border-radius:6px;background:color-mix(in srgb,var(--hue) 16%,transparent)}.room-section[data-section=collections] li a>.ci{width:13px;height:13px;margin:0 4.5px 0 -27.5px;color:color-mix(in srgb,var(--hue) 70%,var(--fg))}.t0{--hue: #a78bfa}.t1{--hue: #38bdf8}.t2{--hue: #fb923c}.t3{--hue: #4ade80}.room-section li a>.n{min-width:18px;color:var(--dim);font-size:.75rem;text-align:right}.room-section li .owner{color:var(--muted);font-size:.8rem}.tray-item .ci{width:40px;color:var(--muted)}.msg.pending{opacity:.6;animation:pop .3s var(--ease)}.msg.failed .body,.msg.failed .attachments{opacity:.7}.msg.to-me{margin-right:16px;margin-left:16px;padding-right:12px;padding-left:62px;border-radius:10px;background:color-mix(in srgb,var(--fill) 10%,transparent)}.msg.to-me>.avatar{left:12px}.msg.target{background:var(--highlight);animation:target-fade 3s ease-in forwards}@keyframes target-fade{0%,60%{background:var(--highlight)}to{background:transparent}}.actions{position:absolute;top:-14px;right:28px;z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px;max-width:calc(100% - 56px);padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--raised);box-shadow:var(--shadow);opacity:0;pointer-events:none}.actions button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:7px;background:none;color:var(--muted)}.actions button:before{width:16px;height:16px}.actions button.delete{color:var(--danger)}@media(hover:hover){.messages:not(.by-touch) .msg:hover .actions{opacity:1;pointer-events:auto}}.msg.touched{background:color-mix(in srgb,var(--fill) 7%,transparent)}.msg.touched .actions,.msg:has(:focus-visible) .actions{opacity:1;pointer-events:auto}@media(hover:none){.actions{width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.msg.touched .actions,.msg:has(:focus-visible) .actions{position:static;justify-content:flex-start;width:fit-content;height:auto;overflow:visible;clip-path:none;margin-top:.15rem;box-shadow:none}}.new-line{height:0;margin:0 28px;border-top:1px solid color-mix(in srgb,var(--new) 60%,transparent);font-size:.6875rem;font-weight:700;letter-spacing:.04em;line-height:0;color:var(--new);text-align:right;text-transform:uppercase;animation:fade-out 1s 4s forwards}.new-line span{padding-left:10px;background:var(--bg)}@keyframes fade-out{to{opacity:0}}.reactions{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 2px}.reaction,.add-reaction{display:inline-flex;gap:6px;align-items:center;height:28px;padding:0 10px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--fg) 4%,transparent);color:var(--muted);font-size:.8125rem;font-weight:600}.reaction.mine{border-color:color-mix(in srgb,var(--fill) 55%,transparent);background:var(--tint);color:var(--fg)}.add-reaction{width:32px;justify-content:center;padding:0;border-style:dashed;background:none;color:var(--dim)}.add-reaction:before{width:15px;height:15px}.confirm,.send-error,.msg-error{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:.25rem 0;font-size:.85rem}.bar-actions{display:flex;gap:inherit;align-items:center}.confirm button,.send-error button,.msg-error button{height:26px;padding:0 10px;border:0;border-radius:6px;background:var(--hover);font-size:.75rem}.confirm .danger{background:var(--danger);color:var(--bg)}.edit-input{display:block;margin-top:.15rem;resize:vertical}.hint{margin:.15rem 0 0}.hint.error{color:var(--danger)}.room-notice{margin:0;padding:.4rem 1rem;background:var(--tint);font-size:.85rem;color:var(--muted)}.room-notice:empty{display:none}.new-messages{position:absolute;bottom:16px;left:50%;display:flex;gap:8px;align-items:center;height:36px;padding:0 14px 0 12px;border-radius:18px;background:var(--raised);box-shadow:var(--shadow);font-size:.8125rem;transform:translate(-50%);animation:pop .3s var(--ease)}.new-messages:before{width:14px;height:14px}.new-messages:active:not(:disabled){transform:translate(-50%) scale(.95)}.composer{border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.composer-row{display:flex;gap:4px;align-items:flex-end;min-height:67px;padding:13px 14px 14px 12px}.composer-row>button,.composer-row>.menu>summary{width:40px;height:40px;border-radius:10px}.composer textarea{flex:1;align-self:center;min-width:0;min-height:40px;max-height:10rem;overflow-x:hidden;padding:calc((40px - 1lh)/2) 6px;border:0;background:none;outline:none;resize:none}.composer .menu[open]>summary{background:var(--tint);color:var(--accent)}.composer .menu-items{top:auto;right:auto;bottom:calc(100% + 8px);left:0;transform-origin:bottom left}.composer .send{display:flex;flex:none;align-items:center;justify-content:center;padding:0}.composer .send:before{width:17px;height:17px}.composer .send:disabled{opacity:1;background:color-mix(in srgb,var(--fill) 25%,transparent);color:color-mix(in srgb,#fff 55%,transparent)}.composer .counter{align-self:center}.focus-key{align-self:center;margin-inline:4px;white-space:nowrap}.composer textarea:focus~.focus-key{display:none}@media(hover:none){.focus-key{display:none}}.tray{display:flex;flex-wrap:wrap;gap:.4rem;max-height:9.5rem;margin:0;padding:12px 14px 0 22px;overflow-y:auto;list-style:none}.tray-item{display:flex;gap:.4rem;align-items:center;max-width:16rem;padding:.25rem .25rem .25rem .4rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--raised);font-size:.85rem;animation:pop .25s var(--ease)}.tray-thumb{flex:none;border-radius:8px;object-fit:cover}.tray-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tray-size{flex:none;color:var(--muted)}.tray-item .remove{flex:none;padding:0 .45rem;border:0}.tray-error{margin:0 0 .4rem;color:var(--danger);font-size:.85rem}.tray-error:empty{display:none}.composer textarea::placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.counter{align-self:center}.counter:empty{display:none}.forwarded{color:var(--muted);font-size:.75rem;font-style:italic}.messages.selecting .msg{padding-left:110px;cursor:pointer;user-select:none}.messages.selecting .msg>.avatar{left:60px}.msg>.select{position:absolute;top:17px;left:28px;width:18px;height:18px;padding:0;accent-color:var(--fill)}.msg:not(.group-start)>.select{top:6px}.messages.selecting .msg.to-me{padding-left:94px}.msg.to-me>.select{left:12px}.messages.selecting .msg.to-me>.avatar{left:44px}.msg.selected{background:var(--tint)}.selection-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:68px;padding:8px 16px calc(8px + env(safe-area-inset-bottom)) 24px;border-top:1px solid var(--line);background:var(--raised)}.selection-bar>span{flex:1;font-weight:600}.selection-bar .ic:not([hidden]){display:inline-flex;align-items:center;gap:8px}.selection-bar .ic:before{width:16px;height:16px}.selection-bar button{height:38px}.selection-bar button:not(.primary,.danger){border-color:transparent;background:none}@media(max-width:400px){.selection-bar{padding-left:16px}.selection-bar .ic:before{display:none}}dialog.forward,dialog.access{width:min(30rem,calc(100% - 2rem));max-height:min(36rem,85vh);padding:20px 24px;border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--raised),var(--bg));color:var(--fg);box-shadow:var(--shadow)}dialog.forward[open]{display:flex;flex-direction:column;gap:10px}dialog.forward::backdrop,dialog.access::backdrop{background:#08060ea8}.forward-list{min-height:0;overflow-y:auto}.switcher>.search-status{margin:8px 20px}.switcher .forward-list{padding:8px}dialog.forward.busy .forward-list{opacity:.6;pointer-events:none}dialog.switcher{width:min(35rem,calc(100% - 2rem));max-height:min(36rem,calc(100dvh - 140px - 1rem));margin-top:140px;padding:0;overflow:hidden}dialog.switcher[open]{gap:0}.jump-field{display:flex;flex:none;gap:12px;align-items:center;height:60px;padding:0 20px;border-bottom:1px solid var(--border);color:var(--muted)}.jump-field:before{width:18px;height:18px}.jump-field input{flex:1;min-width:0;height:100%;padding:0;border:0;background:none;outline:none;font-size:1.0625rem}.switcher kbd,.jump-button kbd,.focus-key{padding:1px 6px;border:1px solid var(--border);border-radius:5px;color:var(--muted);font:inherit;font-size:.6875rem;font-weight:600;line-height:1.5}.jump-keys{display:flex;flex:none;gap:16px;margin:0;padding:10px 20px;border-top:1px solid var(--border);color:var(--muted);font-size:.75rem}@media(hover:none){.jump-keys,.jump-field kbd,.jump-button kbd{display:none}}.switcher>.search-status:empty{display:none}.switcher .person{gap:12px;height:46px;padding:0 12px;border-radius:10px;font-weight:500;cursor:pointer}.switcher .person:hover{background:var(--hover)}.switcher [aria-selected=true]{background:color-mix(in srgb,var(--fill) 20%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}.switcher .tile,.switcher .avatar{width:28px;height:28px}.switcher .tile{display:flex;flex:none;align-items:center;justify-content:center;border-radius:8px;background:var(--hover);color:var(--dim);font-weight:700}.switcher .tile:before{width:14px;height:14px}.switcher small{margin-left:4px;color:var(--dim);font-size:.75rem;font-weight:400}.switcher [aria-selected=true] small{color:var(--muted)}.switcher .unread{font-weight:700}dialog.forward .cancel{align-self:flex-end;border-color:transparent;background:none}dialog.forward h2{margin:0;font-size:1.0625rem}dialog.forward>.search-status:empty{display:none}dialog:not(.switcher) .forward-list .person{gap:12px;height:44px;padding:0 10px;border-radius:10px}dialog:not(.switcher) .forward-list .avatar,dialog.forward .hash{width:30px;height:30px}dialog.forward .hash{display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--hover)}.hash{flex:none;width:24px;color:var(--dim);font-weight:600;text-align:center}.not-found{padding:2rem 1rem;text-align:center}.not-found h1{margin:0 0 .25rem;font-size:1rem}a.brand,.brand-title{color:var(--fg);text-decoration:none}.guest-links{display:flex;flex:none;gap:.5rem;margin-left:auto}@media(hover:hover){.guest-link:not(.primary):hover{background:var(--hover)}}.auth-skip{margin:1rem 0 0;text-align:center}.guest-banner,.archived-banner{display:flex;gap:12px;align-items:center;min-height:68px;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom)) 28px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--raised),var(--bg));color:var(--text)}.guest-banner:before,.archived-banner:before{color:var(--muted)}@keyframes pop{0%{opacity:0;transform:scale(.92) translateY(4px)}}@keyframes wave{0%,60%,to{transform:rotate(0)}20%{transform:rotate(18deg)}40%{transform:rotate(-10deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(prefers-reduced-motion:reduce){.loadbar.on:before{background:var(--tint)}}@media(max-width:720px){.sidebar{display:none}#app:has(.layout:not(.home))>.app-bar,.side-top,.jump-row,.side-foot{display:none}.layout.home .sidebar{display:flex;flex:1;border:0}.layout.home .pane{position:absolute;clip-path:inset(50%)}.layout.home .welcome p{display:none}.sidebar nav{padding:0 10px 24px}.room-section li a,.room-section li.dm a,.room-section[data-section=collections] li a{gap:12px;height:48px;padding:0 12px;font-size:.9375rem}.room-section .badge{min-width:22px;padding:0 7px;font-size:.75rem;line-height:22px}.room-section li.dm .avatar,.room-section[data-section=collections] li a:before{width:28px;height:28px;font-size:.6875rem}.room-section[data-section=collections] li a:before{border-radius:8px}.room-section[data-section=collections] li a>.ci{width:14px;height:14px;margin:0 7px 0 -33px}.section-head .icon-button,.fold,.room-section>summary{height:44px}.section-head{padding:10px 0 0}.section-head .icon-button{width:44px}.room-header{gap:2px;min-height:60px;padding:0 6px}.room-header .back{margin-left:0}.room-header .icon-button,.room-header .menu>summary{width:44px;height:44px}.room-members{display:none}.msg{padding-right:16px;padding-left:58px}.msg>.avatar{left:16px;width:32px;height:32px}.msg.to-me{margin:0 8px;padding-left:50px}.msg.to-me>.avatar{left:8px}.messages.selecting .msg.to-me{padding-left:102px}.msg.to-me>.select{left:20px}.messages.selecting .msg.to-me>.avatar{left:52px}.msg.group-start>.reply-quote{max-width:calc(100% + 26px);margin-left:-26px}.reply-quote:before{width:20px}.day,.new-line{margin-inline:16px}.actions{right:16px}.composer-row{min-height:64px;padding:10px 8px 10px 6px}.composer-row>button,.composer-row>.menu>summary{width:44px;height:44px}}@media(min-width:721px){.back{display:none}}
2
+ /*# sourceMappingURL=app-XJ73EU5O.css.map */
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../web/styles/app/fonts.css", "../../web/styles/app/tokens.css", "../../web/styles/app/base.css", "../../web/styles/app/icons.css", "../../web/styles/app/shell.css", "../../web/styles/app/avatars.css", "../../web/styles/app/profile.css", "../../web/styles/app/login.css", "../../web/styles/app/room-list.css", "../../web/styles/app/menus.css", "../../web/styles/app/room.css", "../../web/styles/app/search.css", "../../web/styles/app/replies.css", "../../web/styles/app/attachments.css", "../../web/styles/app/collections.css", "../../web/styles/app/messages.css", "../../web/styles/app/reactions.css", "../../web/styles/app/composer.css", "../../web/styles/app/tray.css", "../../web/styles/app/selection.css", "../../web/styles/app/access.css", "../../web/styles/app/motion.css", "../../web/styles/app/narrow.css"],
4
+ "sourcesContent": ["/* ---- Inter (DESIGN.md \u00A77.7): self-hosted, one variable font per script, each fetched only when a page uses its\n characters (unicode-range). From @fontsource-variable/inter 5.3.0, SIL Open Font License (web/fonts/OFL.txt). ---- */\n\n@font-face {\n font-family: Inter;\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(\"../../fonts/inter-cyrillic-ext.woff2\") format(\"woff2\");\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n\n@font-face {\n font-family: Inter;\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(\"../../fonts/inter-cyrillic.woff2\") format(\"woff2\");\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n\n@font-face {\n font-family: Inter;\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(\"../../fonts/inter-greek.woff2\") format(\"woff2\");\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n\n@font-face {\n font-family: Inter;\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(\"../../fonts/inter-latin-ext.woff2\") format(\"woff2\");\n unicode-range:\n U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n\n@font-face {\n font-family: Inter;\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(\"../../fonts/inter-latin.woff2\") format(\"woff2\");\n unicode-range:\n U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,\n U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n", "/* ---- Design tokens: colors, shadows, fonts; dark theme (\u00A77.8). tests/unit/build/contrast.test.ts reads these. ---- */\n\n:root {\n color-scheme: light dark;\n --bg: #fbfaff;\n --surface: #f1eefc;\n --raised: #fff;\n --fg: #1d1530;\n --text: #1d1530;\n --muted: #5e5874;\n --dim: #645e7c;\n --border: #e3ddf5;\n --line: #e3ddf5;\n --hover: #e9e4fb;\n --accent: #5b3df5;\n /* Solid fills: Send, badges, primary buttons, with --on-fill text on them. */\n --fill: #5b3df5;\n --on-fill: #fff;\n --accent-2: #c42a7c;\n --grad: linear-gradient(135deg, #6a4bff, #c42a7c);\n --tint: color-mix(in srgb, var(--accent) 14%, transparent);\n --danger: #c41d36; /* \u2265 4.5:1 on every light background, hover included (QA BUG-57) */\n --new: #b0175f;\n --highlight: #fff1b8;\n --shadow: 0 6px 24px rgb(60 30 140 / 14%);\n --radius: 10px;\n --pill: 999px;\n --ease: cubic-bezier(0.34, 1.56, 0.64, 1);\n /* Inter, the app's own (fonts.css, \u00A77.7), the system's font until it arrives. 16px also keeps iOS Safari from zooming\n in on a focused text field (it does under 16px) \u2014 don't size fields below it. */\n font:\n 16px / 1.5 Inter,\n system-ui,\n -apple-system,\n \"Segoe UI\",\n Roboto,\n sans-serif;\n /* Inter's contextual alternates draw people's text as something else: \"32x1n\" as \"32\u00D71n\", \"->\" as an arrow. Names\n and messages show as typed (QA BUG-191). After `font`, which doesn't reset it. */\n font-feature-settings: \"calt\" 0;\n}\n\n/* The system's theme (auto), unless the profile page's choice (\u00A77.8, web/src/theme.ts) says otherwise. The two dark\n blocks must stay the same (contrast.test.ts checks). */\n@media (prefers-color-scheme: dark) {\n :root:not([data-theme=\"light\"]) {\n --bg: #1a1b1e;\n --surface: #111214;\n --raised: #232428;\n --fg: #ecece8;\n --text: #e0e0db;\n --muted: #b0b4ba;\n --dim: #9ea2a9;\n --border: #3a3d42;\n --line: #2a2c30;\n --hover: #2a2c30;\n --accent: #a58bff;\n --fill: #a58bff;\n --on-fill: #16181a;\n --danger: #ff7a8f;\n --new: #f9a8d4;\n --highlight: #3d3314;\n --shadow: 0 12px 32px rgb(0 0 0 / 45%);\n }\n}\n\n:root[data-theme=\"light\"] {\n color-scheme: light;\n}\n\n:root[data-theme=\"dark\"] {\n color-scheme: dark;\n --bg: #1a1b1e;\n --surface: #111214;\n --raised: #232428;\n --fg: #ecece8;\n --text: #e0e0db;\n --muted: #b0b4ba;\n --dim: #9ea2a9;\n --border: #3a3d42;\n --line: #2a2c30;\n --hover: #2a2c30;\n --accent: #a58bff;\n --fill: #a58bff;\n --on-fill: #16181a;\n --danger: #ff7a8f;\n --new: #f9a8d4;\n --highlight: #3d3314;\n --shadow: 0 12px 32px rgb(0 0 0 / 45%);\n}\n", "/* ---- Base: reset, elements, buttons, fields, focus, errors ---- */\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Author display rules (e.g. .app-bar { display: flex }) would otherwise beat the UA [hidden] style. */\n[hidden] {\n /* biome-ignore lint/complexity/noImportantStyles: [hidden] must win over any author display rule (see above) */\n display: none !important;\n}\n\nbody {\n margin: 0;\n background: var(--bg);\n color: var(--fg);\n font-size: 0.875rem;\n}\n\n/* Phones: a size up, and fields at 16px (see tokens.css). */\n@media (max-width: 720px) {\n body {\n font-size: 0.9375rem;\n }\n\n /* After the fields' own `font: inherit` below, whatever the order. */\n body input,\n body textarea,\n body select {\n font-size: 1rem;\n }\n}\n\n::selection {\n background: color-mix(in srgb, var(--accent) 35%, transparent);\n}\n\n* {\n scrollbar-width: thin;\n scrollbar-color: var(--border) transparent;\n}\n\na {\n color: var(--accent);\n}\n\nh1,\nh2 {\n margin: 0;\n line-height: 1.2;\n font-weight: 700;\n letter-spacing: -0.01em;\n}\n\nbutton,\ninput,\ntextarea {\n /* Firefox's default 1px block margin on textareas made the composer a pixel off. */\n margin: 0;\n font: inherit;\n color: inherit;\n}\n\nbutton,\nlabel.button {\n padding: 0.45rem 0.9rem;\n border: 1px solid var(--border);\n border-radius: var(--radius);\n background: var(--raised);\n font-weight: 600;\n cursor: pointer;\n transition:\n transform 0.15s var(--ease),\n background-color 0.15s;\n}\n\n@media (hover: hover) {\n button:hover:not(:disabled) {\n background: var(--hover);\n }\n}\n\nbutton:active:not(:disabled) {\n transform: scale(0.95);\n}\n\nbutton:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\nbutton.primary,\n.auth-form button[type=\"submit\"],\n.composer button[type=\"submit\"],\n.new-room button[type=\"submit\"] {\n border-color: transparent;\n background: var(--fill);\n color: var(--on-fill);\n}\n\n@media (hover: hover) {\n button.primary:hover:not(:disabled),\n .auth-form button[type=\"submit\"]:hover:not(:disabled),\n .composer button[type=\"submit\"]:hover:not(:disabled),\n .new-room button[type=\"submit\"]:hover:not(:disabled) {\n background: var(--fill);\n filter: brightness(1.12);\n }\n}\n\nbutton.danger {\n color: var(--danger);\n border-color: currentcolor;\n}\n\nbutton.link {\n border: 0;\n background: none;\n color: var(--accent);\n padding: 0.25rem;\n}\n\ninput,\ntextarea {\n width: 100%;\n padding: 0.55rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: var(--radius);\n background: var(--surface);\n transition: border-color 0.15s;\n}\n\ninput:focus,\ntextarea:focus {\n border-color: var(--accent);\n}\n\n:focus-visible {\n outline: 2px solid var(--accent);\n outline-offset: 2px;\n}\n\n/* Icons (.i-*): a stroke drawing in the text's color, from the mask in icons.css. */\n.i,\n.ic::before {\n content: \"\";\n display: inline-block;\n flex: none;\n width: 18px;\n height: 18px;\n background: currentcolor;\n mask: var(--i) center / contain no-repeat;\n}\n\n/* An icon-only button: square, quiet until hovered. */\n.icon-button {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 36px;\n padding: 0;\n border: 0;\n border-radius: 8px;\n background: none;\n color: var(--muted);\n}\n\ninput:focus-visible,\ntextarea:focus-visible {\n outline: 3px solid var(--tint);\n outline-offset: 0;\n}\n\n[aria-invalid=\"true\"] {\n border-color: var(--danger);\n}\n\n.field-error,\n.form-error,\n.list-error,\n.room-error,\n.send-error,\n.msg-error {\n color: var(--danger);\n font-size: 0.85rem;\n margin: 0.25rem 0;\n}\n\n.field-error:empty,\n.form-error:empty,\n.list-error:empty,\n.room-error:empty {\n display: none;\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n", "/* ---- Icons: stroke drawings used as masks (.i in base.css), so they take the text color. One custom property each. ---- */\n\n.i-search {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E\");\n}\n\n.i-lock {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E\");\n}\n\n.i-globe {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E\");\n}\n\n.i-chev {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n}\n\n.i-back {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E\");\n}\n\n.i-plus {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E\");\n}\n\n.i-gear {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/%3E%3C/svg%3E\");\n}\n\n.i-dots {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3C/svg%3E\");\n}\n\n.i-media {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E\");\n}\n\n.i-clip {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.4 11.1-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E\");\n}\n\n.i-smile {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01'/%3E%3C/svg%3E\");\n}\n\n.i-send {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E\");\n}\n\n.i-react {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6-8.5M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01M19 2v6M16 5h6'/%3E%3C/svg%3E\");\n}\n\n.i-reply {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17 4 12l5-5M20 18v-2a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E\");\n}\n\n.i-fwd {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 17 5-5-5-5M4 18v-2a4 4 0 0 1 4-4h12'/%3E%3C/svg%3E\");\n}\n\n.i-check {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E\");\n}\n\n.i-edit {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E\");\n}\n\n.i-trash {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3C/svg%3E\");\n}\n\n.i-x {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E\");\n}\n\n.i-upload {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E\");\n}\n\n.i-down {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E\");\n}\n\n.i-top {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14M12 21V8M6 13l6-6 6 6'/%3E%3C/svg%3E\");\n}\n\n.i-eyeoff {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.2A10 10 0 0 1 12 4c6.5 0 10 8 10 8a17 17 0 0 1-2.2 3.2M6.6 6.6A17 17 0 0 0 2 12s3.5 8 10 8a10 10 0 0 0 5.4-1.6M3 3l18 18M10 10a3 3 0 0 0 4 4'/%3E%3C/svg%3E\");\n}\n\n.i-archive {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1'/%3E%3Cpath d='M5 9v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9M10 13h4'/%3E%3C/svg%3E\");\n}\n\n.i-bell {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E\");\n}\n\n.i-users {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 6-6h2a6 6 0 0 1 6 6v1M16 4a4 4 0 0 1 0 8M22 21v-1a6 6 0 0 0-4-5.6'/%3E%3C/svg%3E\");\n}\n\n.i-file {\n --i: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9Z'/%3E%3Cpath d='M14 3v6h6'/%3E%3C/svg%3E\");\n}\n", "/* ---- App shell: the app bar (phones, and pages without the sidebar), the sidebar's top and foot, the pane ---- */\n\nhtml,\nbody,\n#app {\n height: 100%;\n}\n\n/* No double-tap zoom on phones (a tap is a tap, without the delay). Pinch zoom stays: people who need larger text\n rely on it (WCAG 1.4.4), and iOS ignores attempts to disable it anyway. */\nhtml {\n touch-action: manipulation;\n}\n\n#app {\n display: flex;\n flex-direction: column;\n height: 100dvh;\n}\n\n.app-bar {\n display: flex;\n gap: 0.75rem;\n align-items: center;\n min-height: 60px;\n padding: 0 0.5rem 0 1rem;\n border-bottom: 1px solid var(--line);\n background: var(--surface);\n}\n\n/* Log in and Sign up are already the login page's own tabs (and its forgot password forms' way back, \u00A739). */\n#app:has(.auth) .guest-links {\n display: none;\n}\n\n/* Next to the sidebar, which has the same (and on a phone's room page, which has its own header). */\n@media (min-width: 721px) {\n #app:has(.layout) > .app-bar {\n display: none;\n }\n}\n\n.brand {\n display: flex;\n flex: 0 1 auto;\n min-width: 0;\n gap: 0.6rem;\n align-items: center;\n font-size: 1rem;\n font-weight: 700;\n letter-spacing: -0.01em;\n}\n\n/* The logo (/icons/icon.svg, the favicon too): a round speech bubble in the violet-to-pink gradient. */\n.brand::before {\n content: \"\";\n flex: none;\n width: 30px;\n height: 30px;\n background: url(\"/icons/icon.svg\") center / contain no-repeat;\n}\n\n/* The site's own logo (\u00A724) replaces it. */\n.brand.has-logo::before {\n content: none;\n}\n\n.brand-logo {\n flex: none;\n height: 1.75rem;\n max-width: 6rem;\n object-fit: contain;\n}\n\n.brand-title {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* With \"chirps on Chirkle\" under the title (the sidebar's): the title is the link home, stretched over the brand. */\n.brand-name {\n display: grid;\n min-width: 0;\n}\n\ndiv.brand {\n position: relative;\n}\n\ndiv.brand .brand-title::after {\n content: \"\";\n position: absolute;\n inset: 0;\n}\n\n.brand-by {\n font-size: 0.75rem;\n font-weight: 400;\n color: var(--muted);\n}\n\n.brand-by a {\n position: relative;\n color: inherit;\n}\n\n.bar-end {\n display: flex;\n gap: 0.25rem;\n align-items: center;\n min-width: 0;\n margin-left: auto;\n}\n\n/* A long display name shrinks with an ellipsis. In the app bar only the avatar shows. */\n.me-link {\n display: flex;\n flex: 1;\n gap: 0.6rem;\n align-items: center;\n min-width: 0;\n padding: 0.4rem;\n border-radius: var(--radius);\n color: var(--fg);\n font-weight: 600;\n text-decoration: none;\n}\n\n.who {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.app-bar .me-link {\n padding: 6px;\n}\n\n.app-bar .who {\n display: none;\n}\n\n@media (hover: hover) {\n .me-link:hover,\n .icon-button:hover {\n background: var(--hover);\n }\n}\n\n.me-link[aria-current=\"page\"] {\n background: var(--tint);\n}\n\n.app-bar .icon-button {\n width: 44px;\n height: 44px;\n}\n\n/* A new version is out (\u00A727.4): one line above everything, the page shrinks under it. */\n.update-bar {\n padding: 6px 16px;\n text-align: center;\n background: var(--tint);\n font-size: 0.875rem;\n}\n\n.app-main {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n.layout {\n display: flex;\n height: 100%;\n background: var(--surface);\n}\n\n/* The sidebar: its top and foot stay, the rooms between them scroll. */\n.sidebar {\n display: flex;\n flex: 0 0 280px;\n flex-direction: column;\n /* A long room name is cut short in its row instead of widening the sidebar. */\n min-width: 0;\n min-height: 0;\n border-right: 1px solid var(--line);\n background: var(--surface);\n}\n\n.sidebar .rooms {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n max-width: none;\n margin: 0;\n padding: 0;\n}\n\n.sidebar nav {\n flex: 1;\n padding: 0 12px 12px;\n overflow-y: auto;\n}\n\n/* The site's name, over the rows (Jump to first) with no line between. */\n.side-top {\n display: flex;\n flex-direction: column;\n padding: 14px 14px 12px;\n}\n\n.side-top .brand {\n height: 44px;\n padding: 0 8px;\n color: var(--fg);\n}\n\n/* Jump to (\u00A732): the sidebar's first row, set like the rows under it, with its shortcut on the right. */\n.jump-button {\n display: flex;\n flex: 1;\n gap: 10px;\n align-items: center;\n min-width: 0;\n height: 34px;\n padding: 0 8px 0 10px;\n border: 0;\n border-radius: 8px;\n background: none;\n color: var(--muted);\n font-weight: 500;\n text-align: left;\n}\n\n.jump-button::before {\n width: 16px;\n height: 16px;\n}\n\n.jump-button span {\n flex: 1;\n}\n\n/* Quieter until hovered by colour, not opacity: --muted at 0.75 failed 4.5:1 (QA BUG-259). */\n.jump-button kbd {\n transition: color 0.15s;\n}\n\n.jump-row:hover kbd {\n color: var(--text);\n}\n\n.jump-button:active:not(:disabled) {\n transform: none;\n}\n\n.side-foot {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 4px;\n align-items: center;\n min-height: 68px;\n padding: 8px 12px 8px 10px;\n border-top: 1px solid var(--line);\n}\n\n.side-foot .me-link {\n gap: 10px;\n height: 48px;\n padding: 0 8px;\n}\n\n.side-foot .avatar {\n width: 34px;\n height: 34px;\n}\n\n.side-foot .icon-button::before {\n width: 17px;\n height: 17px;\n}\n\n/* A guest's way in. */\n.side-foot p {\n flex-basis: 100%;\n margin: 4px 4px 6px;\n color: var(--muted);\n font-size: 0.8125rem;\n}\n\n.side-foot .button {\n flex: 1;\n}\n\n/* Links that look like buttons. */\na.button,\n.guest-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n padding: 0 1rem;\n border: 1px solid var(--border);\n border-radius: var(--radius);\n color: var(--fg);\n font-weight: 600;\n text-decoration: none;\n}\n\na.button.primary,\n.guest-link.primary {\n border-color: transparent;\n background: var(--fill);\n color: var(--on-fill);\n}\n\n/* The pane next to the sidebar. A page taller than it (the profile, a collection) scrolls in it, not with the sidebar\n (QA BUG-135). */\n.pane {\n flex: 1;\n min-width: 0;\n overflow-y: auto;\n background: var(--bg);\n}\n\n/* Home: a greeting where the room would be. */\n.welcome {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 2rem 1rem;\n text-align: center;\n}\n\n.welcome::before {\n content: \"\uD83D\uDC4B\";\n margin-bottom: 0.75rem;\n font-size: 3.5rem;\n animation: wave 2s ease-in-out infinite;\n}\n\n.welcome h1 {\n margin: 0 0 0.5rem;\n font-size: 1.75rem;\n}\n\n.welcome p {\n margin: 0;\n color: var(--muted);\n}\n\n/* An invite link's page (\u00A744): the same greeting, with a line or two more. */\n.invite-page p + p {\n margin-top: 0.75rem;\n}\n\n/* A fetch that takes a while (\u00A77.9): a thin moving line over the room list or the room; takes no room itself. */\n.loadbar {\n position: relative;\n z-index: 3;\n flex: none;\n height: 0;\n}\n\n.loadbar.on::before {\n content: \"\";\n position: absolute;\n inset: 0 0 auto;\n height: 2px;\n background: linear-gradient(90deg, transparent, var(--accent), transparent) -70% 0 / 40% 100% no-repeat;\n animation: loadbar 1.2s ease-in-out infinite;\n}\n\n@keyframes loadbar {\n to {\n background-position: 170% 0;\n }\n}\n", "/* ---- Avatars (\u00A715.4) ---- */\n\n.avatar {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n object-fit: cover;\n overflow: hidden;\n font-weight: 700;\n line-height: 1;\n color: #fff;\n user-select: none;\n}\n\n.avatar.s24 {\n width: 24px;\n height: 24px;\n font-size: 0.6rem;\n}\n\n.avatar.s32 {\n width: 32px;\n height: 32px;\n font-size: 0.75rem;\n}\n\n/* 36px: the message's text starts 14px after it (.msg's padding). */\n.msg > .avatar.s32 {\n width: 36px;\n height: 36px;\n}\n\n.avatar.s96 {\n width: 96px;\n height: 96px;\n font-size: 2rem;\n box-shadow:\n 0 0 0 4px var(--bg),\n 0 0 0 7px var(--accent);\n}\n\n/* White text on every color: \u2265 4.5:1 in both themes. */\n.avatar.c0 {\n background: #c4213b;\n}\n.avatar.c1 {\n background: #b04a00;\n}\n.avatar.c2 {\n background: #7a6000;\n}\n.avatar.c3 {\n background: #22803a;\n}\n.avatar.c4 {\n background: #00796b;\n}\n.avatar.c5 {\n background: #1d63d8;\n}\n.avatar.c6 {\n background: #7b3fe4;\n}\n.avatar.c7 {\n background: #c01a6e;\n}\n", "/* ---- Settings (\u00A715.5, \u00A722.2): a card for each part, in a column under the page's header ---- */\n\n.profile-body {\n display: flex;\n flex-direction: column;\n gap: 20px;\n max-width: calc(680px + 2 * 28px);\n padding: 28px 28px 48px;\n}\n\n.card,\n.profile-notify {\n display: flex;\n flex-direction: column;\n gap: 14px;\n margin: 0;\n padding: 18px 20px 20px;\n border: 1px solid var(--line);\n border-radius: 16px;\n background: color-mix(in srgb, var(--fg) 3%, var(--bg));\n}\n\n.profile-body h2,\n.card legend,\n.profile-notify legend {\n margin: 0;\n padding: 0;\n font-size: 0.9375rem;\n font-weight: 600;\n line-height: 1.3;\n letter-spacing: 0;\n}\n\n/* A fieldset's legend can't be laid out with the rest: it is floated into the card's padding. */\n.card legend,\n.profile-notify legend {\n float: left;\n width: 100%;\n}\n\n.profile-avatar {\n display: flex;\n gap: 16px;\n align-items: center;\n}\n\n.profile-avatar h2 {\n margin-bottom: 8px;\n}\n\n.profile-picture.busy {\n opacity: 0.6;\n}\n\n.profile-avatar-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n/* Change picture, filled; Remove, only its text. */\n.profile-avatar-actions > .button,\n.profile-avatar-actions > button {\n display: inline-flex;\n align-items: center;\n height: 34px;\n padding: 0 14px;\n border-color: transparent;\n border-radius: 9px;\n font-size: 0.8125rem;\n}\n\nlabel.button {\n background: var(--hover);\n}\n\n.profile-avatar-actions button {\n padding: 0 12px;\n background: none;\n color: var(--muted);\n}\n\nlabel.button:focus-within,\n.profile-avatar-actions input:focus-visible + label.button {\n outline: 2px solid var(--accent);\n outline-offset: 2px;\n}\n\nlabel.button.disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n\n/* Appearance (\u00A77.8): the hint on the left, Auto / Light / Dark on the right. */\n.profile-theme:not(.profile-notify) {\n display: grid;\n grid-template-columns: 1fr auto;\n align-items: center;\n column-gap: 16px;\n row-gap: 3px;\n}\n\n.profile-theme legend {\n grid-column: 1;\n}\n\n.field-status {\n margin: 0.25rem 0;\n font-size: 0.8125rem;\n color: var(--muted);\n}\n\n.profile-theme .field-status {\n grid-column: 1;\n margin: 0;\n line-height: 1.3;\n}\n\n.profile-theme {\n padding-bottom: 18px;\n}\n\n.segmented {\n display: inline-flex;\n gap: 2px;\n padding: 3px;\n border-radius: 10px;\n background: var(--surface);\n}\n\n.profile-theme .segmented {\n grid-column: 2;\n grid-row: 1 / span 2;\n}\n\n.segmented label {\n position: relative;\n padding: 0 14px;\n border-radius: 8px;\n color: var(--muted);\n font-size: 0.8125rem;\n font-weight: 600;\n line-height: 32px;\n cursor: pointer;\n}\n\n.segmented label:has(input:checked) {\n background: var(--hover);\n color: var(--fg);\n}\n\n.segmented label:has(input:focus-visible) {\n outline: 2px solid var(--accent);\n outline-offset: 2px;\n}\n\n.segmented input {\n position: absolute;\n opacity: 0;\n pointer-events: none;\n}\n\n.profile-password {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 12px;\n}\n\n.profile-password > :not(.field:nth-of-type(n + 2)) {\n grid-column: 1 / -1;\n}\n\n.profile-password button {\n justify-self: start;\n}\n\n.profile-name label,\n.field label {\n display: block;\n margin-bottom: 6px;\n color: var(--muted);\n font-size: 0.8125rem;\n font-weight: 600;\n}\n\n.profile-name .row {\n display: flex;\n gap: 8px;\n}\n\n.profile-name input {\n flex: 1;\n min-width: 0;\n}\n\n.field-status.error {\n color: var(--danger);\n}\n\n.profile-password .field-status,\n.profile-password .field-error {\n margin: 0;\n}\n\n.profile-session {\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n}\n\n.profile-session .field-status {\n margin: 3px 0 0;\n}\n\n/* Its button keeps its width: \"Log out\" broke over two lines on a phone (QA BUG-284). */\n.profile-session > button {\n flex: none;\n white-space: nowrap;\n}\n\n.profile-notify {\n gap: 0;\n padding-bottom: 0;\n}\n\n/* Floated, the legend is a flex item: first, before the hint moved up under it (QA BUG-185). */\n.profile-notify legend {\n order: -2;\n margin-bottom: 3px;\n}\n\n.profile-notify > .field-status {\n order: -1;\n margin: 0 0 10px;\n}\n\n/* Still there when empty (a status is announced when it changes), just without its space. */\n.profile-notify > .field-status:empty {\n margin: 0;\n}\n\n.profile-avatar .avatar {\n width: 72px;\n height: 72px;\n font-size: 1.5rem;\n box-shadow:\n 0 0 0 3px var(--bg),\n 0 0 0 5px var(--accent);\n}\n\n/* Notifications (\u00A734): a line each, the setting's name on the left and a switch on the right. */\n.notify-choice {\n display: flex;\n flex-direction: row-reverse;\n justify-content: space-between;\n align-items: center;\n min-height: 52px;\n margin: 0 -20px;\n padding: 0 20px;\n border-top: 1px solid var(--line);\n cursor: pointer;\n}\n\n.notify-choice input,\ninput.switch {\n appearance: none;\n flex: none;\n width: 36px;\n height: 22px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 11px;\n background: radial-gradient(circle 9px at 11px 50%, #fff 98%, transparent) var(--border);\n cursor: pointer;\n transition: background-position 0.15s;\n}\n\n.notify-choice input:checked,\ninput.switch:checked {\n background-color: var(--fill);\n background-position: 14px 0;\n}\n\n@media (max-width: 720px) {\n .profile-body {\n padding: 20px 16px 40px;\n }\n\n .profile-password {\n grid-template-columns: 1fr;\n }\n}\n\n/* A phone: Auto / Light / Dark under the hint, not squeezing it into a narrow column. */\n@media (max-width: 480px) {\n .profile-theme:not(.profile-notify) {\n grid-template-columns: 1fr;\n }\n\n .profile-theme .segmented {\n grid-column: 1;\n grid-row: auto;\n justify-self: start;\n margin-top: 10px;\n }\n}\n", "/* ---- Login: the logo and the site's name over a card with the Log in / Sign up tabs and the form ---- */\n\n.app-main:has(> .auth) {\n display: flex;\n background: var(--page, var(--bg));\n}\n\n.auth {\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n max-width: 420px;\n margin: auto;\n padding: 2rem 1rem;\n}\n\n.auth h1 {\n display: flex;\n flex-direction: column;\n gap: 14px;\n align-items: center;\n font-size: 1.625rem;\n text-align: center;\n}\n\n/* The logo: the brand's bubble (the site's own image when it has one, \u00A724). */\n.auth h1:not(.has-logo)::before {\n content: \"\";\n width: 56px;\n height: 56px;\n background: url(\"/icons/icon.svg\") center / contain no-repeat;\n}\n\n.auth .brand-by {\n margin: -18px 0 0;\n text-align: center;\n}\n\n.auth h1 .brand-logo {\n display: block;\n height: 4rem;\n max-width: 12rem;\n}\n\n.auth-card {\n display: flex;\n flex-direction: column;\n gap: 18px;\n padding: 24px;\n border: 1px solid var(--border);\n border-radius: 16px;\n background: var(--raised);\n animation: pop 0.4s var(--ease);\n}\n\n.tabs {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 2px;\n padding: 3px;\n border-radius: 10px;\n background: var(--surface);\n}\n\n[role=\"tab\"] {\n height: 36px;\n border: 0;\n border-radius: 8px;\n background: none;\n color: var(--muted);\n}\n\n[role=\"tab\"][aria-selected=\"true\"] {\n background: var(--hover);\n color: var(--fg);\n}\n\n.field {\n margin-bottom: 14px;\n}\n\n.field input {\n height: 42px;\n}\n\n/* Forgot password (\u00A739): the link under the password, the reset forms' heading, hint and way back. */\n.auth-forgot {\n display: block;\n margin: -6px 0 10px auto;\n}\n\n.auth-card h2 {\n margin: 0;\n font-size: 1.125rem;\n}\n\n.auth-hint {\n margin: 0 0 14px;\n color: var(--muted);\n}\n\n.auth-back {\n align-self: center;\n}\n\n.auth-form button[type=\"submit\"] {\n width: 100%;\n height: 44px;\n margin-top: 4px;\n font-size: 0.9375rem;\n}\n", "/* ---- Room list ---- */\n\n.rooms {\n max-width: 40rem;\n margin: 0 auto;\n padding: 1rem;\n}\n\n/* A section's heading: a chevron that folds it, and its \"+\" on the right. */\n.section-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 6px 6px 4px;\n}\n\n.room-section h2 {\n font-size: inherit;\n}\n\n.fold,\n.room-section > summary {\n display: flex;\n gap: 6px;\n align-items: center;\n height: 28px;\n padding: 0 8px 0 4px;\n border: 0;\n border-radius: 6px;\n background: none;\n color: var(--dim);\n font-size: 0.75rem;\n font-weight: 600;\n letter-spacing: 0;\n list-style: none;\n cursor: pointer;\n}\n\n/* A heading that doesn't fold (a guest's Open Air rooms): set like the others, without the chevron (QA BUG-188). */\n.room-section .section-title {\n display: flex;\n align-items: center;\n height: 28px;\n padding: 0 8px;\n color: var(--dim);\n font-size: 0.75rem;\n font-weight: 600;\n}\n\n.room-section > summary::-webkit-details-marker {\n display: none;\n}\n\n.fold::before,\n.room-section > summary::before {\n width: 12px;\n height: 12px;\n transition: transform 0.15s;\n}\n\n.fold[aria-expanded=\"false\"]::before,\n.room-section:not([open]) > summary::before {\n transform: rotate(-90deg);\n}\n\n.section-head .icon-button {\n width: 26px;\n height: 26px;\n color: var(--dim);\n}\n\n.section-head .icon-button::before {\n width: 15px;\n height: 15px;\n}\n\n.section-head .icon-button[aria-expanded=\"true\"] {\n background: var(--tint);\n color: var(--accent);\n}\n\n.room-section ul {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.room-section li {\n position: relative;\n display: flex;\n align-items: center;\n margin: 2px 0;\n border-radius: 8px;\n}\n\n@media (hover: hover) {\n .room-section li:hover {\n background: var(--hover);\n }\n}\n\n.room-section li a {\n display: flex;\n flex: 1;\n gap: 10px;\n align-items: center;\n min-width: 0;\n height: 34px;\n padding: 0 10px;\n color: var(--muted);\n font-weight: 500;\n text-decoration: none;\n}\n\n.room-section li a::before {\n content: \"#\";\n width: 16px;\n color: var(--dim);\n font-weight: 600;\n text-align: center;\n}\n\n.more-body li a {\n height: 32px;\n color: var(--dim);\n}\n\n/* DM and collection rows: an avatar or icon instead of \"#\", a little taller. */\n.room-section li.dm a,\n.room-section[data-section=\"collections\"] li a {\n height: 36px;\n}\n\n.room-section li.dm a::before {\n content: none;\n}\n\n.room-section li.dm .avatar {\n width: 22px;\n height: 22px;\n font-size: 10px;\n}\n\n/* The name; the icons and the badge stay visible however long it is. */\n.room-section li a > span:not(.avatar, .badge, .vis, .owner, .ci, .n) {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Unread (\u00A718.4): the name in full color and bold, plus a count. */\n.room-section li a.unread {\n color: var(--fg);\n font-weight: 600;\n}\n\n.room-section li a[aria-current=\"page\"] {\n color: var(--fg);\n font-weight: 600;\n}\n\n.room-section li a[aria-current=\"page\"]::before {\n color: var(--accent);\n}\n\n.room-section li:has(a[aria-current=\"page\"]) {\n background: var(--tint);\n}\n\n/* Private and Open Air (\u00A723.1). */\n.room-section li a > .vis {\n color: var(--dim);\n}\n\n.room-section li a > .vis::before {\n width: 14px;\n height: 14px;\n}\n\n.badge {\n flex: none;\n min-width: 20px;\n margin-left: auto;\n padding: 0 6px;\n border-radius: 10px;\n background: var(--fill);\n color: var(--on-fill);\n font-size: 0.6875rem;\n font-weight: 700;\n line-height: 20px;\n text-align: center;\n}\n\n/* A hidden or archived row's Unhide / Unarchive shows while pointing at the row or using it from the keyboard. */\n@media (hover: hover) {\n .room-section li > .row-action {\n position: absolute;\n right: 0;\n opacity: 0;\n }\n\n .room-section li:hover > .row-action,\n .room-section li:focus-within > .row-action {\n position: static;\n opacity: 1;\n }\n}\n\n.row-action {\n flex: none;\n margin-right: 4px;\n height: 26px;\n padding: 0 9px;\n border: 0;\n border-radius: 6px;\n background: var(--hover);\n font-size: 0.75rem;\n}\n\n/* Hidden & archived: the count on the right; inside, a part for each, quieter than the rooms. */\n.room-section[data-section=\"more\"] > summary {\n justify-content: flex-start;\n margin: 18px 6px 0 4px; /* the last row's 2px margin collapses into it */\n}\n\n.room-section[data-section=\"more\"] .count {\n margin-left: auto;\n}\n\n.more-body {\n margin: 2px 0 4px;\n padding: 2px 0 6px;\n border-radius: 10px;\n background: var(--hover);\n}\n\n.more-part h3 {\n display: flex;\n gap: 8px;\n align-items: center;\n margin: 0;\n padding: 8px 10px 4px;\n color: var(--dim);\n font-size: 0.6875rem;\n font-weight: 600;\n}\n\n.more-part h3::before {\n width: 13px;\n height: 13px;\n}\n\n.empty {\n color: var(--muted);\n}\n\n.more-body .empty {\n margin: 0;\n padding: 8px 10px;\n}\n\n/* The new-room form, in place under Rooms. */\n.new-room {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin: 2px 2px 8px;\n padding: 10px;\n border: 1px solid var(--border);\n border-radius: 12px;\n background: var(--raised);\n animation: pop 0.25s var(--ease);\n}\n\n.name-field {\n display: flex;\n gap: 6px;\n align-items: center;\n height: 36px;\n padding: 0 10px;\n border: 1px solid var(--accent);\n border-radius: 8px;\n background: var(--surface);\n color: var(--dim);\n font-weight: 600;\n}\n\n.name-field input {\n padding: 0;\n border: 0;\n background: none;\n outline: none;\n color: var(--fg);\n font-weight: 400;\n}\n\n/* A segmented choice (who can see a new room). */\n.seg {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 2px;\n margin: 0;\n padding: 2px;\n border: 0;\n border-radius: 8px;\n background: var(--surface);\n}\n\n.seg label {\n display: flex;\n gap: 5px;\n align-items: center;\n justify-content: center;\n height: 30px;\n border-radius: 6px;\n color: var(--muted);\n font-size: 0.75rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.seg label::before {\n width: 12px;\n height: 12px;\n}\n\n.seg label:has(:checked) {\n background: var(--hover);\n color: var(--fg);\n}\n\n.seg label:has(:focus-visible) {\n outline: 2px solid var(--accent);\n}\n\n.new-room .hint {\n margin: 0 2px;\n color: var(--muted);\n font-size: 0.75rem;\n}\n\n.form-buttons {\n display: flex;\n gap: 6px;\n justify-content: flex-end;\n}\n\n.form-buttons button {\n height: 32px;\n padding: 0 12px;\n font-size: 0.8125rem;\n}\n\n.form-buttons .cancel {\n border-color: transparent;\n background: none;\n}\n\n.user-search {\n margin: 0.25rem 0 0.5rem;\n}\n\n.search-status {\n margin: 0.25rem 0;\n font-size: 0.8rem;\n color: var(--muted);\n}\n\n.search-results {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.search-results .person {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n width: 100%;\n border: 0;\n border-radius: var(--radius);\n background: none;\n text-align: left;\n}\n\n/* A long name ends in \"\u2026\" rather than running out of the list. */\n.search-results .person > span:last-child,\n.switcher .name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n", "/* ---- Menus (<details>) ---- */\n\n.menu {\n position: relative;\n}\n\n.menu > summary {\n list-style: none;\n cursor: pointer;\n}\n\n.menu > summary::-webkit-details-marker {\n display: none;\n}\n\n/* The \u22EF toggle (or another icon): a square icon button. */\n.menu > summary.ic {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 36px;\n border-radius: 8px;\n color: var(--muted);\n}\n\n.room-section .menu > summary.i-dots {\n width: 26px;\n height: 26px;\n border-radius: 6px;\n}\n\n.menu > summary:hover,\n.menu[open] > summary {\n background: var(--hover);\n color: var(--fg);\n}\n\n.menu-items {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 10;\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 17.5rem;\n max-width: 20rem;\n padding: 6px;\n border: 1px solid var(--border);\n border-radius: 12px;\n background: var(--raised);\n box-shadow: var(--shadow);\n animation: pop 0.2s var(--ease);\n transform-origin: top right;\n}\n\n.menu-items button {\n display: flex;\n gap: 12px;\n align-items: center;\n min-height: 38px;\n padding: 0 10px;\n border: 0;\n border-radius: 8px;\n background: none;\n font-weight: 400;\n text-align: left;\n}\n\n.menu-items button:hover {\n background: var(--hover);\n}\n\n.menu-items button::before {\n width: 16px;\n height: 16px;\n color: var(--muted);\n}\n\n/* An item with a hint under its label or a value on the right: its icon in a span (.tile). */\n.menu-items .tile::before {\n width: 16px;\n height: 16px;\n color: var(--muted);\n}\n\n.menu-items small {\n display: block;\n color: var(--muted);\n font-size: 0.6875rem;\n line-height: 1.35;\n}\n\n.menu-items .value {\n margin-left: auto;\n color: var(--muted);\n font-size: 0.75rem;\n}\n\n.menu-items button:has(small) {\n padding: 6px 10px;\n}\n\n/* The composer's Attach: the icons on tinted tiles, purple, then blue; the labels bold over a larger hint. */\n.attach + .menu-items .tile {\n --hue: #a78bfa;\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 8px;\n background: color-mix(in srgb, var(--hue) 16%, transparent);\n}\n\n.attach + .menu-items button + button .tile {\n --hue: #38bdf8;\n}\n\n.attach + .menu-items .tile::before {\n color: color-mix(in srgb, var(--hue) 70%, var(--fg));\n}\n\n.attach + .menu-items button {\n padding: 8px 10px;\n font-weight: 600;\n}\n\n.attach + .menu-items small {\n margin-top: 2px;\n font-size: 0.75rem;\n font-weight: 400;\n}\n\n/* A line above: a shadow shrunk by 6px a side, moved up 7px, so 1px of it shows. */\n.menu-items .sep {\n margin-top: 11px;\n box-shadow: 0 -7px 0 -6px var(--border);\n}\n\n/* A setting: a switch on the right. */\n.menu-items [aria-checked] {\n justify-content: flex-start;\n}\n\n.menu-items [aria-checked]::after {\n content: \"\";\n width: 36px;\n height: 22px;\n margin-left: auto;\n border-radius: 11px;\n background: radial-gradient(circle 9px at 11px 50%, #fff 98%, transparent) var(--border);\n transition: background-position 0.15s;\n}\n\n.menu-items [aria-checked=\"true\"]::after {\n background-color: var(--fill);\n background-position: 14px 0;\n}\n\n.menu-items p {\n margin: 0.25rem 0.5rem;\n font-size: 0.9rem;\n}\n", "/* ---- Room ---- */\n\n.room {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.room-header {\n display: flex;\n flex-wrap: wrap;\n gap: 4px 12px;\n align-items: center;\n min-height: 64px;\n padding: 0 20px 0 28px;\n border-bottom: 1px solid var(--line);\n}\n\n.room-header h1 {\n display: flex;\n flex: 1;\n gap: 10px;\n align-items: center;\n min-width: 0;\n font-size: 1.125rem;\n}\n\n.day span {\n padding: 3px 10px;\n border: 1px solid var(--border);\n border-radius: 10px;\n}\n\n.previews span {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.room-header h1 .name,\n.room-header h1.dm-title span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.room-header .hash {\n width: auto;\n margin-right: 2px;\n color: var(--dim);\n font-weight: 600;\n}\n\n/* Private or Open Air, next to the name. */\n.vis-badge {\n display: inline-flex;\n flex: none;\n gap: 5px;\n align-items: center;\n height: 24px;\n padding: 0 9px;\n border-radius: 12px;\n background: var(--hover);\n color: var(--muted);\n font-size: 0.75rem;\n font-weight: 600;\n letter-spacing: 0;\n}\n\n.vis-badge::before {\n width: 12px;\n height: 12px;\n}\n\n/* A private room's members: overlapping faces and a count, a line between them and the buttons. */\n.room-members {\n position: relative;\n display: flex;\n gap: 8px;\n align-items: center;\n height: 36px;\n margin-right: 13px;\n padding: 0 10px 0 6px;\n border: 0;\n border-radius: 18px;\n background: none;\n color: var(--muted);\n font-size: 0.8125rem;\n}\n\n.room-members::after {\n content: \"\";\n position: absolute;\n right: -13px;\n width: 1px;\n height: 20px;\n background: var(--border);\n}\n\n.faces {\n display: flex;\n}\n\n.faces .avatar {\n border: 2px solid var(--bg);\n box-sizing: content-box;\n}\n\n.msg > .avatar {\n position: absolute;\n top: 8px;\n left: 28px;\n}\n\n.faces .avatar + .avatar {\n margin-left: -8px;\n}\n\n.room-header .room-error {\n flex-basis: 100%;\n}\n\n/* Where else a shared room is held (\u00A733.9). */\n.room-header .room-shared {\n flex-basis: 100%;\n margin: 0;\n color: var(--muted);\n font-size: 0.8rem;\n}\n\n.back {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 44px;\n height: 44px;\n margin-left: -16px;\n border-radius: 12px;\n color: var(--muted);\n}\n\n.back::before {\n width: 22px;\n height: 22px;\n}\n\n.room-body {\n position: relative;\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.messages {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n overflow-anchor: auto;\n margin: 0;\n padding: 12px 0 8px;\n list-style: none;\n}\n\n.sentinel {\n height: 1px;\n}\n\n.beginning,\n.load-error,\n.service {\n padding: 1.5rem 0 1rem;\n color: var(--muted);\n text-align: center;\n overflow-wrap: anywhere;\n}\n\n.beginning::before {\n content: \"\u2728\";\n display: block;\n font-size: 2rem;\n}\n\n/* The date sits in a chip on the line. */\n.day {\n display: flex;\n gap: 12px;\n align-items: center;\n margin: 8px 28px 4px;\n color: var(--muted);\n font-size: 0.75rem;\n font-weight: 600;\n}\n\n.day::before,\n.day::after {\n content: \"\";\n flex: 1;\n border-top: 1px solid var(--line);\n}\n\n/* A service message (\u00A75.3): the app's own line. */\n.service {\n padding: 0.5rem;\n font-size: 0.8rem;\n}\n\n/* Room on the left for the author's avatar, which only group starts show (\u00A715.4). */\n.msg {\n position: relative;\n padding: 2px 28px 2px calc(28px + 36px + 14px);\n color: var(--text);\n line-height: 1.55;\n transition: background-color 0.1s;\n}\n\n/* A reply's quote is above the name: the avatar goes down with the name. */\n.msg.group-start > .reply-quote ~ .avatar {\n top: 30px;\n}\n\n.msg.group-start {\n min-height: 50px;\n padding-top: 6px;\n margin-top: 6px;\n}\n\n@media (hover: hover) {\n .messages:not(.by-touch) .msg:hover {\n background: color-mix(in srgb, var(--fill) 7%, transparent);\n }\n}\n\n.meta {\n display: flex;\n gap: 8px;\n align-items: baseline;\n min-width: 0;\n line-height: 1.5;\n}\n\n.author {\n min-width: 0;\n overflow: hidden;\n color: var(--fg);\n font-weight: 600;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.meta time,\n.permalink {\n flex: none;\n}\n\n/* The time links to its message: underlined only on hover. */\n.permalink:not(:hover) {\n text-decoration: none;\n}\n\n/* Another author's name opens a menu with \"Message\" (\u00A716.5). It shrinks and truncates like a plain name, so the\n time stays on screen (QA BUG-32). */\n.author-menu {\n min-width: 0;\n}\n\n.author-menu > summary.author {\n display: block;\n padding: 0;\n color: inherit;\n}\n\n.author-menu > summary.author:hover,\n.author-menu[open] > summary.author {\n background: none;\n text-decoration: underline;\n}\n\n.author-menu .menu-items {\n right: auto;\n left: 0;\n min-width: 8rem;\n transform-origin: top left;\n}\n\n/* Too near the composer (the last message's author): it opens upwards (QA BUG-227). */\n.author-menu.up .menu-items {\n top: auto;\n bottom: calc(100% + 4px);\n transform-origin: bottom left;\n}\n\n.meta time,\n.permalink,\n.edited,\n.hint,\n.counter {\n font-size: 0.75rem;\n color: var(--dim);\n}\n\n.body {\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.edited {\n margin-left: 0.35rem;\n}\n\n.msg .body,\n.msg .edited {\n display: inline;\n}\n\n.placeholder {\n font-style: italic;\n color: var(--muted);\n}\n\n/* Link previews (\u00A728): a chip per link under the message, its favicon and title. */\n.previews {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 6px;\n margin: 6px 0 2px;\n padding: 0;\n list-style: none;\n font-size: 0.8125rem;\n font-weight: 600;\n}\n\n.previews li {\n max-width: 100%;\n}\n\n.previews a {\n display: flex;\n gap: 8px;\n align-items: center;\n height: 32px;\n padding: 0 12px 0 8px;\n border: 1px solid var(--border);\n border-radius: 8px;\n background: color-mix(in srgb, var(--fg) 4%, transparent);\n text-decoration: none;\n}\n", "/* ---- Message search (\u00A729): a bar under the room header, its results over the top of the list ---- */\n/* Its status and results go by the people search's class names (room-list.css): only those in .room-search here\n (QA BUG-115: the forward dialog's list and the new-DM search got a 45vh scroll box of their own). */\n\n/* While it is open, the header's search button is lit (its aria-expanded). */\n.search-toggle[aria-expanded=\"true\"] {\n background: var(--tint);\n color: var(--fg);\n}\n\n/* One row: the field with its icon (the bar's ::before, over the field), how many are found, Close; the results under\n them. */\n.room-search {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto auto;\n column-gap: 10px;\n align-items: center;\n padding: 10px 20px 10px 28px;\n border-bottom: 1px solid var(--line);\n background: var(--raised);\n box-shadow: 0 12px 24px rgb(0 0 0 / 20%);\n}\n\n.search-bar {\n display: contents;\n}\n\n.room-search::before {\n z-index: 1;\n grid-area: 1 / 1;\n width: 16px;\n height: 16px;\n margin-left: 14px;\n color: var(--dim);\n pointer-events: none;\n}\n\n.search-bar input {\n grid-area: 1 / 1;\n height: 42px;\n padding-left: 40px;\n}\n\n.search-bar button {\n grid-area: 1 / 3;\n}\n\n.room-search .search-status {\n grid-area: 1 / 2;\n margin: 0;\n color: var(--muted);\n font-size: 0.8125rem;\n}\n\n.room-search .search-results {\n grid-column: 1 / -1;\n max-height: 45vh;\n overflow-y: auto;\n margin: 6px -12px 0 -16px;\n padding: 0;\n list-style: none;\n}\n\n.room-search .search-results .link {\n display: block;\n height: 34px;\n margin: 6px auto 4px;\n padding: 0 14px;\n border: 1px solid var(--border);\n border-radius: 10px;\n color: var(--fg);\n font-size: 0.8125rem;\n text-decoration: none;\n}\n\n/* A result: the author's face, their name and when, the text. */\n.search-result {\n display: grid;\n grid-template-columns: 26px minmax(0, 1fr);\n column-gap: 12px;\n width: 100%;\n padding: 7px 12px;\n border: 0;\n border-radius: 10px;\n background: none;\n text-align: left;\n font-weight: 400;\n}\n\n.search-result .avatar {\n grid-row: 1 / 3;\n width: 26px;\n height: 26px;\n margin-top: 2px;\n font-size: 0.625rem;\n}\n\n.search-result .body {\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n white-space: normal;\n}\n\n.search-result mark {\n background: var(--highlight);\n color: inherit;\n}\n", "/* ---- Replies (\u00A719): a one-line quote of the original above the reply, joined to the avatar by a curve; clicking it\n shows the original. ---- */\n\n.reply-quote {\n display: flex;\n gap: 6px;\n align-items: center;\n max-width: calc(100% + 32px);\n margin: 0 0 2px -32px;\n padding: 0 4px 0 0;\n border: 0;\n border-radius: 6px;\n background: none;\n color: var(--dim);\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 1.5;\n text-align: left;\n}\n\n/* From the avatar's middle to the message's text: the curve and the gap make up the quote's -32px, so its author\n lines up with the text below. */\n.reply-quote::before {\n content: \"\";\n flex: none;\n align-self: flex-end;\n width: 26px;\n height: 10px;\n margin-bottom: -4px;\n border: solid var(--border);\n border-width: 2px 0 0 2px;\n border-top-left-radius: 6px;\n}\n\n/* No avatar under a reply that goes on a group: no curve. */\n/* No avatar to reach to: the quote is as wide as the text at most (QA BUG-271: it kept the 32px more and ran past the\n column, under the window's edge). */\n.msg:not(.group-start) > .reply-quote {\n max-width: 100%;\n margin-left: 0;\n}\n\n.msg:not(.group-start) > .reply-quote::before {\n content: none;\n}\n\n.reply-quote:active:not(:disabled) {\n transform: none;\n}\n\n@media (hover: hover) {\n .reply-quote:hover {\n color: var(--fg);\n }\n}\n\n/* The text gives way first; the author only a little, and never for a short quote (QA BUG-186: a percentage of the\n quote, which is as wide as its content, clipped the author of a short one). */\n.reply-author {\n flex: 0 0.15 auto;\n min-width: 0;\n max-width: 20em;\n overflow: hidden;\n color: var(--muted);\n font-weight: 600;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.reply-text {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Room for the slant: the box clips what leans past its end (QA BUG-177). */\n.reply-quote.deleted .reply-text {\n padding-right: 0.15em;\n font-style: italic;\n}\n\n/* Replying: a strip over the composer. */\n.replying {\n display: flex;\n gap: 10px;\n align-items: center;\n min-height: 40px;\n padding: 0 14px 0 22px;\n border-top: 1px solid var(--line);\n color: var(--muted);\n font-size: 0.8125rem;\n}\n\n.replying-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.replying-label strong {\n color: var(--fg);\n font-weight: 600;\n}\n\n.replying-text::before {\n content: \" \u00B7 \";\n}\n\n.replying .remove {\n width: 28px;\n height: 28px;\n}\n\n/* \"@handle\" in a message (\u00A741); yours stands out. The sidebar's \"Mentions & replies\" row has \"@\" for its \"#\". */\n.mention {\n color: var(--accent);\n font-weight: 600;\n}\n\n/* In the text's colour: the accent on the tint, in a message tinted as yours too, was under 4.5:1 (QA BUG-262). */\n.mention.me {\n border-radius: 4px;\n background: var(--tint);\n color: var(--text);\n}\n\n.room-section[data-section=\"inbox\"] a::before {\n content: \"@\";\n}\n\n.badge + .badge {\n margin-left: 0;\n}\n", "/* ---- Attachments in messages (\u00A717.5): uncropped, at a fixed height (narrower when too wide), so loading images\n never moves the list vertically. ---- */\n\n.attachments {\n margin: 0.3rem 0 0.15rem;\n}\n\n.att-images {\n --att-h: 120px;\n --att-max-w: 240px;\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n}\n\n.att-images.one {\n --att-h: 240px;\n --att-max-w: 400px;\n}\n\n.att-tile {\n position: relative;\n display: block;\n min-width: calc(var(--att-h) / 2);\n max-width: min(100%, var(--att-max-w));\n height: var(--att-h);\n overflow: hidden;\n border-radius: var(--radius);\n background: var(--surface);\n}\n\n/*\n * Full height; a too-wide image is narrowed to the max width and letterboxed rather than shortened or cropped, a\n * too-narrow one is centred in the min width, and a small one is never enlarged.\n */\n.att-tile img,\n.att-tile video {\n display: block;\n width: auto;\n max-width: 100%;\n height: 100%;\n margin-inline: auto;\n object-fit: scale-down;\n transition: transform 0.25s;\n}\n\n/* A click on a video tile is the link's: it plays in the viewer. */\n.att-tile video {\n pointer-events: none;\n}\n\n.att-tile:hover img,\n.att-tile:hover video {\n transform: scale(1.05);\n}\n\n/* Over a video's first frame, and on the media grid's and collections' video tiles. A drawn triangle, not \"\u25B6\", which\n Apple's, Android's and Windows' fonts show as an emoji (QA BUG-242). */\n.att-play {\n position: absolute;\n inset: 50% auto auto 50%;\n translate: -50% -50%;\n display: grid;\n place-items: center;\n width: min(2.75rem, 40%);\n aspect-ratio: 1;\n border-radius: 50%;\n background: rgb(13 11 20 / 60%);\n pointer-events: none;\n}\n\n.att-play::before {\n content: \"\";\n width: 55%;\n height: 55%;\n background: #fff;\n mask:\n url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E\") center\n / contain no-repeat;\n}\n\n.att-broken {\n display: flex;\n flex-wrap: wrap;\n gap: 0.25rem;\n align-items: center;\n justify-content: center;\n padding: 0.5rem;\n border: 2px dashed var(--border);\n color: var(--muted);\n font-size: 0.8rem;\n text-align: center;\n}\n\n.att-broken button {\n padding: 0.1rem 0.5rem;\n font-size: 0.8rem;\n}\n\n.att-files {\n display: flex;\n flex-wrap: wrap;\n gap: 0.4rem;\n margin: 0.3rem 0 0;\n padding: 0;\n list-style: none;\n}\n\n.att-file {\n display: inline-block;\n max-width: 18rem;\n padding: 0 12px;\n overflow: hidden;\n border: 1px solid var(--border);\n border-radius: 10px;\n background: color-mix(in srgb, var(--fg) 5%, transparent);\n color: var(--fg);\n font-size: 0.8125rem;\n font-weight: 600;\n line-height: 40px;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* A document icon before the name, in the text's color. */\n.att-file::before {\n content: \"\";\n display: inline-block;\n width: 16px;\n height: 16px;\n margin-right: 8px;\n background: var(--accent);\n vertical-align: -3px;\n mask: var(--i) center / contain no-repeat;\n}\n\n/* An audio file's player, next to its chip and as high as it (the chip's baseline is its bottom: overflow hidden). */\n.att-files audio {\n max-width: 100%;\n height: 2.2rem;\n vertical-align: top;\n}\n\n/* Over the last tile when a message has more images and videos than it shows: the viewer steps through them all. */\n.att-more {\n position: absolute;\n inset: 0;\n display: grid;\n place-items: center;\n background: rgb(13 11 20 / 55%);\n color: #fff;\n font-size: 1.5rem;\n font-weight: 700;\n pointer-events: none;\n}\n\n/* How much of a sending message's attachments has been uploaded (\u00A717.4). */\n.att-progress {\n display: block;\n width: min(100%, 16rem);\n height: 4px;\n margin-top: 0.35rem;\n overflow: hidden;\n border: 0;\n border-radius: 2px;\n background: var(--border);\n accent-color: var(--accent);\n appearance: none;\n}\n\n.att-progress::-webkit-progress-bar {\n background: var(--border);\n}\n\n.att-progress::-webkit-progress-value {\n background: var(--accent);\n transition: width 0.2s;\n}\n\n.att-progress::-moz-progress-bar {\n background: var(--accent);\n}\n", "/* ---- Media collections (\u00A731): the collections icon, a tile's \"from collection\" badge and Save button, the sidebar's\n rows. The collection page, the save menu and the picker are styled by collections.css, loaded with their chunk. ---- */\n\n/* The icon: a picture with another behind it. A mask, so it takes the text color; on any button or link. */\n.ci {\n display: inline-block;\n flex: none;\n width: 1.15em;\n height: 1.15em;\n background: currentcolor;\n vertical-align: -0.2em;\n mask:\n url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h12a2 2 0 0 1 2 2v12'/%3E%3Crect x='3' y='7' width='14' height='14' rx='2'/%3E%3Cpath d='m3 19 5-5 4 4 2-2 3 3'/%3E%3Ccircle cx='12.5' cy='11.5' r='1'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n}\n\n@media (hover: hover) {\n .icon-button:hover:not(:disabled) {\n background: var(--hover);\n color: var(--fg);\n }\n}\n\n/* A message's image or video with what goes over it. */\n.att-cell {\n position: relative;\n display: block;\n max-width: min(100%, var(--att-max-w));\n}\n\n.att-src,\n.att-save {\n position: absolute;\n z-index: 1;\n border-radius: var(--pill);\n background: rgb(13 11 20 / 65%);\n color: #fff;\n font-size: 0.7rem;\n font-weight: 700;\n line-height: 1.6;\n}\n\n.att-src {\n bottom: 4px;\n left: 4px;\n display: flex;\n gap: 0.2rem;\n align-items: center;\n max-width: calc(100% - 8px);\n padding: 0 0.45rem;\n overflow: hidden;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.att-src > .i-lock::before {\n width: 12px;\n height: 12px;\n}\n\na.att-src:hover {\n background: var(--accent);\n}\n\n.att-save {\n top: 4px;\n right: 4px;\n width: 1.9rem;\n height: 1.9rem;\n padding: 0;\n border: 0;\n font-size: 0.95rem;\n opacity: 0;\n}\n\n/* Shown while pointing at the tile or on it; always on touch screens, which have no hover. */\n.att-cell:hover .att-save,\n.att-save:focus-visible,\n.att-save[aria-expanded=\"true\"] {\n opacity: 1;\n}\n\n@media (hover: none) {\n .att-save {\n opacity: 0.85;\n }\n}\n\n/* Sidebar rows (\u00A731): the icon on a tinted tile instead of \"#\" (the tile is ::before, the icon is moved over it), who\n owns one you follow, how many items it has. */\n.room-section[data-section=\"collections\"] li a::before {\n content: \"\";\n width: 22px;\n height: 22px;\n border-radius: 6px;\n background: color-mix(in srgb, var(--hue) 16%, transparent);\n}\n\n/* Toward the text color: lighter in the dark theme, darker in the light one. The tints (t0..t3) are the collection's,\n by id: its page's header has the same (collections.css). */\n.room-section[data-section=\"collections\"] li a > .ci {\n width: 13px;\n height: 13px;\n margin: 0 4.5px 0 -27.5px;\n color: color-mix(in srgb, var(--hue) 70%, var(--fg));\n}\n\n.t0 {\n --hue: #a78bfa;\n}\n\n.t1 {\n --hue: #38bdf8;\n}\n\n.t2 {\n --hue: #fb923c;\n}\n\n.t3 {\n --hue: #4ade80;\n}\n\n.room-section li a > .n {\n min-width: 18px;\n color: var(--dim);\n font-size: 0.75rem;\n text-align: right;\n}\n\n.room-section li .owner {\n color: var(--muted);\n font-size: 0.8rem;\n}\n\n/* A sending message's tile for an item from a collection. */\n.tray-item .ci {\n width: 40px;\n color: var(--muted);\n}\n", "/* ---- Message states (sending, failed, highlighted) and the Edit/Delete toolbar ---- */\n\n/* Your own message pops in while it sends. */\n.msg.pending {\n opacity: 0.6;\n animation: pop 0.3s var(--ease);\n}\n\n.msg.failed .body,\n.msg.failed .attachments {\n opacity: 0.7;\n}\n\n/* Someone else's reply to one of your messages (\u00A719.3): a tinted card, its avatar and text where other messages have them. */\n.msg.to-me {\n margin-right: 16px;\n margin-left: 16px;\n padding-right: 12px;\n padding-left: calc(12px + 36px + 14px);\n border-radius: 10px;\n background: color-mix(in srgb, var(--fill) 10%, transparent);\n}\n\n.msg.to-me > .avatar {\n left: 12px;\n}\n\n/* Held, then faded; the controller drops the class once it is gone (HIGHLIGHT_MS). */\n.msg.target {\n background: var(--highlight);\n animation: target-fade 3s ease-in forwards;\n}\n\n@keyframes target-fade {\n 0%,\n 60% {\n background: var(--highlight);\n }\n 100% {\n background: transparent;\n }\n}\n\n/* React, Reply, Forward, Select, Edit, Delete: one floating toolbar of icons. */\n.actions {\n position: absolute;\n top: -14px;\n right: 28px;\n z-index: 1;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: 2px;\n max-width: calc(100% - 56px);\n padding: 3px;\n border: 1px solid var(--border);\n border-radius: 10px;\n background: var(--raised);\n box-shadow: var(--shadow);\n opacity: 0; /* not visibility:hidden \u2014 the buttons must stay in the tab order */\n /* Hidden, it must not catch the pointer: it overlaps the message above, which would light up this one's instead. */\n pointer-events: none;\n}\n\n.actions button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: 0;\n border-radius: 7px;\n background: none;\n color: var(--muted);\n}\n\n.actions button::before {\n width: 16px;\n height: 16px;\n}\n\n.actions button.delete {\n color: var(--danger);\n}\n\n/* Touch screens have no hover: a tapped message gets .touched instead (and the background hover gives).\n Not :focus-within: focus stays on a clicked button (\u263A+, a reaction\u2026), which would keep this message's buttons up\n next to those of the one the mouse moved on to; keyboard focus shows them below (:focus-visible). A tap leaves the\n message under :hover, so after a tap (.by-touch, until a click) hover shows nothing. */\n@media (hover: hover) {\n .messages:not(.by-touch) .msg:hover .actions {\n opacity: 1;\n pointer-events: auto;\n }\n}\n\n.msg.touched {\n background: color-mix(in srgb, var(--fill) 7%, transparent);\n}\n\n/* Only focus from the keyboard: any focus would keep the buttons up once you are done with one, as it goes back to\n the button you clicked or tapped (React, Forward\u2026). */\n.msg.touched .actions,\n.msg:has(:focus-visible) .actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n/* A phone is too narrow for the floating toolbar (it wraps over the message): there it shows below the message.\n Hidden, it shrinks to nothing rather than going away, so screen readers still reach the buttons. */\n@media (hover: none) {\n .actions {\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n }\n\n .msg.touched .actions,\n .msg:has(:focus-visible) .actions {\n position: static;\n justify-content: flex-start;\n width: fit-content;\n height: auto;\n overflow: visible;\n clip-path: none;\n margin-top: 0.15rem;\n box-shadow: none;\n }\n}\n\n/* Over the first unread message (\u00A718.5): a pink line, NEW at its end. No height of its own, so nothing moves when it\n goes; faded out before the controller drops it (UNREAD_LINE_MS). */\n.new-line {\n height: 0;\n margin: 0 28px;\n border-top: 1px solid color-mix(in srgb, var(--new) 60%, transparent);\n font-size: 0.6875rem;\n font-weight: 700;\n letter-spacing: 0.04em;\n line-height: 0;\n color: var(--new);\n text-align: right;\n text-transform: uppercase;\n animation: fade-out 1s 4s forwards;\n}\n\n.new-line span {\n padding-left: 10px;\n background: var(--bg);\n}\n\n@keyframes fade-out {\n to {\n opacity: 0;\n }\n}\n", "/* ---- Reactions (\u00A720.3): a chip per emoji with its count; yours are tinted. ---- */\n\n.reactions {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n margin: 4px 0 2px;\n}\n\n.reaction,\n.add-reaction {\n display: inline-flex;\n gap: 6px;\n align-items: center;\n height: 28px;\n padding: 0 10px;\n border: 1px solid var(--border);\n border-radius: 14px;\n background: color-mix(in srgb, var(--fg) 4%, transparent);\n color: var(--muted);\n font-size: 0.8125rem;\n font-weight: 600;\n}\n\n.reaction.mine {\n border-color: color-mix(in srgb, var(--fill) 55%, transparent);\n background: var(--tint);\n color: var(--fg);\n}\n\n.add-reaction {\n width: 32px;\n justify-content: center;\n padding: 0;\n border-style: dashed;\n background: none;\n color: var(--dim);\n}\n\n.add-reaction::before {\n width: 15px;\n height: 15px;\n}\n", "/* ---- Composer, edit box, inline errors and hints, the status line, the new-messages button ---- */\n\n.confirm,\n.send-error,\n.msg-error {\n display: flex;\n flex-wrap: wrap;\n gap: 0.4rem;\n align-items: center;\n margin: 0.25rem 0;\n font-size: 0.85rem;\n}\n\n/* A confirm's buttons (and the selection bar's) wrap as one. */\n.bar-actions {\n display: flex;\n gap: inherit;\n align-items: center;\n}\n\n.confirm button,\n.send-error button,\n.msg-error button {\n height: 26px;\n padding: 0 10px;\n border: 0;\n border-radius: 6px;\n background: var(--hover);\n font-size: 0.75rem;\n}\n\n.confirm .danger {\n background: var(--danger);\n color: var(--bg);\n}\n\n.edit-input {\n display: block;\n margin-top: 0.15rem;\n resize: vertical;\n}\n\n.hint {\n margin: 0.15rem 0 0;\n}\n\n.hint.error {\n color: var(--danger);\n}\n\n.room-notice {\n margin: 0;\n padding: 0.4rem 1rem;\n background: var(--tint);\n font-size: 0.85rem;\n color: var(--muted);\n}\n\n.room-notice:empty {\n display: none;\n}\n\n/* \"N new messages\" / \"Jump to latest\": a raised pill over the bottom of the list. */\n.new-messages {\n position: absolute;\n bottom: 16px;\n left: 50%;\n display: flex;\n gap: 8px;\n align-items: center;\n height: 36px;\n padding: 0 14px 0 12px;\n border-radius: 18px;\n background: var(--raised);\n box-shadow: var(--shadow);\n font-size: 0.8125rem;\n transform: translateX(-50%);\n animation: pop 0.3s var(--ease);\n}\n\n.new-messages::before {\n width: 14px;\n height: 14px;\n}\n\n.new-messages:active:not(:disabled) {\n transform: translateX(-50%) scale(0.95);\n}\n\n/* The composer: a flat bar along the bottom; replying and attachments show in strips above it, menus float over the\n messages. */\n.composer {\n border-top: 1px solid var(--line);\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n.composer-row {\n display: flex;\n gap: 4px;\n align-items: flex-end;\n /* With the composer's top border, as tall as the sidebar's foot (68px), so their top lines meet. */\n min-height: 67px;\n padding: 13px 14px 14px 12px;\n}\n\n.composer-row > button,\n.composer-row > .menu > summary {\n width: 40px;\n height: 40px;\n border-radius: 10px;\n}\n\n/* One line is as tall as the buttons, with the text (and placeholder) centred on them. */\n.composer textarea {\n flex: 1;\n align-self: center;\n min-width: 0;\n min-height: 40px;\n max-height: 10rem;\n /* overflow-x: Firefox with classic scrollbars otherwise makes room for a horizontal one, taller than a row. */\n overflow-x: hidden;\n padding: calc((40px - 1lh) / 2) 6px;\n border: 0;\n background: none;\n outline: none;\n resize: none;\n}\n\n.composer .menu[open] > summary {\n background: var(--tint);\n color: var(--accent);\n}\n\n/* The attach menu opens upwards. */\n.composer .menu-items {\n top: auto;\n right: auto;\n bottom: calc(100% + 8px);\n left: 0;\n transform-origin: bottom left;\n}\n\n.composer .send {\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n padding: 0;\n}\n\n.composer .send::before {\n width: 17px;\n height: 17px;\n}\n\n/* Nothing to send yet: dimmed. */\n.composer .send:disabled {\n opacity: 1;\n background: color-mix(in srgb, var(--fill) 25%, transparent);\n color: color-mix(in srgb, #fff 55%, transparent);\n}\n\n.composer .counter {\n align-self: center;\n}\n\n/* Ctrl+/ focuses the textarea (\u00A77.6): said while it isn't focused, and only where there is a keyboard. */\n.focus-key {\n align-self: center;\n margin-inline: 4px;\n white-space: nowrap;\n}\n\n.composer textarea:focus ~ .focus-key {\n display: none;\n}\n\n@media (hover: none) {\n .focus-key {\n display: none;\n }\n}\n", "/* ---- Attachment tray (\u00A717.4) ---- */\n\n.tray {\n display: flex;\n flex-wrap: wrap;\n gap: 0.4rem;\n /* Up to 10 files: about three rows, then it scrolls, so the composer stays on screen on a phone. */\n max-height: 9.5rem;\n margin: 0;\n padding: 12px 14px 0 22px;\n overflow-y: auto;\n list-style: none;\n}\n\n.tray-item {\n display: flex;\n gap: 0.4rem;\n align-items: center;\n max-width: 16rem;\n padding: 0.25rem 0.25rem 0.25rem 0.4rem;\n border: 1px solid var(--border);\n border-radius: var(--radius);\n background: var(--raised);\n font-size: 0.85rem;\n animation: pop 0.25s var(--ease);\n}\n\n.tray-thumb {\n flex: none;\n border-radius: 8px;\n object-fit: cover;\n}\n\n.tray-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.tray-size {\n flex: none;\n color: var(--muted);\n}\n\n.tray-item .remove {\n flex: none;\n padding: 0 0.45rem;\n border: 0;\n}\n\n.tray-error {\n margin: 0 0 0.4rem;\n color: var(--danger);\n font-size: 0.85rem;\n}\n\n.tray-error:empty {\n display: none;\n}\n\n.composer textarea::placeholder {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.counter {\n align-self: center;\n}\n\n.counter:empty {\n display: none;\n}\n", "/* ---- Selecting and forwarding (\u00A721): a checkbox on each message, a bar in place of the composer. ---- */\n\n.forwarded {\n color: var(--muted);\n font-size: 0.75rem;\n font-style: italic;\n}\n\n/* Selecting: a checkbox in front of each message, the avatar after it. */\n.messages.selecting .msg {\n padding-left: calc(28px + 32px + 36px + 14px);\n cursor: pointer;\n user-select: none;\n}\n\n.messages.selecting .msg > .avatar {\n left: 60px;\n}\n\n.msg > .select {\n position: absolute;\n top: 17px;\n left: 28px;\n width: 18px;\n height: 18px;\n padding: 0;\n accent-color: var(--fill);\n}\n\n.msg:not(.group-start) > .select {\n top: 6px;\n}\n\n/* A reply to you is a card set in by 16px: its checkbox and avatar line up with the others'. */\n.messages.selecting .msg.to-me {\n padding-left: calc(28px + 32px + 36px + 14px - 16px);\n}\n\n.msg.to-me > .select {\n left: 12px;\n}\n\n.messages.selecting .msg.to-me > .avatar {\n left: 44px;\n}\n\n.msg.selected {\n background: var(--tint);\n}\n\n/* In place of the composer. */\n.selection-bar {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n align-items: center;\n min-height: 68px;\n padding: 8px 16px calc(8px + env(safe-area-inset-bottom)) 24px;\n border-top: 1px solid var(--line);\n background: var(--raised);\n}\n\n.selection-bar > span {\n flex: 1;\n font-weight: 600;\n}\n\n.selection-bar .ic:not([hidden]) {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.selection-bar .ic::before {\n width: 16px;\n height: 16px;\n}\n\n.selection-bar button {\n height: 38px;\n}\n\n.selection-bar button:not(.primary, .danger) {\n border-color: transparent;\n background: none;\n}\n\n/* A phone: the buttons without their icons, on one line with the count. */\n@media (max-width: 400px) {\n .selection-bar {\n padding-left: 16px;\n }\n\n .selection-bar .ic::before {\n display: none;\n }\n}\n\n/* Dialogs: a raised card over a dimmed page. */\ndialog.forward,\ndialog.access {\n width: min(30rem, calc(100% - 2rem));\n max-height: min(36rem, 85vh);\n padding: 20px 24px;\n border: 1px solid var(--border);\n border-radius: 16px;\n /* Between the raised menus and the page, as the boards draw dialogs (#1d1929 in the dark). */\n background: color-mix(in srgb, var(--raised), var(--bg));\n color: var(--fg);\n box-shadow: var(--shadow);\n}\n\ndialog.forward[open] {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\ndialog.forward::backdrop,\ndialog.access::backdrop {\n background: rgb(8 6 14 / 66%);\n}\n\n.forward-list {\n min-height: 0;\n overflow-y: auto;\n}\n\n.switcher > .search-status {\n margin: 8px 20px;\n}\n\n.switcher .forward-list {\n padding: 8px;\n}\n\ndialog.forward.busy .forward-list {\n opacity: 0.6;\n pointer-events: none;\n}\n\n/* Jump to (\u00A732): high on the page, a big field over the list; an option chosen with the arrow keys shown as hovered. */\ndialog.switcher {\n width: min(35rem, calc(100% - 2rem));\n max-height: min(36rem, calc(100dvh - 140px - 1rem));\n margin-top: 140px;\n padding: 0;\n overflow: hidden;\n}\n\ndialog.switcher[open] {\n gap: 0;\n}\n\n/* The field: a search icon, then Esc. Only the list scrolls: a long one used to squeeze the field (a flex item) to a\n sliver. */\n.jump-field {\n display: flex;\n flex: none;\n gap: 12px;\n align-items: center;\n height: 60px;\n padding: 0 20px;\n border-bottom: 1px solid var(--border);\n color: var(--muted);\n}\n\n.jump-field::before {\n width: 18px;\n height: 18px;\n}\n\n.jump-field input {\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: 0;\n border: 0;\n background: none;\n outline: none;\n font-size: 1.0625rem;\n}\n\n.switcher kbd,\n.jump-button kbd,\n.focus-key {\n padding: 1px 6px;\n border: 1px solid var(--border);\n border-radius: 5px;\n color: var(--muted);\n /* Not `font: \u2026 inherit` (invalid in the shorthand, so kbd stayed monospace). */\n font: inherit;\n font-size: 0.6875rem;\n font-weight: 600;\n line-height: 1.5;\n}\n\n/* What the keys do, under the list (not on touch screens). */\n.jump-keys {\n display: flex;\n flex: none;\n gap: 16px;\n margin: 0;\n padding: 10px 20px;\n border-top: 1px solid var(--border);\n color: var(--muted);\n font-size: 0.75rem;\n}\n\n/* Touch screens: no key hints, the sidebar's Jump to row's \"Ctrl K\" too (QA BUG-266). */\n@media (hover: none) {\n .jump-keys,\n .jump-field kbd,\n .jump-button kbd {\n display: none;\n }\n}\n\n.switcher > .search-status:empty {\n display: none;\n}\n\n.switcher .person {\n gap: 12px;\n height: 46px;\n padding: 0 12px;\n border-radius: 10px;\n font-weight: 500;\n cursor: pointer;\n}\n\n.switcher .person:hover {\n background: var(--hover);\n}\n\n.switcher [aria-selected=\"true\"] {\n background: color-mix(in srgb, var(--fill) 20%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);\n}\n\n/* A room's \"#\" or icon, a collection's icon: on a tile, as big as a person's face. */\n.switcher .tile,\n.switcher .avatar {\n width: 28px;\n height: 28px;\n}\n\n.switcher .tile {\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n border-radius: 8px;\n background: var(--hover);\n color: var(--dim);\n font-weight: 700;\n}\n\n.switcher .tile::before {\n width: 14px;\n height: 14px;\n}\n\n.switcher small {\n margin-left: 4px;\n color: var(--dim);\n font-size: 0.75rem;\n font-weight: 400;\n}\n\n/* --dim is under 4.5:1 on the picked row's tint (QA BUG-202). */\n.switcher [aria-selected=\"true\"] small {\n color: var(--muted);\n}\n\n.switcher .unread {\n font-weight: 700;\n}\n\ndialog.forward .cancel {\n align-self: flex-end;\n border-color: transparent;\n background: none;\n}\n\ndialog.forward h2 {\n margin: 0;\n font-size: 1.0625rem;\n}\n\ndialog.forward > .search-status:empty {\n display: none;\n}\n\n/* Where to forward to: a room's \"#\" on a tile as big as a person's face. */\ndialog:not(.switcher) .forward-list .person {\n gap: 12px;\n height: 44px;\n padding: 0 10px;\n border-radius: 10px;\n}\n\ndialog:not(.switcher) .forward-list .avatar,\ndialog.forward .hash {\n width: 30px;\n height: 30px;\n}\n\ndialog.forward .hash {\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 8px;\n background: var(--hover);\n}\n\n.hash {\n flex: none;\n width: 24px;\n color: var(--dim);\n font-weight: 600;\n text-align: center;\n}\n\n.not-found {\n padding: 2rem 1rem;\n text-align: center;\n}\n\n.not-found h1 {\n margin: 0 0 0.25rem;\n font-size: 1rem;\n}\n", "/* ---- Room access (\u00A723): the guest's links and the banners in place of the composer. The access dialog's styles are\n web/styles/access.css, linked by its chunk. ---- */\n\n/* The logo links home (a guest's way back from the login page); in the sidebar, the title does. */\na.brand,\n.brand-title {\n color: var(--fg);\n text-decoration: none;\n}\n\n.guest-links {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n@media (hover: hover) {\n .guest-link:not(.primary):hover {\n background: var(--hover);\n }\n}\n\n.auth-skip {\n margin: 1rem 0 0;\n text-align: center;\n}\n\n/* In place of the composer: why you can't post here (a guest, only some may post, a closed DM, archived). */\n.guest-banner,\n.archived-banner {\n display: flex;\n gap: 12px;\n align-items: center;\n min-height: 68px;\n margin: 0;\n padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 28px;\n border-top: 1px solid var(--line);\n background: color-mix(in srgb, var(--raised), var(--bg));\n color: var(--text);\n}\n\n.guest-banner::before,\n.archived-banner::before {\n color: var(--muted);\n}\n", "/* ---- Motion ---- */\n\n@keyframes pop {\n from {\n opacity: 0;\n transform: scale(0.92) translateY(4px);\n }\n}\n\n@keyframes wave {\n 0%,\n 60%,\n 100% {\n transform: rotate(0);\n }\n 20% {\n transform: rotate(18deg);\n }\n 40% {\n transform: rotate(-10deg);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n *,\n *::before,\n *::after {\n /* biome-ignore lint/complexity/noImportantStyles: reduced motion must beat every animation above */\n animation: none !important;\n /* biome-ignore lint/complexity/noImportantStyles: reduced motion must beat every transition above */\n transition: none !important;\n }\n}\n\n/* Without the motion, the loading line (\u00A77.9) stands still across the whole width. */\n@media (prefers-reduced-motion: reduce) {\n .loadbar.on::before {\n background: var(--tint);\n }\n}\n", "/* ---- Narrow screens (\u00A77.8): the room list is a page of its own (#/), under the app bar; a room or another page fills\n the screen, with its own header and a way back. ---- */\n\n@media (max-width: 720px) {\n .sidebar {\n display: none;\n }\n\n /* The app bar has Jump to (an icon), the brand and you. */\n #app:has(.layout:not(.home)) > .app-bar,\n .side-top,\n .jump-row,\n .side-foot {\n display: none;\n }\n\n /* At / the room list is the page. */\n .layout.home .sidebar {\n display: flex;\n flex: 1;\n border: 0;\n }\n\n /* Out of sight, but its heading stays the page's h1 for a screen reader; not its text (a guest's links). */\n .layout.home .pane {\n position: absolute;\n clip-path: inset(50%);\n }\n\n .layout.home .welcome p {\n display: none;\n }\n\n .sidebar nav {\n padding: 0 10px 24px;\n }\n\n /* Rows of 48px (DMs and collections too), 15px names, 22px counts; a 28px face or tile. */\n .room-section li a,\n .room-section li.dm a,\n .room-section[data-section=\"collections\"] li a {\n gap: 12px;\n height: 48px;\n padding: 0 12px;\n font-size: 0.9375rem;\n }\n\n .room-section .badge {\n min-width: 22px;\n padding: 0 7px;\n font-size: 0.75rem;\n line-height: 22px;\n }\n\n .room-section li.dm .avatar,\n .room-section[data-section=\"collections\"] li a::before {\n width: 28px;\n height: 28px;\n font-size: 0.6875rem;\n }\n\n .room-section[data-section=\"collections\"] li a::before {\n border-radius: 8px;\n }\n\n .room-section[data-section=\"collections\"] li a > .ci {\n width: 14px;\n height: 14px;\n margin: 0 7px 0 -33px;\n }\n\n .section-head .icon-button,\n .fold,\n .room-section > summary {\n height: 44px;\n }\n\n .section-head {\n padding: 10px 0 0;\n }\n\n .section-head .icon-button {\n width: 44px;\n }\n\n /* A room: tighter sides, a 60px header with 44px buttons, a 32px avatar. */\n .room-header {\n gap: 2px;\n min-height: 60px;\n padding: 0 6px;\n }\n\n .room-header .back {\n margin-left: 0;\n }\n\n .room-header .icon-button,\n .room-header .menu > summary {\n width: 44px;\n height: 44px;\n }\n\n .room-members {\n display: none;\n }\n\n .msg {\n padding-right: 16px;\n padding-left: calc(16px + 32px + 10px);\n }\n\n .msg > .avatar {\n left: 16px;\n width: 32px;\n height: 32px;\n }\n\n .msg.to-me {\n margin: 0 8px;\n padding-left: calc(8px + 32px + 10px);\n }\n\n .msg.to-me > .avatar {\n left: 8px;\n }\n\n /* Selecting, the card is set in by 8px here (selection.css). */\n .messages.selecting .msg.to-me {\n padding-left: calc(28px + 32px + 36px + 14px - 8px);\n }\n\n .msg.to-me > .select {\n left: 20px;\n }\n\n .messages.selecting .msg.to-me > .avatar {\n left: 52px;\n }\n\n /* The smaller avatar's middle is 26px left of the text (replies.css). */\n .msg.group-start > .reply-quote {\n max-width: calc(100% + 26px);\n margin-left: -26px;\n }\n\n .reply-quote::before {\n width: 20px;\n }\n\n .day,\n .new-line {\n margin-inline: 16px;\n }\n\n .actions {\n right: 16px;\n }\n\n .composer-row {\n min-height: 64px;\n padding: 10px 8px 10px 6px;\n }\n\n .composer-row > button,\n .composer-row > .menu > summary {\n width: 44px;\n height: 44px;\n }\n}\n\n@media (min-width: 721px) {\n .back {\n display: none;\n }\n}\n"],
5
+ "mappings": "AAGA,WACE,YAAa,MACb,WAAY,OACZ,YAAa,IAAI,IACjB,aAAc,KACd,IAAK,2CAA4C,OAAO,SACxD,cAAe,CAAC,KAAK,KAAK,CAAE,CAAC,UAAU,CAAE,CAAC,KAAK,CAAE,CAAC,UAAU,CAAE,CAAC,CAAC,SAAS,CAAE,CAAC,CAAC,SAC/E,CAEA,WACE,YAAa,MACb,WAAY,OACZ,YAAa,IAAI,IACjB,aAAc,KAC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,WAKR,QACV,MAAO,IACT,CAEA,CAAC,IACD,CAAC,SACC,cAAe,IACjB,CAEA,CAAC,QACC,MAAO,IACT,CAEA,CAAC,aACC,WAAY,KA/JhB,QAgKa,KAAK,IAAI,KAAK,GACzB,CAEA,CALC,YAKa,CAAE,OAChB,CANC,YAMa,CAAE,CAnEF,IAmEQ,CAAE,QACtB,MAAO,KACP,OAAQ,IACV,CACF,CAEA,OAAO,UAAY,OACjB,CA/Ec,KAgFZ,QAAS,IACX,CACF",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as g}from"./chunk-RPCBA7VF.js";import{a as r,b as C}from"./chunk-VTOUI25E.js";var x=200,p=class extends Error{};function T(o){let{signal:s}=o,i=C("user-search"),a=r("input",{id:i,type:"search",autocomplete:"off",placeholder:"Find someone\u2026","aria-controls":`${i}-results`,"aria-describedby":`${i}-status`}),l=r("p",{id:`${i}-status`,class:"search-status",role:"status"},"Type a name."),c=r("ul",{id:`${i}-results`,class:"search-results","aria-label":"People"}),f,u=null,d=[],m="",h=()=>[...c.querySelectorAll("button")];function v(t){l.textContent=t.length?`${t.length===20?"20+":t.length} found`:"No one found.",d=t.map(e=>[e,r("button",{type:"button",class:"person",title:e.instance?`On ${e.instance}`:void 0,on:{click:()=>o.onPick(e)},signal:s},[g(e,24,o.avatarUrl),r("span",{},e.name)])]),c.replaceChildren(...d.map(([,e])=>r("li",{},e))),E()}function E(){if(o.isPicked)for(let[t,e]of d)e.setAttribute("aria-pressed",String(o.isPicked(t)))}async function b(t){if(u?.abort(),!t){l.textContent="Type a name.",d=[],m="",c.replaceChildren();return}let e=new AbortController;u=e,l.textContent="Searching\u2026";try{let n=await o.search(t,e.signal);u===e&&!s.aborted&&(v(n),m=t)}catch(n){if(u!==e||s.aborted)return;l.textContent=n instanceof p?n.message:"Couldn't search. Check your connection.",d=[],c.replaceChildren()}}a.addEventListener("input",()=>{clearTimeout(f),f=setTimeout(()=>{b(a.value.trim())},x)},{signal:s}),a.addEventListener("keydown",t=>{if(t.key!=="Enter"||t.isComposing)return;t.preventDefault();let e=a.value.trim();if(!e)return;let n=()=>{!s.aborted&&a.value.trim()===e&&m===e&&h()[0]?.click()};if(m===e)return n();clearTimeout(f),b(e).then(n)},{signal:s});let y=r("div",{class:"user-search",on:{keydown:t=>{let e=h(),n=e.indexOf(document.activeElement);t.key==="Escape"?(t.preventDefault(),o.onClose()):t.key==="ArrowDown"&&e.length?(t.preventDefault(),e[Math.min(n+1,e.length-1)].focus()):t.key==="ArrowUp"&&n>=0&&(t.preventDefault(),n===0?a.focus():e[n-1].focus())}},signal:s},[r("label",{for:i,class:"visually-hidden"},o.label??"Find someone to message"),a,l,c]);return s.addEventListener("abort",()=>{clearTimeout(f),u?.abort()},{once:!0}),{el:y,focus:()=>a.focus(),mark:E}}export{x as a,p as b,T as c};
2
+ //# sourceMappingURL=chunk-56ACD3V5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../web/src/ui/user-search.ts"],
4
+ "sourcesContent": ["// \"New message\" user search (\u00A716.5): type a name, pick a person. Debounced, cancels stale requests.\n// Keyboard: \u2193 from the input moves into the results, \u2191/\u2193 between them, Enter in the input picks the first (searching\n// at once if the debounce hasn't run yet; QA BUG-272), Escape closes.\n//\n// A lazy chunk: the sidebar's New message loads it, and the room access dialog and the forward dialog import it.\n\nimport { h, uniqueId } from \"../dom.ts\";\nimport type { User } from \"../lib/types.ts\";\nimport * as S from \"../strings/ui-user-search.ts\";\nimport { type AvatarUrl, avatar } from \"./avatar.ts\";\n\n/** How long typing pauses before people are searched. */\nexport const SEARCH_DEBOUNCE_MS = 200;\n\n/** A search that failed for a reason to show as it is (\"There's nobody called ann on b.example.\"). */\nexport class SearchError extends Error {}\n\nexport interface UserSearch {\n readonly el: HTMLElement;\n focus(): void;\n /** Show again who is picked, after a pick changed it. */\n mark(): void;\n}\n\nexport function createUserSearch(opts: {\n search: (query: string, signal: AbortSignal) => Promise<User[]>;\n avatarUrl: AvatarUrl;\n onPick: (user: User) => void;\n /** When given, each result is a toggle, pressed for someone already picked. */\n isPicked?: (user: User) => boolean;\n onClose: () => void;\n /** The field's name for assistive tech: what the search is for (QA BUG-273). */\n label?: string;\n signal: AbortSignal;\n}): UserSearch {\n const { signal } = opts;\n const id = uniqueId(\"user-search\");\n const input = h(\"input\", {\n id,\n type: \"search\",\n autocomplete: \"off\",\n placeholder: \"Find someone\u2026\",\n \"aria-controls\": `${id}-results`,\n \"aria-describedby\": `${id}-status`,\n });\n const status = h(\"p\", { id: `${id}-status`, class: \"search-status\", role: \"status\" }, \"Type a name.\");\n const results = h(\"ul\", { id: `${id}-results`, class: \"search-results\", \"aria-label\": \"People\" });\n let timer: ReturnType<typeof setTimeout> | undefined;\n let inflight: AbortController | null = null;\n let shown: [User, HTMLButtonElement][] = [];\n /** The query the results are for. */\n let shownFor = \"\";\n\n const buttons = () => [...results.querySelectorAll<HTMLButtonElement>(\"button\")];\n\n function show(users: User[]) {\n status.textContent = users.length ? `${users.length === 20 ? \"20+\" : users.length} found` : \"No one found.\";\n shown = users.map((u) => [\n u,\n h(\n \"button\",\n {\n type: \"button\",\n class: \"person\",\n title: u.instance ? `On ${u.instance}` : undefined,\n on: { click: () => opts.onPick(u) },\n signal,\n },\n [avatar(u, 24, opts.avatarUrl), h(\"span\", {}, u.name)],\n ),\n ]);\n results.replaceChildren(...shown.map(([, b]) => h(\"li\", {}, b)));\n mark();\n }\n\n function mark() {\n if (opts.isPicked) for (const [u, b] of shown) b.setAttribute(\"aria-pressed\", String(opts.isPicked(u)));\n }\n\n async function run(query: string) {\n inflight?.abort();\n if (!query) {\n status.textContent = \"Type a name.\";\n shown = [];\n shownFor = \"\";\n results.replaceChildren();\n return;\n }\n const ac = new AbortController();\n inflight = ac;\n status.textContent = \"Searching\u2026\";\n try {\n const users = await opts.search(query, ac.signal);\n if (inflight === ac && !signal.aborted) {\n show(users);\n shownFor = query;\n }\n } catch (e) {\n if (inflight !== ac || signal.aborted) return;\n status.textContent = e instanceof SearchError ? e.message : \"Couldn't search. Check your connection.\";\n shown = [];\n results.replaceChildren();\n }\n }\n\n input.addEventListener(\n \"input\",\n () => {\n clearTimeout(timer);\n timer = setTimeout(() => void run(input.value.trim()), SEARCH_DEBOUNCE_MS);\n },\n { signal },\n );\n // Enter picks the first person found, as Jump to opens its first match (QA BUG-272).\n input.addEventListener(\n \"keydown\",\n (e) => {\n if (e.key !== \"Enter\" || e.isComposing) return;\n e.preventDefault();\n const q = input.value.trim();\n if (!q) return;\n const pickFirst = () => {\n if (!signal.aborted && input.value.trim() === q && shownFor === q) buttons()[0]?.click();\n };\n if (shownFor === q) return pickFirst();\n clearTimeout(timer);\n void run(q).then(pickFirst);\n },\n { signal },\n );\n\n const el = h(\n \"div\",\n {\n class: \"user-search\",\n on: {\n keydown: (e) => {\n const list = buttons();\n const at = list.indexOf(document.activeElement as HTMLButtonElement);\n if (e.key === \"Escape\") {\n e.preventDefault();\n opts.onClose();\n } else if (e.key === \"ArrowDown\" && list.length) {\n e.preventDefault();\n list[Math.min(at + 1, list.length - 1)]!.focus();\n } else if (e.key === \"ArrowUp\" && at >= 0) {\n e.preventDefault();\n if (at === 0) input.focus();\n else list[at - 1]!.focus();\n }\n },\n },\n signal,\n },\n [h(\"label\", { for: id, class: \"visually-hidden\" }, opts.label ?? \"Find someone to message\"), input, status, results],\n );\n signal.addEventListener(\n \"abort\",\n () => {\n clearTimeout(timer);\n inflight?.abort();\n },\n { once: true },\n );\n\n return { el, focus: () => input.focus(), mark };\n}\n"],
5
+ "mappings": "uFAYO,IAAMA,EAAqB,IAGrBC,EAAN,cAA0B,KAAM,CAAC,EASjC,SAASC,EAAiBC,EAUlB,CACb,GAAM,CAAE,OAAAC,CAAO,EAAID,EACbE,EAAKC,EAAS,aAAa,EAC3BC,EAAQC,EAAE,QAAS,CACvB,GAAAH,EACA,KAAM,SACN,aAAc,MACd,YAAa,qBACb,gBAAiB,GAAGA,CAAE,WACtB,mBAAoB,GAA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AS,CAAC,CAAC,EAAG,MAAM,GACtCJ,EAAE,MAAQ,WAAaK,GAAM,IACtCL,EAAE,eAAe,EACbK,IAAO,EAAGvB,EAAM,MAAM,EACrBsB,EAAKC,EAAK,CAAC,EAAG,MAAM,EAE7B,CACF,EACA,OAAA1B,CACF,EACA,CAACI,EAAE,QAAS,CAAE,IAAKH,EAAI,MAAO,iBAAkB,EAAGF,EAAK,OAAS,yBAAyB,EAAGI,EAAOE,EAAQC,CAAO,CACrH,EACA,OAAAN,EAAO,iBACL,QACA,IAAM,CACJ,aAAaO,CAAK,EAClBC,GAAU,MAAM,CAClB,EACA,CAAE,KAAM,EAAK,CACf,EAEO,CAAE,GAAAgB,EAAI,MAAO,IAAMrB,EAAM,MAAM,EAAG,KAAAc,CAAK,CAChD",
6
+ "names": ["SEARCH_DEBOUNCE_MS", "SearchError", "createUserSearch", "opts", "signal", "id", "uniqueId", "input", "h", "status", "results", "timer", "inflight", "shown", "shownFor", "buttons", "show", "users", "u", "avatar", "b", "mark", "run", "query", "ac", "e", "q", "pickFirst", "el", "list", "at"]
7
+ }
@@ -0,0 +1,2 @@
1
+ function t(){let o=new AbortController,n=[];return{signal:o.signal,get active(){return!o.signal.aborted},defer(e){o.signal.aborted?e():n.push(e)},sub(e){e.catch(()=>{}),this.defer(()=>e.then(r=>r()).catch(()=>{}))},dispose(){if(!o.signal.aborted){o.abort();for(let e of n.reverse())try{e()}catch{}n.length=0}}}}export{t as a};
2
+ //# sourceMappingURL=chunk-AG73QNUN.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../web/src/scope.ts"],
4
+ "sourcesContent": ["// Lifetime of a mounted view or a running service: one place to collect everything to undo on dispose.\n//\n// const scope = createScope();\n// h(\"button\", { on: { click }, signal: scope.signal }); // listeners go away with the scope\n// scope.defer(store.subscribe(render)); // any cleanup function\n// scope.sub(api.subscribeMessages(room, onMessage)); // realtime: unsubscribed once it resolves\n// if (!scope.active) return; // after an await: was it disposed meanwhile?\n\nimport type { Unsubscribe } from \"./api.ts\";\n\nexport interface Scope {\n /** Aborted on dispose: pass to addEventListener / h() / fetches. */\n readonly signal: AbortSignal;\n /** False once disposed. Async work checks it after every await. */\n readonly active: boolean;\n /** Run `fn` on dispose (in reverse order of registration). */\n defer(fn: () => unknown): void;\n /** Unsubscribe a realtime subscription on dispose, even if it is still being set up. */\n sub(subscription: Promise<Unsubscribe>): void;\n dispose(): void;\n}\n\nexport function createScope(): Scope {\n const ac = new AbortController();\n const cleanups: (() => unknown)[] = [];\n return {\n signal: ac.signal,\n get active() {\n return !ac.signal.aborted;\n },\n defer(fn) {\n if (ac.signal.aborted) void fn();\n else cleanups.push(fn);\n },\n sub(subscription) {\n // A subscribe that fails (no connection) stays registered with the realtime client, which sends it again on the\n // next connection: nothing to handle here, and not an unhandled rejection either (QA BUG-68).\n subscription.catch(() => {});\n this.defer(() => subscription.then((off) => off()).catch(() => {}));\n },\n dispose() {\n if (ac.signal.aborted) return;\n ac.abort();\n for (const fn of cleanups.reverse()) {\n try {\n void fn();\n } catch {\n // one failing cleanup must not keep the others from running\n }\n }\n cleanups.length = 0;\n },\n };\n}\n"],
5
+ "mappings": "AAsBO,SAASA,GAAqB,CACnC,IAAMC,EAAK,IAAI,gBACTC,EAA8B,CAAC,EACrC,MAAO,CACL,OAAQD,EAAG,OACX,IAAI,QAAS,CACX,MAAO,CAACA,EAAG,OAAO,OACpB,EACA,MAAME,EAAI,CACJF,EAAG,OAAO,QAAcE,EAAG,EAC1BD,EAAS,KAAKC,CAAE,CACvB,EACA,IAAIC,EAAc,CAGhBA,EAAa,MAAM,IAAM,CAAC,CAAC,EAC3B,KAAK,MAAM,IAAMA,EAAa,KAAMC,GAAQA,EAAI,CAAC,EAAE,MAAM,IAAM,CAAC,CAAC,CAAC,CACpE,EACA,SAAU,CACR,GAAI,CAAAJ,EAAG,OAAO,QACd,CAAAA,EAAG,MAAM,EACT,QAAWE,KAAMD,EAAS,QAAQ,EAChC,GAAI,CACGC,EAAG,CACV,MAAQ,CAER,CAEFD,EAAS,OAAS,EACpB,CACF,CACF",
6
+ "names": ["createScope", "ac", "cleanups", "fn", "subscription", "off"]
7
+ }
@@ -0,0 +1,2 @@
1
+ var s=[1,7,30];function m(i,n){let o=e=>`/api/chat/rooms/${encodeURIComponent(e)}/invite`,r=e=>`/api/chat/invites/${encodeURIComponent(e)}`;return{get:async(e,t)=>(await n(i.send(o(e),{signal:t}))).invite,make:async(e,t)=>(await n(i.send(o(e),{method:"POST",body:{days:t}}))).invite,async revoke(e){await n(i.send(o(e),{method:"DELETE"}))},preview:(e,t)=>n(i.send(r(e),{signal:t})),join:async e=>(await n(i.send(r(e),{method:"POST"}))).room}}export{s as a,m as b};
2
+ //# sourceMappingURL=chunk-DCLJRQ53.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../web/src/invite-api.ts"],
4
+ "sourcesContent": ["// Room invite links (DESIGN.md \u00A744): the part of the API (api.ts) only the access dialog and the invite page use, split\n// out so it loads with them (a lazy chunk, `Api.invites()`), not on the app's critical path (\u00A77.7).\n\nimport type { PbClient } from \"./pb.ts\";\n\n/** A private room's invite link (GET /api/chat/rooms/{room}/invite). */\nexport interface Invite {\n /** The secret in the link: /invite/<token>. */\n token: string;\n created: string;\n /** When it stops working. */\n expires: string;\n /** How many people joined by it. */\n uses: number;\n}\n\n/** Where a link goes (GET /api/chat/invites/{token}). */\nexport interface InvitePreview {\n room: { id: string; name: string; members: number };\n /** Who made the link. */\n by: string;\n expires: string;\n /** Are you in the room already? */\n member: boolean;\n}\n\n/** How long a new link works: the server's choices. */\nexport const INVITE_DAYS = [1, 7, 30] as const;\nexport type InviteDays = (typeof INVITE_DAYS)[number];\n\nexport interface InviteApi {\n /** The room's working link, or null (its creator or a moderator in it). */\n get(room: string, signal?: AbortSignal): Promise<Invite | null>;\n /** A new link, replacing the room's last one. */\n make(room: string, days: InviteDays): Promise<Invite>;\n /** The link stops working. */\n revoke(room: string): Promise<void>;\n /** Where a link goes; rejects with a 404 when it doesn't work. Guests too. */\n preview(token: string, signal?: AbortSignal): Promise<InvitePreview>;\n /** Join its room (signed in); resolves to the room's id. */\n join(token: string): Promise<string>;\n}\n\n/** Built by api.ts with its client (which tells onRejected listeners) and its error wrapping. */\nexport function createInviteApi(pb: PbClient, wrap: <T>(p: Promise<T>) => Promise<T>): InviteApi {\n const path = (room: string) => `/api/chat/rooms/${encodeURIComponent(room)}/invite`;\n const link = (token: string) => `/api/chat/invites/${encodeURIComponent(token)}`;\n return {\n get: async (room, signal) => (await wrap(pb.send<{ invite: Invite | null }>(path(room), { signal }))).invite,\n // A POST always answers the link it made.\n make: async (room, days) => (await wrap(pb.send<{ invite: Invite }>(path(room), { method: \"POST\", body: { days } }))).invite,\n async revoke(room) {\n await wrap(pb.send(path(room), { method: \"DELETE\" }));\n },\n preview: (token, signal) => wrap(pb.send<InvitePreview>(link(token), { signal })),\n join: async (token) => (await wrap(pb.send<{ room: string }>(link(token), { method: \"POST\" }))).room,\n };\n}\n"],
5
+ "mappings": "AA2BO,IAAMA,EAAc,CAAC,EAAG,EAAG,EAAE,EAiB7B,SAASC,EAAgBC,EAAcC,EAAmD,CAC/F,IAAMC,EAAQC,GAAiB,mBAAmB,mBAAmBA,CAAI,CAAC,UACpEC,EAAQC,GAAkB,qBAAqB,mBAAmBA,CAAK,CAAC,GAC9E,MAAO,CACL,IAAK,MAAOF,EAAMG,KAAY,MAAML,EAAKD,EAAG,KAAgCE,EAAKC,CAAI,EAAG,CAAE,OAAAG,CAAO,CAAC,CAAC,GAAG,OAEtG,KAAM,MAAOH,EAAMI,KAAU,MAAMN,EAAKD,EAAG,KAAyBE,EAAKC,CAAI,EAAG,CAAE,OAAQ,OAAQ,KAAM,CAAE,KAAAI,CAAK,CAAE,CAAC,CAAC,GAAG,OACtH,MAAM,OAAOJ,EAAM,CACjB,MAAMF,EAAKD,EAAG,KAAKE,EAAKC,CAAI,EAAG,CAAE,OAAQ,QAAS,CAAC,CAAC,CACtD,EACA,QAAS,CAACE,EAAOC,IAAWL,EAAKD,EAAG,KAAoBI,EAAKC,CAAK,EAAG,CAAE,OAAAC,CAAO,CAAC,CAAC,EAChF,KAAM,MAAOD,IAAW,MAAMJ,EAAKD,EAAG,KAAuBI,EAAKC,CAAK,EAAG,CAAE,OAAQ,MAAO,CAAC,CAAC,GAAG,IAClG,CACF",
6
+ "names": ["INVITE_DAYS", "createInviteApi", "pb", "wrap", "path", "room", "link", "token", "signal", "days"]
7
+ }
@@ -0,0 +1,2 @@
1
+ var o=e=>e.kind==="dm";function d(e,n){if(!n||!o(e))return"";if(n.no_dms)return"You've turned off direct messages.";let t=i(e,n);return t?.no_dms?`${t.name} doesn't take direct messages.`:""}var u=e=>e.visibility??"public",s=e=>e.posting??"everyone";function p(e,n){return n?s(e)!=="selected"||e.created_by===n.id||!!e.writers?.includes(n.id):!1}function l(e,n){return!n||o(e)?!1:e.created_by===n.id||!!n.moderator&&!e.shared?.home}var h={private:{label:"Private",icon:"\u{1F512}",hint:"Only the people you add can read and post."},public:{label:"Public",icon:"#",hint:"Everyone with an account can read and post."},open:{label:"Open Air",icon:"\u{1F310}",hint:"Anyone can read it, even without an account. Everyone with an account can post."}};function b(e){let n=e.shared?.with??[];if(!n.length)return"";let t=e.shared?.down&&e.shared.home?` \xB7 ${e.shared.home} can't be reached right now`:"";return`Shared with ${n.join(", ")}${t}`}function f(e){let n=/^[^@\s][^@]*@([a-z0-9-]+(?:\.[a-z0-9-]+)*(?::\d+)?)$/i.exec(e.trim());return!!n&&/[.:]/.test(n[1]??"")}function i(e,n){if(!o(e))return;let t=e.members?.find(r=>r!==n?.id);return e.expand?.members?.find(r=>r.id===t)??(t?{id:t,name:"Unknown"}:void 0)}function g(e,n){return o(e)?i(e,n)?.name??"Unknown":`#${e.name}`}export{o as a,d as b,u as c,s as d,p as e,l as f,h as g,b as h,f as i,i as j,g as k};
2
+ //# sourceMappingURL=chunk-DZC4SY4M.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../web/src/lib/rooms.ts"],
4
+ "sourcesContent": ["// Room helpers that depend on who is looking (\u00A716.5): a DM is titled after the other member.\n\nimport * as S from \"../strings/lib-rooms.ts\";\nimport type { Posting, Room, User, Visibility } from \"./types.ts\";\n\nexport const isDm = (room: Room): boolean => room.kind === \"dm\";\n\n/**\n * Why a DM takes no new messages: one of the two takes no direct messages (\u00A716.7), as a linked instance's people do once\n * it is unpaired (\u00A733.7). \"\" while it takes them.\n */\nexport function dmClosed(room: Room, me: User | null): string {\n if (!me || !isDm(room)) return \"\";\n if (me.no_dms) return \"You've turned off direct messages.\";\n const other = otherMember(room, me);\n return other?.no_dms ? `${other.name} doesn't take direct messages.` : \"\";\n}\n\n/** Who can see the room (\u00A723.1); rooms from before visibility existed are public. */\nexport const visibilityOf = (room: Room): Visibility => room.visibility ?? \"public\";\n\n/** Who can post in the room (\u00A723.6); rooms from before posting existed let everyone. */\nexport const postingOf = (room: Room): Posting => room.posting ?? \"everyone\";\n\n/** Can `me` post in a room they see (\u00A723.6)? Guests never can; the creator always can. */\nexport function canPost(room: Room, me: User | null): boolean {\n if (!me) return false;\n return postingOf(room) !== \"selected\" || room.created_by === me.id || !!room.writers?.includes(me.id);\n}\n\n/**\n * May `me` change the room's access and archive it? Its creator, or a moderator (\u00A736); never a DM. A copy of another\n * instance's room is changed there (\u00A733.5).\n */\nexport function canManage(room: Room, me: User | null): boolean {\n if (!me || isDm(room)) return false;\n return room.created_by === me.id || (!!me.moderator && !room.shared?.home);\n}\n\n/** How each visibility is called and explained (\u00A723.1). */\nexport const VISIBILITY: Record<Visibility, { label: string; icon: string; hint: string }> = {\n private: { label: \"Private\", icon: \"\uD83D\uDD12\", hint: \"Only the people you add can read and post.\" },\n public: { label: \"Public\", icon: \"#\", hint: \"Everyone with an account can read and post.\" },\n open: {\n label: \"Open Air\",\n icon: \"\uD83C\uDF10\",\n hint: \"Anyone can read it, even without an account. Everyone with an account can post.\",\n },\n};\n\n/**\n * Where else a shared room is held (\u00A733.9): \"Shared with b.example\", \"Shared with b.example \u00B7 a.example can't be\n * reached right now\" when its home is down (\u00A733.7). \"\" for a room that isn't shared.\n */\nexport function sharedNote(room: Room): string {\n const hosts = room.shared?.with ?? [];\n if (!hosts.length) return \"\";\n const down = room.shared?.down && room.shared.home ? ` \u00B7 ${room.shared.home} can't be reached right now` : \"\";\n return `Shared with ${hosts.join(\", \")}${down}`;\n}\n\n/** Is this an address on another instance, \"ann@b.example\" (\u00A733.5)? Its host has a dot or a port. */\nexport function isAddress(q: string): boolean {\n const m = /^[^@\\s][^@]*@([a-z0-9-]+(?:\\.[a-z0-9-]+)*(?::\\d+)?)$/i.exec(q.trim());\n return !!m && /[.:]/.test(m[1] ?? \"\");\n}\n\n/** The other member of a DM (as expanded by the API), if known. */\nexport function otherMember(room: Room, me: User | null): User | undefined {\n if (!isDm(room)) return undefined;\n const otherId = room.members?.find((id) => id !== me?.id);\n return room.expand?.members?.find((u) => u.id === otherId) ?? (otherId ? { id: otherId, name: \"Unknown\" } : undefined);\n}\n\n/** What to call a room: \"#name\" for public rooms, the other member's name for a DM. */\nexport function roomTitle(room: Room, me: User | null): string {\n return isDm(room) ? (otherMember(room, me)?.name ?? \"Unknown\") : `#${room.name}`;\n}\n"],
5
+ "mappings": "AAKO,IAAMA,EAAQC,GAAwBA,EAAK,OAAS,KAMpD,SAASC,EAASD,EAAYE,EAAyB,CAC5D,GAAI,CAACA,GAAM,CAACH,EAAKC,CAAI,EAAG,MAAO,GAC/B,GAAIE,EAAG,OAAQ,MAAO,qCACtB,IAAMC,EAAQC,EAAYJ,EAAME,CAAE,EAClC,OAAOC,GAAO,OAAS,GAAGA,EAAM,IAAI,iCAAmC,EACzE,CAGO,IAAME,EAAgBL,GAA2BA,EAAK,YAAc,SAG9DM,EAAaN,GAAwBA,EAAK,SAAW,WAG3D,SAASO,EAAQP,EAAYE,EAA0B,CAC5D,OAAKA,EACEI,EAAUN,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,CAAE,GAAG,MAAQ,UAAa,IAAIF,EAAK,IAAI,EAChF",
6
+ "names": ["isDm", "room", "dmClosed", "me", "other", "otherMember", "visibilityOf", "postingOf", "canPost", "canManage", "VISIBILITY", "sharedNote", "hosts", "down", "isAddress", "q", "m", "otherId", "id", "u", "roomTitle"]
7
+ }