blocknet 0.0.0-stage → 0.7.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.
- package/LICENSE +202 -0
- package/NOTICE +13 -0
- package/README.md +233 -2
- package/bin/blocknet.js +388 -0
- package/package.json +54 -4
- package/src/admin.js +612 -0
- package/src/agents.js +75 -0
- package/src/approvals.js +73 -0
- package/src/client.js +115 -0
- package/src/config.js +89 -0
- package/src/console/console.css +493 -0
- package/src/console/console.js +1571 -0
- package/src/console/index.html +18 -0
- package/src/enterprise.js +37 -0
- package/src/gateway.js +480 -0
- package/src/hosts.js +77 -0
- package/src/ledger.js +55 -0
- package/src/license.js +111 -0
- package/src/mcp.js +163 -0
- package/src/notify.js +34 -0
- package/src/policy.js +69 -0
- package/src/sessions.js +147 -0
- package/src/settings.js +292 -0
- package/src/signing.js +55 -0
- package/src/simulate.js +140 -0
- package/src/trust.js +37 -0
- package/src/users.js +182 -0
- package/src/x402.js +81 -0
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
/* Blocknet admin console. No external fonts or assets; served under a strict CSP. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--bg: #f6f7f9;
|
|
5
|
+
--surface: #ffffff;
|
|
6
|
+
--surface-2: #f1f3f6;
|
|
7
|
+
--text: #16191f;
|
|
8
|
+
--muted: #5d6573;
|
|
9
|
+
--faint: #8a919e;
|
|
10
|
+
--line: #e2e5ea;
|
|
11
|
+
--line-strong: #cfd4dc;
|
|
12
|
+
--accent: #1d4ed8;
|
|
13
|
+
--accent-hover: #1e40af;
|
|
14
|
+
--accent-soft: #e6edfd;
|
|
15
|
+
--accent-text: #ffffff;
|
|
16
|
+
--ok: #15803d;
|
|
17
|
+
--ok-soft: #e3f5e9;
|
|
18
|
+
--warn: #a16207;
|
|
19
|
+
--warn-soft: #fbf1d9;
|
|
20
|
+
--bad: #b91c1c;
|
|
21
|
+
--bad-soft: #fbe5e5;
|
|
22
|
+
--neutral-soft: #eceef2;
|
|
23
|
+
--focus: #2563eb;
|
|
24
|
+
--shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
|
|
25
|
+
--shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.18);
|
|
26
|
+
--radius: 10px;
|
|
27
|
+
--radius-sm: 6px;
|
|
28
|
+
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
29
|
+
--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
30
|
+
color-scheme: light;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (prefers-color-scheme: dark) {
|
|
34
|
+
:root {
|
|
35
|
+
--bg: #0d0f13;
|
|
36
|
+
--surface: #15181e;
|
|
37
|
+
--surface-2: #1b1f27;
|
|
38
|
+
--text: #e8eaee;
|
|
39
|
+
--muted: #a1a8b5;
|
|
40
|
+
--faint: #7a8291;
|
|
41
|
+
--line: #262b34;
|
|
42
|
+
--line-strong: #353b46;
|
|
43
|
+
--accent: #5b8def;
|
|
44
|
+
--accent-hover: #7aa3f3;
|
|
45
|
+
--accent-soft: #1b2740;
|
|
46
|
+
--accent-text: #0b1020;
|
|
47
|
+
--ok: #4ade80;
|
|
48
|
+
--ok-soft: #12291b;
|
|
49
|
+
--warn: #fbbf24;
|
|
50
|
+
--warn-soft: #2d230d;
|
|
51
|
+
--bad: #f87171;
|
|
52
|
+
--bad-soft: #321616;
|
|
53
|
+
--neutral-soft: #222731;
|
|
54
|
+
--focus: #7aa3f3;
|
|
55
|
+
--shadow: none;
|
|
56
|
+
--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
|
|
57
|
+
color-scheme: dark;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
62
|
+
|
|
63
|
+
html { -webkit-text-size-adjust: 100%; }
|
|
64
|
+
|
|
65
|
+
body {
|
|
66
|
+
margin: 0;
|
|
67
|
+
background: var(--bg);
|
|
68
|
+
color: var(--text);
|
|
69
|
+
font: 14px/1.5 var(--sans);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
a { color: var(--accent); text-underline-offset: 2px; }
|
|
73
|
+
a:hover { color: var(--accent-hover); }
|
|
74
|
+
|
|
75
|
+
:focus-visible {
|
|
76
|
+
outline: 2px solid var(--focus);
|
|
77
|
+
outline-offset: 2px;
|
|
78
|
+
border-radius: 4px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
|
|
82
|
+
|
|
83
|
+
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
|
|
84
|
+
h1 { font-size: 20px; font-weight: 650; }
|
|
85
|
+
h2 { font-size: 15px; font-weight: 650; }
|
|
86
|
+
h3 { font-size: 14px; font-weight: 600; }
|
|
87
|
+
p { margin: 0; }
|
|
88
|
+
|
|
89
|
+
.num { font-variant-numeric: tabular-nums; }
|
|
90
|
+
.muted { color: var(--muted); }
|
|
91
|
+
.faint { color: var(--faint); }
|
|
92
|
+
.small { font-size: 12.5px; }
|
|
93
|
+
.nowrap { white-space: nowrap; }
|
|
94
|
+
.sr-only {
|
|
95
|
+
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
96
|
+
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.boot { padding: 48px 16px; text-align: center; color: var(--muted); }
|
|
100
|
+
|
|
101
|
+
/* ---------- Buttons and inputs ---------- */
|
|
102
|
+
|
|
103
|
+
.btn {
|
|
104
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
105
|
+
min-height: 32px; padding: 0 12px;
|
|
106
|
+
border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
|
|
107
|
+
background: var(--surface); color: var(--text);
|
|
108
|
+
font: inherit; font-weight: 550; line-height: 1;
|
|
109
|
+
cursor: pointer; white-space: nowrap; text-decoration: none;
|
|
110
|
+
}
|
|
111
|
+
.btn:hover { background: var(--surface-2); color: var(--text); }
|
|
112
|
+
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
113
|
+
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
|
|
114
|
+
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
|
|
115
|
+
.btn-danger { color: var(--bad); }
|
|
116
|
+
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); }
|
|
117
|
+
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
|
|
118
|
+
.btn-danger-solid:hover { background: var(--bad); filter: brightness(0.92); color: #fff; }
|
|
119
|
+
.btn-ok { color: var(--ok); }
|
|
120
|
+
.btn-ok:hover { background: var(--ok-soft); color: var(--ok); }
|
|
121
|
+
.btn-sm { min-height: 26px; padding: 0 9px; font-size: 12.5px; }
|
|
122
|
+
.btn-block { width: 100%; min-height: 38px; }
|
|
123
|
+
.btn-link {
|
|
124
|
+
border: 0; background: none; padding: 0; min-height: 0;
|
|
125
|
+
color: var(--accent); font-weight: 500; cursor: pointer; font: inherit;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.field { display: grid; gap: 5px; }
|
|
129
|
+
.field > label, .label { font-weight: 550; font-size: 13px; }
|
|
130
|
+
.hint { color: var(--muted); font-size: 12.5px; }
|
|
131
|
+
|
|
132
|
+
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
|
|
133
|
+
input[type="url"], input[type="date"], input[type="search"], select, textarea {
|
|
134
|
+
width: 100%;
|
|
135
|
+
min-height: 34px;
|
|
136
|
+
padding: 6px 10px;
|
|
137
|
+
border: 1px solid var(--line-strong);
|
|
138
|
+
border-radius: var(--radius-sm);
|
|
139
|
+
background: var(--surface);
|
|
140
|
+
color: var(--text);
|
|
141
|
+
font: inherit;
|
|
142
|
+
}
|
|
143
|
+
textarea { min-height: 84px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
|
|
144
|
+
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
|
|
145
|
+
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
|
|
146
|
+
|
|
147
|
+
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
|
|
148
|
+
|
|
149
|
+
.field-error { color: var(--bad); font-size: 12.5px; }
|
|
150
|
+
.field-error:empty { display: none; }
|
|
151
|
+
.form-error {
|
|
152
|
+
padding: 8px 10px; border-radius: var(--radius-sm);
|
|
153
|
+
background: var(--bad-soft); color: var(--bad); font-size: 13px;
|
|
154
|
+
}
|
|
155
|
+
.form-error:empty { display: none; }
|
|
156
|
+
|
|
157
|
+
/* ---------- Auth screens ---------- */
|
|
158
|
+
|
|
159
|
+
.auth {
|
|
160
|
+
min-height: 100vh;
|
|
161
|
+
display: grid; place-items: center;
|
|
162
|
+
padding: 32px 16px;
|
|
163
|
+
}
|
|
164
|
+
.auth-card {
|
|
165
|
+
width: 100%; max-width: 380px;
|
|
166
|
+
background: var(--surface);
|
|
167
|
+
border: 1px solid var(--line);
|
|
168
|
+
border-radius: 12px;
|
|
169
|
+
box-shadow: var(--shadow);
|
|
170
|
+
padding: 28px 24px;
|
|
171
|
+
display: grid; gap: 16px;
|
|
172
|
+
}
|
|
173
|
+
.auth-card .wordmark { font-size: 22px; }
|
|
174
|
+
.auth-card form { display: grid; gap: 14px; }
|
|
175
|
+
.divider {
|
|
176
|
+
display: flex; align-items: center; gap: 10px;
|
|
177
|
+
color: var(--faint); font-size: 12px;
|
|
178
|
+
}
|
|
179
|
+
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
|
|
180
|
+
|
|
181
|
+
.wordmark {
|
|
182
|
+
font-weight: 750; letter-spacing: -0.03em; font-size: 17px;
|
|
183
|
+
color: var(--text); text-decoration: none;
|
|
184
|
+
}
|
|
185
|
+
.wordmark span { color: var(--accent); }
|
|
186
|
+
.wordmark:hover { color: var(--text); }
|
|
187
|
+
|
|
188
|
+
/* ---------- Shell ---------- */
|
|
189
|
+
|
|
190
|
+
.topbar {
|
|
191
|
+
position: sticky; top: 0; z-index: 10;
|
|
192
|
+
background: var(--surface);
|
|
193
|
+
border-bottom: 1px solid var(--line);
|
|
194
|
+
}
|
|
195
|
+
.topbar-inner {
|
|
196
|
+
max-width: 1240px; margin: 0 auto;
|
|
197
|
+
display: flex; align-items: center; gap: 20px;
|
|
198
|
+
padding: 0 20px; min-height: 52px;
|
|
199
|
+
}
|
|
200
|
+
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
|
|
201
|
+
.nav a {
|
|
202
|
+
padding: 7px 10px; border-radius: var(--radius-sm);
|
|
203
|
+
color: var(--muted); text-decoration: none; font-weight: 550; white-space: nowrap;
|
|
204
|
+
}
|
|
205
|
+
.nav a:hover { color: var(--text); background: var(--surface-2); }
|
|
206
|
+
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
|
|
207
|
+
.nav .count {
|
|
208
|
+
display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
|
|
209
|
+
border-radius: 9px; background: var(--warn-soft); color: var(--warn);
|
|
210
|
+
font-size: 11px; line-height: 18px; text-align: center;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.usermenu { position: relative; }
|
|
214
|
+
.usermenu summary {
|
|
215
|
+
list-style: none; cursor: pointer;
|
|
216
|
+
display: flex; align-items: center; gap: 8px;
|
|
217
|
+
padding: 5px 8px; border-radius: var(--radius-sm);
|
|
218
|
+
}
|
|
219
|
+
.usermenu summary::-webkit-details-marker { display: none; }
|
|
220
|
+
.usermenu summary:hover { background: var(--surface-2); }
|
|
221
|
+
.usermenu .avatar {
|
|
222
|
+
width: 26px; height: 26px; border-radius: 50%;
|
|
223
|
+
display: grid; place-items: center;
|
|
224
|
+
background: var(--accent-soft); color: var(--accent);
|
|
225
|
+
font-weight: 700; font-size: 12px;
|
|
226
|
+
}
|
|
227
|
+
.usermenu .who { font-weight: 550; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
228
|
+
.usermenu-panel {
|
|
229
|
+
position: absolute; right: 0; top: calc(100% + 6px);
|
|
230
|
+
min-width: 220px;
|
|
231
|
+
background: var(--surface); border: 1px solid var(--line);
|
|
232
|
+
border-radius: var(--radius); box-shadow: var(--shadow-lg);
|
|
233
|
+
padding: 6px; display: grid;
|
|
234
|
+
}
|
|
235
|
+
.usermenu-panel .meta { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
|
|
236
|
+
.usermenu-panel a, .usermenu-panel button {
|
|
237
|
+
display: block; width: 100%; text-align: left;
|
|
238
|
+
padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
|
|
239
|
+
background: none; color: var(--text); font: inherit; text-decoration: none; cursor: pointer;
|
|
240
|
+
}
|
|
241
|
+
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--surface-2); color: var(--text); }
|
|
242
|
+
|
|
243
|
+
.main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; display: grid; gap: 20px; }
|
|
244
|
+
|
|
245
|
+
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
|
|
246
|
+
.page-head p { color: var(--muted); margin-top: 4px; }
|
|
247
|
+
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
248
|
+
|
|
249
|
+
/* ---------- Cards, stats ---------- */
|
|
250
|
+
|
|
251
|
+
.card {
|
|
252
|
+
background: var(--surface);
|
|
253
|
+
border: 1px solid var(--line);
|
|
254
|
+
border-radius: var(--radius);
|
|
255
|
+
box-shadow: var(--shadow);
|
|
256
|
+
min-width: 0;
|
|
257
|
+
}
|
|
258
|
+
.card-head {
|
|
259
|
+
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
|
260
|
+
padding: 14px 16px; border-bottom: 1px solid var(--line);
|
|
261
|
+
}
|
|
262
|
+
.card-head p { color: var(--muted); font-size: 12.5px; }
|
|
263
|
+
.card-body { padding: 16px; }
|
|
264
|
+
.card-foot {
|
|
265
|
+
padding: 12px 16px; border-top: 1px solid var(--line);
|
|
266
|
+
display: flex; justify-content: flex-end; align-items: center; gap: 10px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
|
|
270
|
+
.stat { padding: 14px 16px; }
|
|
271
|
+
.stat .label { color: var(--muted); font-weight: 500; font-size: 12.5px; }
|
|
272
|
+
.stat .value { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; }
|
|
273
|
+
.stat .sub { color: var(--faint); font-size: 12px; margin-top: 2px; }
|
|
274
|
+
|
|
275
|
+
.budget-bar { padding: 14px 16px; display: grid; gap: 8px; }
|
|
276
|
+
.budget-bar .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
|
|
277
|
+
progress {
|
|
278
|
+
width: 100%; height: 8px;
|
|
279
|
+
appearance: none; -webkit-appearance: none;
|
|
280
|
+
border: 0; border-radius: 4px; overflow: hidden;
|
|
281
|
+
background: var(--neutral-soft);
|
|
282
|
+
}
|
|
283
|
+
progress::-webkit-progress-bar { background: var(--neutral-soft); border-radius: 4px; }
|
|
284
|
+
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
|
|
285
|
+
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
|
|
286
|
+
progress.high::-webkit-progress-value { background: var(--warn); }
|
|
287
|
+
progress.high::-moz-progress-bar { background: var(--warn); }
|
|
288
|
+
progress.full::-webkit-progress-value { background: var(--bad); }
|
|
289
|
+
progress.full::-moz-progress-bar { background: var(--bad); }
|
|
290
|
+
|
|
291
|
+
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
292
|
+
.counts > div { padding: 12px 16px; border-left: 1px solid var(--line); }
|
|
293
|
+
.counts > div:first-child { border-left: 0; }
|
|
294
|
+
.counts .value { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
|
|
295
|
+
.counts .label { color: var(--muted); font-size: 12.5px; }
|
|
296
|
+
|
|
297
|
+
.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
|
|
298
|
+
|
|
299
|
+
/* ---------- Tables ---------- */
|
|
300
|
+
|
|
301
|
+
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
|
|
302
|
+
table { width: 100%; border-collapse: collapse; }
|
|
303
|
+
th, td {
|
|
304
|
+
padding: 9px 12px; text-align: left; vertical-align: top;
|
|
305
|
+
border-bottom: 1px solid var(--line);
|
|
306
|
+
}
|
|
307
|
+
th {
|
|
308
|
+
color: var(--muted); font-weight: 550; font-size: 12px;
|
|
309
|
+
background: var(--surface-2); white-space: nowrap;
|
|
310
|
+
}
|
|
311
|
+
tbody tr:last-child td { border-bottom: 0; }
|
|
312
|
+
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
|
|
313
|
+
td.actions { text-align: right; white-space: nowrap; }
|
|
314
|
+
td.actions .btn + .btn { margin-left: 4px; }
|
|
315
|
+
td .reasons { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
|
|
316
|
+
td .reasons li + li { margin-top: 2px; }
|
|
317
|
+
.cell-strong { font-weight: 550; }
|
|
318
|
+
.cell-sub { color: var(--faint); font-size: 12px; }
|
|
319
|
+
|
|
320
|
+
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
|
|
321
|
+
|
|
322
|
+
/* ---------- Pills ---------- */
|
|
323
|
+
|
|
324
|
+
.pill {
|
|
325
|
+
display: inline-block;
|
|
326
|
+
padding: 1px 8px; border-radius: 999px;
|
|
327
|
+
font-size: 11.5px; font-weight: 600; line-height: 18px;
|
|
328
|
+
background: var(--neutral-soft); color: var(--muted);
|
|
329
|
+
white-space: nowrap;
|
|
330
|
+
}
|
|
331
|
+
.pill-ok { background: var(--ok-soft); color: var(--ok); }
|
|
332
|
+
.pill-warn { background: var(--warn-soft); color: var(--warn); }
|
|
333
|
+
.pill-bad { background: var(--bad-soft); color: var(--bad); }
|
|
334
|
+
.pill-accent { background: var(--accent-soft); color: var(--accent); }
|
|
335
|
+
|
|
336
|
+
/* ---------- Tabs and filters ---------- */
|
|
337
|
+
|
|
338
|
+
.tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
|
|
339
|
+
.tabs button {
|
|
340
|
+
border: 1px solid transparent; background: none; color: var(--muted);
|
|
341
|
+
padding: 5px 10px; border-radius: var(--radius-sm); font: inherit; font-weight: 550; cursor: pointer;
|
|
342
|
+
white-space: nowrap;
|
|
343
|
+
}
|
|
344
|
+
.tabs button:hover { background: var(--surface-2); color: var(--text); }
|
|
345
|
+
.tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
|
|
346
|
+
|
|
347
|
+
.filters {
|
|
348
|
+
display: grid; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line);
|
|
349
|
+
grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
|
|
350
|
+
align-items: end;
|
|
351
|
+
}
|
|
352
|
+
.filters .field > label { font-size: 12px; color: var(--muted); font-weight: 500; }
|
|
353
|
+
.filters .filter-actions { display: flex; gap: 6px; }
|
|
354
|
+
|
|
355
|
+
.load-more { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line); }
|
|
356
|
+
|
|
357
|
+
/* ---------- Activity list (overview) ---------- */
|
|
358
|
+
|
|
359
|
+
.feed { list-style: none; margin: 0; padding: 0; }
|
|
360
|
+
.feed li {
|
|
361
|
+
display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px;
|
|
362
|
+
padding: 9px 16px; border-bottom: 1px solid var(--line);
|
|
363
|
+
}
|
|
364
|
+
.feed li:last-child { border-bottom: 0; }
|
|
365
|
+
.feed .t { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; }
|
|
366
|
+
.feed .what { min-width: 0; overflow-wrap: anywhere; }
|
|
367
|
+
.feed .what .host { font-weight: 550; }
|
|
368
|
+
|
|
369
|
+
/* ---------- Policy forms ---------- */
|
|
370
|
+
|
|
371
|
+
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
372
|
+
.form-grid .span-2 { grid-column: 1 / -1; }
|
|
373
|
+
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
|
374
|
+
.saved-note { color: var(--ok); font-size: 12.5px; }
|
|
375
|
+
.saved-note:empty { display: none; }
|
|
376
|
+
.readonly-note {
|
|
377
|
+
padding: 10px 12px; border-radius: var(--radius-sm);
|
|
378
|
+
background: var(--surface-2); color: var(--muted); font-size: 13px;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/* ---------- Definition list (system) ---------- */
|
|
382
|
+
|
|
383
|
+
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin: 0; }
|
|
384
|
+
.kv dt, .kv dd { padding: 9px 16px; border-bottom: 1px solid var(--line); margin: 0; }
|
|
385
|
+
.kv dt { color: var(--muted); }
|
|
386
|
+
.kv dd { overflow-wrap: anywhere; }
|
|
387
|
+
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
|
|
388
|
+
pre.key {
|
|
389
|
+
margin: 0; padding: 12px; border-radius: var(--radius-sm);
|
|
390
|
+
background: var(--surface-2); border: 1px solid var(--line);
|
|
391
|
+
overflow-x: auto; white-space: pre; line-height: 1.45;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/* ---------- Dialogs ---------- */
|
|
395
|
+
|
|
396
|
+
dialog {
|
|
397
|
+
width: min(520px, calc(100vw - 32px));
|
|
398
|
+
max-height: calc(100vh - 48px);
|
|
399
|
+
padding: 0; border: 1px solid var(--line); border-radius: 12px;
|
|
400
|
+
background: var(--surface); color: var(--text);
|
|
401
|
+
box-shadow: var(--shadow-lg);
|
|
402
|
+
}
|
|
403
|
+
dialog::backdrop { background: rgba(10, 14, 22, 0.45); }
|
|
404
|
+
dialog form, dialog .dialog-inner { display: grid; }
|
|
405
|
+
.dialog-head { padding: 16px 20px 0; display: grid; gap: 4px; }
|
|
406
|
+
.dialog-head p { color: var(--muted); }
|
|
407
|
+
.dialog-body { padding: 16px 20px; display: grid; gap: 14px; overflow-y: auto; }
|
|
408
|
+
.dialog-foot {
|
|
409
|
+
padding: 14px 20px; border-top: 1px solid var(--line);
|
|
410
|
+
display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
|
|
411
|
+
}
|
|
412
|
+
.secret {
|
|
413
|
+
display: flex; align-items: center; gap: 8px;
|
|
414
|
+
padding: 10px 12px; border-radius: var(--radius-sm);
|
|
415
|
+
background: var(--surface-2); border: 1px solid var(--line-strong);
|
|
416
|
+
}
|
|
417
|
+
.secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
|
|
418
|
+
.callout {
|
|
419
|
+
padding: 10px 12px; border-radius: var(--radius-sm);
|
|
420
|
+
background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 500;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* ---------- Toasts ---------- */
|
|
424
|
+
|
|
425
|
+
.toasts {
|
|
426
|
+
position: fixed; right: 16px; bottom: 16px; z-index: 100;
|
|
427
|
+
display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px));
|
|
428
|
+
}
|
|
429
|
+
.toast {
|
|
430
|
+
padding: 10px 14px; border-radius: var(--radius-sm);
|
|
431
|
+
background: var(--text); color: var(--surface);
|
|
432
|
+
box-shadow: var(--shadow-lg); font-size: 13px;
|
|
433
|
+
}
|
|
434
|
+
.toast-error { background: var(--bad); color: #fff; }
|
|
435
|
+
.toast-ok { background: var(--ok); color: #fff; }
|
|
436
|
+
@media (prefers-color-scheme: dark) {
|
|
437
|
+
.toast-ok, .toast-error { color: #0b0d10; }
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* ---------- Responsive ---------- */
|
|
441
|
+
|
|
442
|
+
@media (max-width: 1000px) {
|
|
443
|
+
.grid-2 { grid-template-columns: minmax(0, 1fr); }
|
|
444
|
+
.filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
445
|
+
.filters .filter-actions { grid-column: 1 / -1; }
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
@media (max-width: 720px) {
|
|
449
|
+
.topbar-inner { flex-wrap: wrap; gap: 0 12px; padding: 0 16px; }
|
|
450
|
+
.topbar-inner .wordmark { padding: 12px 0; }
|
|
451
|
+
.usermenu { margin-left: auto; }
|
|
452
|
+
.usermenu .who { display: none; }
|
|
453
|
+
.nav {
|
|
454
|
+
order: 3; flex: 0 0 100%;
|
|
455
|
+
overflow-x: auto; -webkit-overflow-scrolling: touch;
|
|
456
|
+
padding-bottom: 8px; scrollbar-width: none;
|
|
457
|
+
}
|
|
458
|
+
.nav::-webkit-scrollbar { display: none; }
|
|
459
|
+
.main { padding: 16px 16px 48px; gap: 16px; }
|
|
460
|
+
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
461
|
+
.counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
462
|
+
.counts > div:nth-child(3) { border-left: 0; }
|
|
463
|
+
.counts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
|
|
464
|
+
.filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
|
|
465
|
+
.form-grid { grid-template-columns: minmax(0, 1fr); }
|
|
466
|
+
.kv { grid-template-columns: minmax(0, 1fr); }
|
|
467
|
+
.kv dt { border-bottom: 0; padding-bottom: 0; }
|
|
468
|
+
.kv dd { padding-top: 2px; }
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
472
|
+
.btn, .nav a, .tabs button { transition: background-color 0.12s, color 0.12s, border-color 0.12s; }
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* ---------- Plan ---------- */
|
|
476
|
+
|
|
477
|
+
.plan-banner {
|
|
478
|
+
padding: 10px 16px; text-align: center; font-size: 13px; font-weight: 500;
|
|
479
|
+
background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--line);
|
|
480
|
+
}
|
|
481
|
+
.pill-plan { margin-left: 6px; background: var(--surface-2); color: var(--muted); }
|
|
482
|
+
|
|
483
|
+
/* advisor and policy versions */
|
|
484
|
+
.advice-list, .versions { list-style: none; margin: 0; padding: 0; }
|
|
485
|
+
.advice { padding: 14px 16px; border-bottom: 1px solid var(--line); }
|
|
486
|
+
.advice:last-child { border-bottom: 0; }
|
|
487
|
+
.advice p { margin: 6px 0 0; }
|
|
488
|
+
.advice-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
489
|
+
.advice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
|
|
490
|
+
.versions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
|
|
491
|
+
.versions li:last-child { border-bottom: 0; }
|
|
492
|
+
.versions span { overflow-wrap: anywhere; }
|
|
493
|
+
.small-head { font-size: 13px; margin: 0 0 6px; color: var(--muted); font-weight: 500; }
|