pisha-server 0.0.0-stage → 0.0.11

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 (125) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +40 -2
  3. package/accounts/accounts.js +754 -0
  4. package/accounts/index.js +1 -0
  5. package/accounts/passwords.js +41 -0
  6. package/accounts/totp.js +54 -0
  7. package/boards/boards.js +1079 -0
  8. package/boards/github.js +212 -0
  9. package/boards/index.js +1 -0
  10. package/boards/sync.js +980 -0
  11. package/companies.js +294 -0
  12. package/company-export.js +101 -0
  13. package/company.js +79 -0
  14. package/dashboard/dashboard.js +407 -0
  15. package/dashboard/index.js +1 -0
  16. package/data-upgrade.js +69 -0
  17. package/install/linux.sh +181 -0
  18. package/install/macos.sh +121 -0
  19. package/install/windows.bat +54 -0
  20. package/machines/index.js +3 -0
  21. package/machines/machines.js +910 -0
  22. package/messaging/inbox.js +252 -0
  23. package/messaging/index.js +3 -0
  24. package/messaging/messaging.js +551 -0
  25. package/messaging/plans.js +67 -0
  26. package/observation/index.js +1 -0
  27. package/observation/observation.js +224 -0
  28. package/organization/index.js +1 -0
  29. package/organization/organization.js +218 -0
  30. package/package.json +54 -4
  31. package/permissions/index.js +1 -0
  32. package/permissions/permissions.js +211 -0
  33. package/pisha-host.mjs +3297 -0
  34. package/pisha-host.mjs.sig +1 -0
  35. package/platform/acme.js +207 -0
  36. package/platform/basics.js +14 -0
  37. package/platform/config.js +154 -0
  38. package/platform/control.js +93 -0
  39. package/platform/credentials.js +151 -0
  40. package/platform/database.js +251 -0
  41. package/platform/errors.js +13 -0
  42. package/platform/files.js +50 -0
  43. package/platform/http.js +207 -0
  44. package/platform/index.js +58 -0
  45. package/platform/limits.js +122 -0
  46. package/platform/listen.js +183 -0
  47. package/platform/roles.js +6 -0
  48. package/platform/stream.js +19 -0
  49. package/platform/text.js +83 -0
  50. package/platform/ws.js +186 -0
  51. package/routes.js +405 -0
  52. package/server.js +65 -0
  53. package/sessions/index.js +1 -0
  54. package/sessions/sessions.js +533 -0
  55. package/ui/LICENSE-affectui.txt +26 -0
  56. package/ui/addmachine.js +151 -0
  57. package/ui/api.js +20 -0
  58. package/ui/app.js +143 -0
  59. package/ui/attention.js +78 -0
  60. package/ui/back.js +166 -0
  61. package/ui/boards.js +958 -0
  62. package/ui/chat.js +388 -0
  63. package/ui/content.js +157 -0
  64. package/ui/dialogs.js +135 -0
  65. package/ui/doing.js +112 -0
  66. package/ui/dom.js +6 -0
  67. package/ui/ds-base.css +146 -0
  68. package/ui/ds-components.css +229 -0
  69. package/ui/fonts/LICENSE-space-grotesk.txt +93 -0
  70. package/ui/fonts/space-grotesk-latin-700-normal.woff2 +0 -0
  71. package/ui/fonts/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  72. package/ui/format.js +25 -0
  73. package/ui/i18n.js +2093 -0
  74. package/ui/icons/apple-touch-icon.png +0 -0
  75. package/ui/icons/icon-192.png +0 -0
  76. package/ui/icons/icon-512.png +0 -0
  77. package/ui/icons/maskable-512.png +0 -0
  78. package/ui/icons.js +40 -0
  79. package/ui/inbox.js +535 -0
  80. package/ui/index.html +103 -0
  81. package/ui/machines.js +261 -0
  82. package/ui/manifest.webmanifest +16 -0
  83. package/ui/mosaic.js +189 -0
  84. package/ui/nav.js +141 -0
  85. package/ui/newteam.js +223 -0
  86. package/ui/org.js +653 -0
  87. package/ui/overlays.css +126 -0
  88. package/ui/palette.js +179 -0
  89. package/ui/people.js +370 -0
  90. package/ui/permissions.js +202 -0
  91. package/ui/qr.js +158 -0
  92. package/ui/router.js +171 -0
  93. package/ui/routes.js +46 -0
  94. package/ui/screen-boards.css +241 -0
  95. package/ui/screen-inbox.css +201 -0
  96. package/ui/screen-machines.css +76 -0
  97. package/ui/screen-mosaic.css +26 -0
  98. package/ui/screen-newteam.css +90 -0
  99. package/ui/screen-org.css +113 -0
  100. package/ui/screen-session.css +99 -0
  101. package/ui/screen-signin.css +28 -0
  102. package/ui/screen-team.css +80 -0
  103. package/ui/screen-teams.css +41 -0
  104. package/ui/session.js +42 -0
  105. package/ui/shell.css +122 -0
  106. package/ui/signin.js +120 -0
  107. package/ui/squads.js +370 -0
  108. package/ui/state.js +59 -0
  109. package/ui/stream.js +268 -0
  110. package/ui/styles.css +343 -0
  111. package/ui/team.js +115 -0
  112. package/ui/teams.js +58 -0
  113. package/ui/terminal.js +261 -0
  114. package/ui/theme.js +32 -0
  115. package/ui/timeline.js +163 -0
  116. package/ui/topbar.js +205 -0
  117. package/ui/voice-parse.js +98 -0
  118. package/ui/voice.js +320 -0
  119. package/vendor/InterVariable.woff2 +0 -0
  120. package/vendor/LICENSE-inter +92 -0
  121. package/vendor/LICENSE-xterm +21 -0
  122. package/vendor/README.md +8 -0
  123. package/vendor/addon-fit.js +2 -0
  124. package/vendor/xterm.css +218 -0
  125. package/vendor/xterm.js +2 -0
@@ -0,0 +1,201 @@
1
+ /* The inbox: what waits on you across the page, like a mail client's list;
2
+ the one picked opens on the right, and closes back to the list. */
3
+
4
+ #inbox { flex: 1; min-height: 0; display: flex; }
5
+ .ibx { flex: 1; min-height: 0; display: flex; }
6
+ .ibx-list { flex: 1; min-width: 0; overflow-y: auto; padding: 8px 20px 32px; }
7
+ .ibx-col { max-width: 860px; margin: 0 auto; }
8
+ .ibx-detail { display: none; flex: 1; min-width: 0; overflow-y: auto; padding: 20px 28px 48px; }
9
+ .ibx.has-pick .ibx-list { flex: 0 0 420px; padding: 8px 16px 24px; border-right: 1px solid var(--line); }
10
+ .ibx.has-pick .ibx-detail, .ibx.none .ibx-detail, .ibx.fresh .ibx-detail { display: block; }
11
+ .ibx.none .ibx-list, .ibx.fresh .ibx-list { display: none; }
12
+ .ibx-detail.enter { animation: ibx-in var(--t-slow) var(--ease); }
13
+ @keyframes ibx-in { from { opacity: 0; transform: translateX(10px); } }
14
+ .ibx-col > .empty { padding: 40px 0 8px; }
15
+
16
+ /* Each entry is a card of its own, a little apart from the next, on the
17
+ page's grey; the one open is ringed in ink and lifted, so it can't be missed. */
18
+ .ibx-group { margin: 0 0 10px; }
19
+ .ibx-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
20
+ .ibx-group li { position: relative; }
21
+ .ibx-group-h { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 16px 6px 8px 4px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
22
+ details.ibx-group > summary { cursor: pointer; list-style: none; }
23
+ details.ibx-group > summary::-webkit-details-marker { display: none; }
24
+ details.ibx-group > summary:hover { color: var(--text); }
25
+ .ibx-none { padding: 20px; color: var(--muted); }
26
+ /* What to know, read at once. */
27
+ .ibx-readall { margin-left: auto; margin-right: 8px; height: 26px; padding: 0 8px; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; text-transform: none; }
28
+ /* Done: a search and a team above the days, more below them. */
29
+ .ibx-tools { display: flex; gap: 8px; padding: 12px 0 0; }
30
+ .ibx-tools input { flex: 1 1 auto; min-width: 0; height: 34px; }
31
+ .ibx-tools select { flex: 0 1 200px; min-width: 0; height: 34px; }
32
+ @media (max-width: 600px) {
33
+ .ibx-tools { flex-wrap: wrap; }
34
+ .ibx-tools input, .ibx-tools select { flex: 1 1 100%; height: 40px; font-size: 16px; }
35
+ }
36
+ .ibx-more { display: flex; justify-content: center; padding: 16px 0 4px; }
37
+ .ibx-end { padding: 16px 4px 4px; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
38
+ /* Just arrived: marked a moment, where it landed. */
39
+ .ibx-item.new { animation: ibx-new 2.6s var(--ease); }
40
+ @keyframes ibx-new { from, 35% { background: color-mix(in srgb, var(--info) 10%, var(--panel)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 40%, transparent); } }
41
+ @media (prefers-reduced-motion: reduce) { .ibx-item.new { animation: none; box-shadow: 0 0 0 1px var(--info); } }
42
+
43
+ .ibx-item {
44
+ display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg);
45
+ background: var(--panel); box-shadow: var(--shadow-card); color: inherit; text-decoration: none;
46
+ transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), background-color var(--t) var(--ease);
47
+ }
48
+ .ibx-item:hover { box-shadow: var(--shadow-card-hover); }
49
+ .ibx-item:active { transform: scale(.99); }
50
+ .ibx-item.on { box-shadow: 0 0 0 1.5px var(--text), 0 8px 20px -10px rgba(0, 0, 0, .28); }
51
+ .ibx-item:focus-visible { outline-offset: 2px; border-radius: var(--r-lg); }
52
+ /* Its mark: what it is, on a soft tile in the colour of what it needs. */
53
+ .ibx-mark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--tray); color: var(--muted); }
54
+ .ibx-mark .ic { width: 16px; height: 16px; stroke-width: 1.8; }
55
+ .ibx-mark.warn { background: var(--warn-soft); color: var(--warn); }
56
+ .ibx-mark.info { background: var(--info-soft); color: var(--info); }
57
+ .ibx-mark.ok { background: var(--ok-soft); color: var(--ok); }
58
+ .ibx-mark.err { background: var(--err-soft); color: var(--err); }
59
+ .ibx-item.done .ibx-mark { background: var(--tray); color: var(--faint); }
60
+ .ibx-item-b { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; padding-top: 1px; }
61
+ /* Its title, and on the right its state and, while it waits or works, its clock. */
62
+ .ibx-item-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
63
+ .ibx-item-top .ibx-item-t { flex: 1; min-width: 0; }
64
+ .ibx-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
65
+ .ibx-clock { font: 500 var(--fs-sm)/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
66
+ .ibx-live { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ds-pulse 1.4s var(--ease) infinite; }
67
+ .ibx-item.done .ibx-side .tag { background: transparent; box-shadow: 0 0 0 1px var(--line); }
68
+ .ibx-item-t { font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
69
+ .ibx.has-pick .ibx-item-t { -webkit-line-clamp: 2; }
70
+ .ibx-item.done .ibx-item-t { font-weight: 400; color: var(--muted); }
71
+ .ibx-item-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; font-size: var(--fs-sm); color: var(--muted); }
72
+ .ibx-who { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; }
73
+ .ibx-who .role { width: 12px; height: 12px; }
74
+ .ibx-upd { color: var(--warn); font-weight: 500; }
75
+
76
+
77
+ /* The one open: a card, headed like a message (who, team, what, when), then
78
+ what it says and how to answer, then its facts in a quiet footer. */
79
+ .ibx-card { max-width: 760px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(15, 17, 20, .04), 0 10px 30px rgba(15, 17, 20, .05); }
80
+ .ibx-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
81
+ .ibx-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--raised); }
82
+ .ibx-avatar.coord { background: var(--coord-soft); }
83
+ .ibx-avatar.worker { background: var(--worker-soft); }
84
+ .ibx-avatar .role { width: 17px; height: 17px; }
85
+ .ibx-from { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
86
+ .ibx-from b { font: 600 13px/1.3 var(--mono); }
87
+ .ibx-from > span { font-size: var(--fs-sm); color: var(--muted); }
88
+ .ibx-head .btn { flex: none; }
89
+ .ibx-head .ibx-s { display: none; }
90
+ .ibx-from > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
91
+ .ibx-body { padding: 22px 24px 6px; }
92
+ .ibx-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
93
+ .ibx-link:hover { text-decoration-color: currentColor; }
94
+ .ibx-changed { margin-bottom: 14px; padding: 9px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--warn) 14%, var(--panel)); color: var(--text); font-weight: 500; }
95
+ .ibx-q { margin: 0 0 18px; font-size: 20px; line-height: 1.38; font-weight: 500; letter-spacing: -.012em; text-wrap: pretty; white-space: pre-wrap; overflow-wrap: anywhere; }
96
+ .ibx-q.tell { font-size: var(--fs-lg); line-height: 1.5; font-weight: 400; }
97
+ .ibx-perm { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-md); background: var(--term); color: var(--term-text); font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
98
+
99
+ .ibx-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
100
+ .ibx-opt {
101
+ display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 9px 12px;
102
+ border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--panel); color: var(--text); text-align: left;
103
+ transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
104
+ }
105
+ .ibx-opt:hover { background: var(--raised); border-color: var(--muted); }
106
+ .ibx-opt:active { transform: scale(.995); }
107
+ .ibx-opt.rec { border-color: var(--ok); }
108
+ .ibx-opt[aria-pressed="true"] { border-color: var(--info); background: color-mix(in srgb, var(--info) 12%, var(--panel)); box-shadow: inset 0 0 0 1px var(--info); }
109
+ .ibx-opt[aria-pressed="true"] kbd { border-color: var(--info); color: var(--info); }
110
+ .ibx-opt span:not(.tag) { flex: 1; }
111
+ .ibx-opt .tag { color: var(--ok); border-color: currentColor; }
112
+ .ibx-optlist { margin: 0 0 16px; padding-left: 20px; }
113
+ .ibx-optlist li { margin: 3px 0; }
114
+ .ibx-rec { margin: 0 0 16px; color: var(--muted); }
115
+ .ibx-rec .tag { color: var(--ok); border-color: currentColor; margin-right: 4px; }
116
+
117
+ .ibx-answer .field { margin-bottom: 10px; }
118
+ .ibx-answer textarea { min-height: 76px; }
119
+ .ibx-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 18px; }
120
+ .ibx-actions .row { display: flex; gap: 8px; margin-left: auto; }
121
+ .ibx-actions > .btn:only-child { margin-left: 0; }
122
+ .ibx-note { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-sm); }
123
+ .ibx-actions .ibx-note { margin: 0; }
124
+ .ibx-result { margin: 0 0 14px; padding: 9px 12px; border-radius: var(--r-md); background: var(--raised); white-space: pre-wrap; overflow-wrap: anywhere; }
125
+
126
+ .ibx-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 18px; margin: 0; padding: 14px 24px 16px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); background: color-mix(in srgb, var(--raised) 45%, var(--panel)); font-size: var(--fs-sm); }
127
+ .ibx-facts dt { color: var(--muted); }
128
+ .ibx-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
129
+
130
+ #inbox .empty { height: 100%; justify-content: center; }
131
+ #inbox .empty .empty-ic { width: 40px; height: 40px; stroke-width: 1.3; color: var(--line-2); margin-bottom: 4px; }
132
+ #inbox .empty span { max-width: 340px; }
133
+ .ic.flip { transform: rotate(180deg); }
134
+
135
+ /* A phone: the list, or the one picked over the whole screen with a way back. */
136
+ @media (max-width: 900px) {
137
+ .ibx-list, .ibx.has-pick .ibx-list { flex: 1; padding: 4px 12px 32px; border-right: 0; }
138
+ .ibx-detail { padding: 8px 12px 32px; }
139
+ .ibx-head { padding: 12px 12px 12px 16px; }
140
+ .ibx-head .ibx-l { display: none; }
141
+ .ibx-head .ibx-s { display: inline; }
142
+ .ibx-body { padding: 18px 16px 4px; }
143
+ .ibx-facts { padding: 12px 16px 14px; }
144
+ .ibx.has-pick .ibx-list { display: none; }
145
+ .ibx-close { display: none; }
146
+ .ibx-detail.enter { animation: none; }
147
+ .ibx-q { font-size: 19px; }
148
+ .ibx-answer textarea { font-size: 16px; }
149
+ .ibx-opt { min-height: 48px; }
150
+ .ibx-item-t, .ibx.has-pick .ibx-item-t { -webkit-line-clamp: 2; }
151
+ }
152
+
153
+ /* The first steps, while nothing is open yet. */
154
+ .fs { max-width: 560px; margin: 8vh auto 0; }
155
+ .fs-title { margin: 0 0 4px; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.02em; }
156
+ .fs-sub { margin: 0 0 20px; color: var(--muted); }
157
+ .fs-steps { list-style: none; margin: 0 0 14px; padding: 0; }
158
+ .fs-step { display: flex; gap: 12px; padding: 14px 16px; }
159
+ .fs-step + .fs-step { border-top: 1px solid var(--line); }
160
+ .fs-step b { font-weight: 500; }
161
+ .fs-step p { margin: 4px 0 10px; color: var(--muted); font-size: var(--fs-sm); }
162
+ .fs-mark { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
163
+ .fs-step.done .fs-mark { border-color: var(--ok); color: var(--ok); }
164
+ .fs-step.done b { color: var(--muted); }
165
+ .fs-step.now .fs-mark { background: var(--info); border-color: var(--info); color: var(--on-fill); }
166
+ .fs-step:not(.done):not(.now) b { color: var(--muted); font-weight: 400; }
167
+ .fs-hint { font-size: var(--fs-sm); color: var(--muted); }
168
+
169
+
170
+ /* The inbox read aloud (voice.js): what is said or heard, at the bottom. */
171
+ [data-voice] { display: inline-flex; align-items: center; gap: 6px; }
172
+ [data-voice] .ic { width: 16px; height: 16px; }
173
+ [data-voice][aria-pressed="true"] { border-color: var(--info); color: var(--info); }
174
+ .voice-bar {
175
+ position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%);
176
+ display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "say actions"; align-items: center; gap: 4px 12px;
177
+ width: min(640px, calc(100vw - 32px)); padding: 10px 12px;
178
+ border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
179
+ }
180
+ .voice-head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
181
+ .voice-say { grid-area: say; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
182
+ .voice-mode { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
183
+ .voice-bar[data-mode="listening"] .voice-mode { color: var(--info); }
184
+ /* The reading speed, at the card's corner: a tap, the next one (normal, fast, faster). */
185
+ .voice-speed {
186
+ min-width: 44px; min-height: 28px; padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--r-pill);
187
+ background: var(--panel-2); color: var(--text); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
188
+ }
189
+ .voice-speed:hover { border-color: var(--muted); }
190
+ .voice-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
191
+ .voice-actions { grid-area: actions; display: flex; gap: 6px; }
192
+ @media (max-width: 900px) {
193
+ .voice-bar { bottom: calc(70px + env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "say" "actions"; gap: 6px; }
194
+ .voice-actions .btn { flex: 1; min-height: 44px; }
195
+ }
196
+
197
+ /* A count that changed rolls in: from below when it grew, from above when it fell. */
198
+ .seg .badge.up { animation: ibx-roll-up var(--t-slow) var(--ease); }
199
+ .seg .badge.down { animation: ibx-roll-down var(--t-slow) var(--ease); }
200
+ @keyframes ibx-roll-up { from { transform: translateY(60%); opacity: 0; } }
201
+ @keyframes ibx-roll-down { from { transform: translateY(-60%); opacity: 0; } }
@@ -0,0 +1,76 @@
1
+ /* Machines: how they all are, what to check on one that stopped answering, and each one with its sessions. */
2
+
3
+ #hosts { padding: 20px; }
4
+ .host-list { max-width: none; margin: 0; gap: 16px; }
5
+ /* The machines side by side, as many as fit (one on a phone); the overview
6
+ and a machine in trouble across the whole width. */
7
+ .host-list:has(> .host) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); align-items: start; }
8
+ .host-list > :not(.host) { grid-column: 1 / -1; }
9
+ .host-meta .t { font-family: var(--sans); font-size: var(--fs-sm); }
10
+
11
+ .mc-card { overflow: hidden; }
12
+ .mc-scroll { overflow-x: auto; }
13
+ .mc-table { width: 100%; min-width: 620px; border-collapse: collapse; }
14
+ .mc-table th { padding: 9px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
15
+ .mc-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
16
+ .mc-table tr:last-child td { border-bottom: 0; }
17
+ .mc-name { color: var(--text); font-weight: 600; text-decoration: none; }
18
+ .mc-name:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
19
+ .mc-state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
20
+ .mc-num { font-variant-numeric: tabular-nums; }
21
+ .mc-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
22
+ .mc-quiet { color: var(--muted); }
23
+ .mc-table .tag.warn { color: var(--warn); border-color: currentColor; }
24
+
25
+ .mc-trouble { padding: 14px 16px; border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
26
+ .mc-trouble h2 { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 600; }
27
+ .mc-trouble p { margin: 0 0 10px; color: var(--muted); }
28
+ .mc-trouble .cmdrow { display: flex; align-items: flex-start; gap: 6px; }
29
+ .mc-trouble .cmd { flex: 1; min-width: 0; margin: 0; overflow-x: auto; }
30
+
31
+ .host { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
32
+ .host.offline { opacity: .78; }
33
+ .host-head { gap: 8px; padding: 10px 12px 8px 14px; }
34
+ .host-head .n { font-size: var(--fs-md); font-weight: 600; }
35
+ .host-head .m, .host-meta { font-size: var(--fs-sm); }
36
+ .host-head .acts { gap: 4px; order: 2; }
37
+ /* What it says of itself, in parts, each with its icon in one column:
38
+ what it runs, its folders, its limits. */
39
+ .host-head .st { color: var(--muted); font-size: var(--fs-sm); }
40
+ .host-info { display: flex; flex-direction: column; gap: 8px; padding: 2px 14px 12px; }
41
+ .hi-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: var(--fs-sm); color: var(--muted); }
42
+ .hi-ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--tray); color: var(--muted); }
43
+ .hi-ic .ic { width: 13px; height: 13px; stroke-width: 1.9; }
44
+ .hi-b { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; padding-top: 3px; }
45
+ .hi-t { overflow-wrap: anywhere; line-height: 1.45; }
46
+ .hi-folders { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; }
47
+ .hi-folders .fchip code { color: var(--text); font-size: 12px; }
48
+ .hi-t .t { margin-top: 3px; line-height: 1.5; }
49
+ .hi-b .plugin-missing { flex: none; }
50
+ .host-info .t { font-family: var(--sans); font-size: var(--fs-sm); }
51
+ /* (What it runs: one thing a line, the name grey, the version plain.) */
52
+ .hi-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 16px; margin: 0; }
53
+ .hi-dl dt { color: var(--muted); }
54
+ .hi-dl dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
55
+ .host-meta { gap: 4px 12px; padding: 0 14px 10px; }
56
+ /* (Something to do on the machine: a note in its colour, not a red line across.) */
57
+ .plugin-missing { flex: 1 1 100%; padding: 6px 10px; border-radius: var(--r); background: var(--err-soft); color: var(--err); font-weight: 500; line-height: 1.45; }
58
+ .host-warn { margin: 0 14px 10px; padding: 6px 10px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); }
59
+ .term-row { gap: 8px; padding: 5px 10px 5px 14px; flex-wrap: nowrap; }
60
+ .term-row .n { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
61
+ .term-row .m { font-size: 12px; }
62
+ .term-row .acts { flex: none; gap: 4px; }
63
+ /* (Small buttons on a machine: many of them, one per session.) */
64
+ .host .btn { height: 28px; padding: 0 9px; font-size: var(--fs-sm); }
65
+ .host .term-row .btn.danger { background: transparent; box-shadow: none; }
66
+ .host .term-row .btn.danger:hover { background: var(--err-soft); }
67
+ .host-empty { padding: 10px 14px; font-size: var(--fs-sm); }
68
+
69
+ @media (max-width: 900px) {
70
+ #hosts { padding: 12px; }
71
+ }
72
+ #hosts > .empty { min-height: 60vh; justify-content: center; }
73
+ @media (max-width: 600px) {
74
+ .term-row { flex-wrap: wrap; }
75
+ .term-row .acts { margin-left: auto; }
76
+ }
@@ -0,0 +1,26 @@
1
+ /* Several sessions at once: each a pane with who it is, what it is doing, and its chat or terminal. */
2
+
3
+ #mosaic { padding: 16px; gap: 12px; }
4
+ .pane { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
5
+ .pane.coordinator, .pane.worker, .pane.solo { border-top-color: var(--line); }
6
+ .pane.attention { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
7
+ .pane-head, .pane.coordinator .pane-head, .pane.worker .pane-head, .pane.solo .pane-head { gap: 8px; min-height: 40px; padding: 6px 8px 6px 12px; background: var(--panel); }
8
+ .pane-head .title { font: 600 12.5px var(--mono); color: var(--text); }
9
+ .pane-head .title:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
10
+ .pane-head .more { width: 26px; height: 26px; margin-left: 2px; }
11
+ .pane-head .more .ic { width: 16px; height: 16px; }
12
+ .pane .pane-term { background: var(--term); }
13
+ .squad-row { border-bottom: 1px solid var(--line); padding: 4px 2px 8px; }
14
+ .squad-row .n { color: var(--text); font-weight: 600; }
15
+ .team { background: var(--panel); }
16
+ .wchip { border-radius: var(--r); background: var(--bg); }
17
+ .wchip.idle { border-color: var(--line-2); background: var(--bg); }
18
+ .wchip.waiting { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--bg)); }
19
+ .ctx { border-radius: var(--r-sm); }
20
+ .arch .info .n .arch-name { font-family: var(--mono); font-size: 12.5px; }
21
+ .arch { border-left-width: 1px; border-left-color: var(--line); border-radius: var(--r-md); }
22
+
23
+ /* The org chart: its own styles are in screen-org.css; its menus buttons, here. */
24
+ .org-more { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; }
25
+ .org-more .ic { width: 15px; height: 15px; }
26
+ .org-more:hover { background: var(--raised); }
@@ -0,0 +1,90 @@
1
+ /* A new team: one page, four steps, nothing opens until the last. */
2
+
3
+ #newteam { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 20px 48px; }
4
+ .nt { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
5
+ .nt-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
6
+ .nt-step { display: inline-flex; align-items: center; gap: 7px; }
7
+ .nt-step b { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 50%; font-size: var(--fs-xs); font-weight: 600; }
8
+ .nt-step.done { color: var(--text); }
9
+ .nt-step.done b { border-color: var(--ok); color: var(--ok); }
10
+
11
+ .nt-sec h2 { margin: 0 0 12px; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.01em; }
12
+ .nt-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; margin-bottom: 14px; }
13
+ .nt-choice { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--panel); color: var(--text); text-align: left; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
14
+ .nt-choice:hover { background: var(--raised); }
15
+ .nt-choice.on { border-color: var(--info); box-shadow: 0 0 0 1px var(--info); }
16
+ .nt-choice b { font-weight: 600; }
17
+ .nt-choice span { font-size: var(--fs-sm); color: var(--muted); }
18
+
19
+ .nt-card { overflow: hidden; }
20
+ .nt-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line); }
21
+ .nt-card-h h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; }
22
+ .nt-members { list-style: none; margin: 0; padding: 4px 0; }
23
+ .nt-member { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 12px 7px 16px; }
24
+ .nt-member + .nt-member { border-top: 1px solid var(--line); }
25
+ .nt-name input { width: 170px; height: 32px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--text); font: 500 12.5px var(--mono); }
26
+ .nt-name input:focus-visible, .nt-persona select:focus-visible { outline: none; border-color: var(--info); box-shadow: 0 0 0 3px color-mix(in srgb, var(--info) 22%, transparent); }
27
+ .nt-role { font-size: var(--fs-sm); color: var(--muted); min-width: 84px; }
28
+ .nt-persona { flex: 1 1 200px; min-width: 0; }
29
+ .nt-persona select { width: 100%; height: 32px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--text); }
30
+ .nt-gap { width: 28px; }
31
+ .nt-res { flex-basis: 100%; padding-left: 24px; font-size: var(--fs-sm); color: var(--muted); }
32
+ .nt-res.ok { color: var(--ok); }
33
+ .nt-res.bad { color: var(--err); }
34
+ .nt-note { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
35
+ .nt-sec > .nt-note { border-top: 0; padding: 0; }
36
+ .nt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0 12px; }
37
+
38
+ .nt-go { padding-top: 4px; }
39
+ .nt-issues { margin: 0 0 12px; color: var(--err); font-size: var(--fs-sm); }
40
+ .nt-actions { display: flex; justify-content: flex-end; gap: 8px; }
41
+
42
+ @media (max-width: 700px) {
43
+ #newteam { padding: 16px 12px 40px; }
44
+ .nt-name input { width: 100%; }
45
+ .nt-name { flex: 1 1 140px; }
46
+ }
47
+
48
+ /* A new machine: the same page, its way in four steps; what isn't due yet, dimmed. */
49
+ #addmachine { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 20px 48px; }
50
+ .nt-sec.later { opacity: .45; }
51
+ .nt-sec.later h2 { color: var(--muted); }
52
+ .am-note { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--muted); }
53
+ .am-intro { margin-top: -6px; }
54
+ .am-warn { color: var(--err); }
55
+ .am-os { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; font-size: var(--fs-sm); color: var(--muted); }
56
+ .am-run { margin: 0 0 6px; }
57
+ .am .cmdrow { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
58
+ .am .cmdrow .cmd { flex: 1; min-width: 0; margin: 0; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
59
+ .am-adv { margin-top: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
60
+ .am-adv > summary { cursor: pointer; font-weight: 500; }
61
+ .am-adv[open] > summary { margin-bottom: 12px; }
62
+ .am-adv .check { margin-bottom: 10px; }
63
+ .am-wait { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-weight: 500; }
64
+ .am-wait.ok { color: var(--ok); }
65
+ .am-wait.bad { color: var(--err); }
66
+ .am-folders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; padding: 12px 14px; }
67
+ .am-folders b { font-weight: 500; }
68
+
69
+ /* Each step in its own card (what is inside a step sits on the page's colour). */
70
+ .nt-steps { margin-bottom: 6px; }
71
+ .nt-sec { padding: 20px 22px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(15, 17, 20, .04); }
72
+ .nt-sec > :last-child { margin-bottom: 0; }
73
+ .nt-sec .nt-card, .nt-sec .nt-choice, .nt-sec .am-adv, .nt-sec .am-folders { background: var(--bg); }
74
+ .nt-sec .nt-choice.on { background: color-mix(in srgb, var(--info) 6%, var(--bg)); }
75
+ .nt-sec .nt-actions { margin-top: 14px; }
76
+ @media (max-width: 900px) { .nt-sec { padding: 16px; } }
77
+ .nt-sec.nt-go { padding: 4px 0 0; background: none; border: 0; box-shadow: none; }
78
+ .nt-agent select { height: 32px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--text); }
79
+ /* The agents to install: a card each, ticked to install it. */
80
+ .am-agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
81
+ .am-agents legend { padding: 0; margin-bottom: 8px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
82
+ .am-agent { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 8px 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg); cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
83
+ .am-agent:hover { border-color: var(--muted); }
84
+ .am-agent.on { border-color: var(--info); box-shadow: 0 0 0 1px var(--info); background: color-mix(in srgb, var(--info) 6%, var(--bg)); }
85
+ .am-agent input { margin: 2px 0 0; accent-color: var(--info); }
86
+ .am-agent .agent { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; }
87
+ .am-agent b { display: block; font-weight: 600; line-height: 1.3; }
88
+ .am-agent span > span { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
89
+ .am-signin { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
90
+ .am-signin li { display: flex; align-items: center; gap: 8px; }
@@ -0,0 +1,113 @@
1
+ /* The org chart: each team a grey tray around its people, its coordinator's
2
+ card first and wider, its workers' cards in rows below it, the first row
3
+ joined to it by lines; what each one is on, how long, and how full its
4
+ context is. (Over the older rules in styles.css.) */
5
+
6
+ .org-card {
7
+ width: max-content; padding: 6px; border: 0; border-radius: 24px;
8
+ background: var(--tray); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0, 0, 0, .25);
9
+ }
10
+ .org-card.drop { outline: 2px solid var(--coord); outline-offset: 3px; }
11
+
12
+ /* Its header: what the team is, how many work or wait on you, its menu. */
13
+ .org-head {
14
+ height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 10px;
15
+ border: 0; border-radius: 18px 18px 0 0; background: none;
16
+ }
17
+ .org-tic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--panel); box-shadow: var(--shadow-card); color: var(--coord); }
18
+ .org-tic .ic { width: 15px; height: 15px; }
19
+ .org-tt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
20
+ .org-title { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.01em; flex: none; }
21
+ .org-goal { height: auto; padding: 0; font-size: var(--fs-sm); line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
22
+ .org-counts { display: flex; gap: 10px; flex: none; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
23
+ .org-counts .work { color: var(--info); font-weight: 500; }
24
+ .org-counts .need { color: var(--warn); font-weight: 500; }
25
+ .org-head .org-more { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; }
26
+ .org-handle { top: 21px; }
27
+
28
+ /* Its people, on a lighter ground inside the tray. */
29
+ .org-crew {
30
+ display: flex; flex-direction: column; align-items: center; gap: 0;
31
+ padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--panel) 45%, var(--tray));
32
+ }
33
+ .org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: var(--crew); }
34
+ .oa-wires { display: block; flex: none; overflow: visible; }
35
+ .oa-wires path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
36
+ .oa-wires .run { stroke: var(--info); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 28 600; animation: oa-run 1.1s cubic-bezier(.4, 0, .2, 1) both; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--info) 70%, transparent)); }
37
+ @keyframes oa-run { from { stroke-dashoffset: 28; } to { stroke-dashoffset: -320; } }
38
+ .oa-wires circle { fill: var(--panel); stroke: var(--line-2); stroke-width: 1.5; }
39
+ .org-fold { width: auto; height: 32px; margin-top: 10px; padding: 0 12px; border-radius: var(--r); text-align: center; }
40
+ .org-fold:hover { background: var(--raised); color: var(--text); }
41
+ .org-add {
42
+ display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: var(--crew); max-width: 100%; height: 40px; margin-top: 12px;
43
+ border: 1.5px dashed var(--line-2); border-radius: 14px; background: none; color: var(--muted); font: 500 var(--fs-md)/1 var(--sans); cursor: pointer;
44
+ transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease;
45
+ }
46
+ .org-add:hover { color: var(--text); border-color: var(--muted); background: var(--panel); }
47
+ .org-add .ic { width: 14px; height: 14px; }
48
+
49
+ /* An agent: a white card; pressed, its terminal. The coordinator's is wider and ringed. */
50
+ .org-agent {
51
+ position: relative; width: 232px; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 7px; text-align: left;
52
+ padding: 12px 10px 11px 12px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-card);
53
+ font-size: var(--fs-md); cursor: pointer; transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
54
+ }
55
+ .org-agent:hover, .org-agent:focus-visible { background: var(--panel); box-shadow: var(--shadow-card-hover); }
56
+ .org-agent:active { transform: scale(.985); }
57
+ .org-agent:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
58
+ .org-agent.coord { width: 300px; padding: 14px 10px 12px 14px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--coord) 55%, var(--line)), 0 8px 24px -14px color-mix(in srgb, var(--coord) 60%, transparent); }
59
+ .org-agent.coord:hover { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--coord) 75%, var(--line)), 0 10px 26px -12px color-mix(in srgb, var(--coord) 60%, transparent); }
60
+ .org-agent.got { animation: oa-got 1.8s ease-out; }
61
+ @keyframes oa-got { 30%, 60% { box-shadow: 0 0 0 1.5px var(--info), 0 0 0 6px color-mix(in srgb, var(--info) 16%, transparent); } }
62
+ .org-agent.worker { padding-left: 12px; }
63
+
64
+ .oa-h { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
65
+ .oa-av { position: relative; flex: none; }
66
+ .oa-av .agent { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
67
+ .oa-rl { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 6px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
68
+ .oa-rl .role { width: 11px; height: 11px; }
69
+ .oa-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
70
+ .oa-nm { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
71
+ .oa-nm b { font: 600 13.5px/1.3 var(--mono); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
72
+ .org-agent.coord .oa-nm b { font-size: 14.5px; }
73
+ .oa-model { color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
74
+ .oa-lead { width: max-content; margin-top: 4px; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 6px; background: color-mix(in srgb, var(--coord) 12%, var(--panel)); color: var(--coord); font-size: var(--fs-xs); font-weight: 600; }
75
+ .oa-st { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 21px; padding: 0 7px; border-radius: 7px; background: var(--tray); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
76
+ .oa-st.work { background: var(--info-soft); color: var(--info); }
77
+ .oa-st.need { background: var(--warn-soft); color: var(--warn); }
78
+ .oa-st.off { background: transparent; box-shadow: 0 0 0 1px var(--line); color: var(--faint); }
79
+ .oa-spin { width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid currentColor; border-right-color: transparent; animation: oa-spin .9s linear infinite; }
80
+ @keyframes oa-spin { to { transform: rotate(1turn); } }
81
+ .oa-pd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
82
+ .oa-st.off .oa-pd { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
83
+ .oa-h .org-more { width: 24px; height: 24px; margin: -2px -2px 0 0; display: grid; place-items: center; padding: 0; opacity: .6; }
84
+ .org-agent:hover .oa-h .org-more, .oa-h .org-more:focus-visible { opacity: 1; }
85
+
86
+ /* What it is on, and how long: its plan task, else what it was last handed. */
87
+ .oa-task { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--text); font-weight: 500; }
88
+ .oa-task.none { color: var(--faint); font-weight: 400; }
89
+ .oa-tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
90
+ .oa-ref { flex: none; padding: 0 5px; border-radius: 5px; background: var(--tray); color: var(--muted); font: 500 11px/18px var(--mono); }
91
+ .oa-from { flex: none; color: var(--muted); font: 500 12px var(--mono); }
92
+ .oa-clock { flex: none; color: var(--muted); font: 500 var(--fs-sm)/1 var(--sans); font-variant-numeric: tabular-nums; }
93
+ .oa-now { color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
94
+ .oa-ctx { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
95
+ .oa-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--tray); overflow: hidden; }
96
+ .oa-bar i { display: block; height: 100%; border-radius: 4px; background: var(--info); }
97
+ .oa-bar i.warm { background: var(--warn); }
98
+ .oa-bar i.hot { background: var(--err); }
99
+
100
+ /* Agents with no team (or on their own): as they were, in a quiet list. */
101
+ .org-extra { border-radius: 18px; border: 1.5px dashed var(--line-2); background: none; padding: 8px; display: flex; flex-direction: column; gap: 8px; width: auto; }
102
+ .org-extra .org-agent { width: 232px; }
103
+
104
+ @media (prefers-reduced-motion: reduce) { .oa-wires .run, .org-agent.got, .oa-spin { animation: none; } }
105
+
106
+ @media (max-width: 900px) {
107
+ .org-card { width: auto; }
108
+ .org-crew { align-items: stretch; }
109
+ .org-row { width: auto; flex-direction: column; }
110
+ .org-agent, .org-agent.coord, .org-add { width: auto; }
111
+ .oa-wires { display: none; }
112
+ .org-row { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--line-2); }
113
+ }
@@ -0,0 +1,99 @@
1
+ /* A session: its conversation, and beside it its team and where it runs. */
2
+
3
+ .head h1 .role { width: 15px; height: 15px; }
4
+ .sv-name { font-family: var(--mono); font-size: 14px; font-weight: 600; }
5
+
6
+ .sv { flex: 1; min-height: 0; display: flex; }
7
+ .sv-thread { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; }
8
+ .sv-aside { flex: 0 1 300px; min-width: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 20px; border-left: 1px solid var(--line); }
9
+ .sv-info { display: flex; flex-direction: column; gap: 18px; }
10
+ .sv-info:empty { display: none; }
11
+ .sv-aside section + section, .sv-info:not(:empty) + .sv-tl { padding-top: 16px; border-top: 1px solid var(--line); }
12
+ .sv-aside:empty { display: none; }
13
+ .sv-members { list-style: none; margin: 0 0 8px; padding: 0; }
14
+ .sv-member { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0 -8px; padding: 4px 8px; border-radius: var(--r); color: inherit; text-decoration: none; }
15
+ .sv-member:hover, .sv-member.on { background: var(--raised); }
16
+ .sv-member.offline .sv-mname { opacity: .62; }
17
+ .sv-mname { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
18
+ .sv-mwhat { flex: 1; min-width: 0; text-align: right; font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
19
+ .sv-small { font-size: var(--fs-sm); }
20
+ .sv-quiet { color: var(--muted); margin: 0; }
21
+ .sv-facts { margin: 0; padding: 0; border-top: 0; border-radius: 0; background: none; }
22
+ .sv-mono { font-family: var(--mono); font-size: 12px; }
23
+
24
+ /* The conversation, as in a document: who said it over what was said. */
25
+ #session .chat { background: var(--bg); }
26
+ #session .full .items, .full .items { max-width: 780px; gap: 16px; padding: 24px 24px 32px; }
27
+ #session .row-user { align-self: stretch; max-width: none; }
28
+ #session .bubble-head { text-align: left; margin: 0 0 4px; font-size: var(--fs-sm); color: var(--muted); }
29
+ #session .bubble { border-radius: var(--r-md); padding: 10px 12px; background: var(--raised); }
30
+ #session .bubble.in { background: var(--panel); border: 1px solid var(--line); }
31
+ #session .assistant { line-height: 1.6; text-wrap: pretty; }
32
+ .assistant pre, .tool details pre { background: var(--raised); border-color: var(--line); }
33
+ .sent { border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; background: var(--panel); }
34
+ .sent .h { font-size: var(--fs-sm); }
35
+ .sysline { font-size: var(--fs-sm); }
36
+ .divider { font-size: var(--fs-xs); letter-spacing: .02em; }
37
+ .divider::before, .divider::after { border-top-style: solid; }
38
+
39
+ .tools { border-radius: var(--r-md); background: var(--panel); }
40
+ .tools > summary { padding: 7px 12px; font: 500 var(--fs-sm)/1.4 var(--sans); }
41
+ .tools > summary::before { content: ""; width: 7px; height: 7px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--t) var(--ease); margin-right: 2px; }
42
+ .tools[open] > summary::before { content: ""; transform: rotate(45deg); }
43
+ .tool { padding: 4px 12px; }
44
+ .tool .tn { font-weight: 600; }
45
+ .res.run { display: inline-flex; align-items: center; gap: 6px; }
46
+ .status { font-size: var(--fs-sm); background: var(--bg); }
47
+ .jump { border-radius: var(--r-pill); box-shadow: var(--shadow-pop); }
48
+
49
+ @media (max-width: 1100px) {
50
+ .sv-aside { display: none; }
51
+ }
52
+ @media (max-width: 900px) {
53
+ #session .full .items, .full .items { padding: 16px 14px 24px; }
54
+ }
55
+
56
+ /* A session's terminal, as it is, and beside it what it is doing now and what
57
+ mattered so far, as a timeline. The panel folds to a thin edge. */
58
+ .tv { position: relative; flex: 1; min-height: 0; display: flex; }
59
+ .tv-term { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
60
+ .tv-aside { position: relative; flex: 0 0 320px; min-height: 0; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); color: var(--text); }
61
+ .tv-body { display: flex; flex-direction: column; gap: 18px; padding: 18px 20px 24px; }
62
+ .tv-body > section + section { padding-top: 16px; border-top: 1px solid var(--line); }
63
+ .tv-body > section:first-child > h2 { padding-right: 34px; }
64
+ .tv-fold { position: absolute; top: 12px; right: 12px; z-index: 1; }
65
+ .tv.folded .tv-aside { flex-basis: 48px; overflow: hidden; }
66
+ .tv.folded .tv-body { display: none; }
67
+
68
+ .tl-state { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 500; }
69
+ .tl-ctx { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 12px; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
70
+ .tl-bar { height: 6px; border-radius: var(--r-pill); background: var(--raised); overflow: hidden; }
71
+ .tl-bar i { display: block; height: 100%; border-radius: inherit; background: var(--info); }
72
+ .tl-bar i.hot { background: var(--warn); }
73
+ .tl-plan { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: var(--fs-sm); color: var(--muted); }
74
+ .tl-task { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
75
+ .tl-task .tq-label { display: block; margin: 0 0 3px; }
76
+ .tl-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: var(--fs-sm); }
77
+ .tl-facts dt { color: var(--muted); }
78
+ .tl-facts dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
79
+
80
+ .tl-list { list-style: none; margin: 6px 0 0; padding: 0; }
81
+ .tl-item { display: grid; grid-template-columns: 38px 12px minmax(0, 1fr); gap: 0 9px; padding: 0 0 14px; }
82
+ .tl-item time { padding-top: 1px; text-align: right; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
83
+ .tl-mark { position: relative; }
84
+ .tl-mark::before { content: ""; position: absolute; top: 5px; left: 1.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--muted); }
85
+ .tl-item:not(:last-child) .tl-mark::after { content: ""; position: absolute; top: 18px; bottom: -12px; left: 5.5px; width: 1px; background: var(--line); }
86
+ .tl-item.ok .tl-mark::before { background: var(--ok); box-shadow: none; }
87
+ .tl-item.err .tl-mark::before { background: var(--err); box-shadow: none; border-radius: 2px; }
88
+ .tl-item.warn .tl-mark::before { background: var(--warn); box-shadow: none; border-radius: 2px; transform: rotate(45deg) scale(.85); }
89
+ .tl-item.info .tl-mark::before { background: var(--info); box-shadow: none; }
90
+ .tl-item b { display: block; font-weight: 500; line-height: 1.35; }
91
+ .tl-item div > span { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--muted); }
92
+ .tl-day { padding: 2px 0 10px 59px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
93
+ .tl-kept { margin: 4px 0 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
94
+
95
+ /* A phone: the panel opens over the terminal, from its edge. */
96
+ @media (max-width: 900px) {
97
+ .tv-aside { position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; width: min(320px, 88%); box-shadow: var(--shadow-pop); }
98
+ .tv.folded .tv-aside { position: relative; width: 48px; box-shadow: none; }
99
+ }