File size: 21,240 Bytes
13b1a91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
/* MLX Model Explorer
   One idea carries the page: the memory budget. Everything else stays quiet. */

:root {
  --ground: #f2f4f6;
  --surface: #ffffff;
  --sunk: #e8ecf0;
  --ink: #17212b;
  --ink-2: #4a5866;
  --ink-3: #7b8895;
  --line: #d9dfe5;
  --focus: #2f5d8c;

  --weights: #2f5d8c;
  --kv: #7a5ab8;
  --overhead: #a3adb7;
  --limit: #17212b;

  --fit-comfortable: #2e7d4f;
  --fit-likely: #62802a;
  --fit-borderline: #b7791f;
  --fit-unlikely: #b23a2e;

  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-lg: 18px;
  --r-md: 10px;
  --r-sm: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #10161c;
    --surface: #17202a;
    --sunk: #1f2a35;
    --ink: #e8edf2;
    --ink-2: #b2bdc8;
    --ink-3: #82909d;
    --line: #2a3643;
    --focus: #8fb6e6;
    --weights: #4f86c6;
    --kv: #9c7fd6;
    --overhead: #5d6b78;
    --limit: #e8edf2;
    --fit-comfortable: #5fbf85;
    --fit-likely: #a3c45a;
    --fit-borderline: #e0a84a;
    --fit-unlikely: #ec7a6c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.55 var(--text); font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code, pre { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: var(--r-sm); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.shell { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

/* ---------------------------------------------------------------- header */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 85%, transparent);
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; }
.fill-w { fill: var(--weights); } .fill-kv { fill: var(--kv); } .fill-limit { fill: var(--limit); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- hero: the memory budget */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; padding-block: 44px 28px; }
h1 { font: 600 clamp(30px, 4.2vw, 46px)/1.08 var(--display); letter-spacing: -0.025em; margin: 0 0 14px; max-width: 14ch; }
.lede { color: var(--ink-2); margin: 0; max-width: 46ch; font-size: 16px; }
.lede a { color: var(--ink); }

.budget { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 18px; }
.budget-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.budget-mac { font: 600 20px/1.2 var(--display); letter-spacing: -0.01em; }
.budget-usable { color: var(--ink-3); font-size: 14px; }
.budget-track { position: relative; height: 46px; border-radius: 12px; background:
  repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), color-mix(in srgb, var(--line) 70%, transparent) calc(12.5% - 1px) 12.5%),
  var(--sunk);
  display: flex; overflow: hidden; }
.seg { display: block; height: 100%; width: 0; transition: width 420ms cubic-bezier(.2, .8, .2, 1); }
.seg-w { background: var(--weights); }
.seg-kv { background: var(--kv); }
.seg-oh { background: var(--overhead); }
.budget-track.over .seg-oh { background: repeating-linear-gradient(135deg, var(--fit-unlikely) 0 6px, color-mix(in srgb, var(--fit-unlikely) 70%, transparent) 6px 12px); }
.limit { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--limit); border-radius: 2px;
  transition: left 420ms cubic-bezier(.2, .8, .2, 1); }
.budget-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 20px; flex-wrap: wrap; margin-top: 14px; }
.budget-model { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 58ch; }
.budget-model strong { color: var(--ink); font-weight: 600; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw-limit { width: 3px; height: 13px; border-radius: 2px; background: var(--limit); }

/* ---------------------------------------------------------------- workspace */
.workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 56px; }
.rail { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.group { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.group legend { font: 600 14px/1.3 var(--display); padding: 0; margin-bottom: 9px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .chips > button { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .chips > button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 13px/1.2 var(--text);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.chips.tight .chip span { padding-inline: 9px; }
.chip span small { color: var(--ink-3); font-size: 11.5px; font-weight: 400; }
.chip:hover span, .chips > button:hover { border-color: var(--ink-3); color: var(--ink); }
.chip input:checked + span, .chips > button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip input:checked + span small { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.more-family { display: block; margin-top: 8px; }
.more-filters > summary { display: none; }
details.more-filters { border: 0; padding: 0; }
.more-filters > *:not(summary) { margin-top: 0; }
select, input[type="search"], input[type="text"], input[type="number"], textarea {
  width: 100%; font: 400 14px/1.3 var(--text); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; min-height: 36px;
}
textarea { resize: vertical; font-family: var(--mono); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 10px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ink); }

button { font: inherit; color: inherit; }
.ghost, .solid { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 13px;
  border-radius: var(--r-sm); font: 500 13.5px/1.2 var(--text); cursor: pointer; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ghost:hover:not(:disabled) { border-color: var(--ink-3); background: var(--surface); }
.solid { background: var(--ink); border: 1px solid var(--ink); color: var(--surface); }
.solid:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 85%, var(--weights)); }
button:disabled { opacity: .45; cursor: default; }
.small { min-height: 30px; font-size: 12.5px; padding: 4px 10px; }
.wide { width: 100%; margin-top: 14px; }

.detect-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.hint, .fine { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.hw { margin-top: 12px; padding: 12px; border-radius: var(--r-md); background: var(--sunk); }
.hw-estimate { margin: 0 0 8px; font: 600 14px/1.35 var(--display); }
.hw-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 8px; font-size: 12.5px; }
.hw-facts dt { color: var(--ink-3); }
.hw-facts dd { margin: 0; }
.hw .fine { margin-bottom: 8px; }
progress { display: block; width: 100%; height: 6px; margin-top: 8px; accent-color: var(--weights); }
.note { font-size: 13px; color: var(--ink); background: color-mix(in srgb, var(--fit-borderline) 14%, var(--surface));
  border-radius: var(--r-sm); padding: 8px 10px; margin: 10px 0 0; }

/* ---------------------------------------------------------------- results */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.results-head h2 { font: 600 22px/1.2 var(--display); margin: 0; letter-spacing: -0.01em; }
.summary { margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunk); }
.tabs button { border: 0; background: transparent; color: var(--ink-2); padding: 6px 11px; border-radius: 7px; font-size: 13px; cursor: pointer; min-height: 30px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 33, 43, .12); font-weight: 600; }
#notices .note { margin: 0 0 8px; }

.rows { list-style: none; margin: 8px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rows:empty { display: none; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 6px 22px; padding: 14px 18px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.active { background: color-mix(in srgb, var(--weights) 5%, var(--surface)); }
.row-main { min-width: 0; }
.row-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.row-name { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; font: 600 15.5px/1.3 var(--text);
  color: var(--ink); word-break: break-word; }
.row-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-org { color: var(--ink-3); font-weight: 400; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 5px 0 0; font-size: 13px; color: var(--ink-2); }
.facts .tag { color: var(--ink); font-weight: 500; }
.facts .warn { color: var(--fit-borderline); }
.why { margin: 7px 0 0; font-size: 13px; color: var(--ink-3); max-width: 72ch; }
.row-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.row-actions .check { font-size: 13px; align-items: center; }
.row-actions .check input { margin-top: 0; }
.row-actions a, .linkish { color: var(--ink-2); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; font-size: 13px; }

.row-fit { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.fit-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.fit-gb { font: 600 17px/1 var(--display); color: var(--ink); }
.fit-label { font-weight: 600; font-size: 12.5px; }
.fit-Comfortable { color: var(--fit-comfortable); }
.fit-Likely { color: var(--fit-likely); }
.fit-Borderline { color: var(--fit-borderline); }
.fit-Unlikely { color: var(--fit-unlikely); }
.fit-none { color: var(--ink-3); font-weight: 400; }
.score { font-size: 12px; color: var(--ink-3); }

.mini { position: relative; display: flex; height: 10px; border-radius: 5px; background: var(--sunk); overflow: visible; }
.mini .seg:first-child { border-radius: 5px 0 0 5px; }
.mini .seg { transition: none; }
.mini .limit { top: -3px; bottom: -3px; width: 2px; margin-left: -1px; transition: none; }
.mini.over .seg-oh { background: var(--fit-unlikely); }

/* ---------------------------------------------------------------- prose sections */
.prose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 44px 20px; border-top: 1px solid var(--line); }
.prose h2 { font: 600 20px/1.25 var(--display); margin: 0 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.prose ul { padding-left: 18px; }
.prose strong { color: var(--ink); }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > *:not(summary) { margin-top: 8px; }
pre.cmd { background: var(--ink); color: var(--ground); padding: 14px 16px; border-radius: var(--r-md); overflow-x: auto; line-height: 1.6; margin: 10px 0; }
@media (prefers-color-scheme: dark) { pre.cmd { background: #0a0f14; color: var(--ink); border: 1px solid var(--line); } }
.actions-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13.5px; }

.foot { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 18px 90px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- compare tray */
.tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--ink); color: var(--surface); box-shadow: 0 8px 28px rgba(10, 20, 30, .28);
  max-width: calc(100% - 32px); font-size: 14px; }
.tray .ghost { color: var(--surface); border-color: color-mix(in srgb, var(--surface) 30%, transparent); }
.tray .ghost:hover { background: transparent; border-color: var(--surface); }
.tray .solid { background: var(--surface); color: var(--ink); border-color: var(--surface); }

/* ---------------------------------------------------------------- dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(12, 18, 24, .45); }
dialog.sheet { margin: 0 0 0 auto; width: min(640px, 100vw); height: 100vh; max-height: 100vh; border-left: 1px solid var(--line); }
dialog.sheet[open] { animation: sheet-in 260ms cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
dialog.modal { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 48px); border-radius: var(--r-lg); border: 1px solid var(--line); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font: 600 17px/1.3 var(--display); word-break: break-word; }
.close { border: 1px solid var(--line); background: transparent; width: 34px; height: 34px; border-radius: 8px; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.sheet-body { padding: 18px 20px 28px; }
.sheet-body h3 { font: 600 15px/1.3 var(--display); margin: 24px 0 10px; }
.sheet-body h4 { font-size: 13.5px; margin: 14px 0 8px; }
.sheet-lede { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-word; }
.why-list { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.why-list li + li { margin-top: 4px; }

.ctx-bars { display: grid; grid-template-columns: 44px minmax(0, 1fr) 64px 92px; gap: 9px 12px; align-items: center; font-size: 13px; }
.ctx-bars .ctx { color: var(--ink-3); }
.ctx-bars .cur { color: var(--ink); font-weight: 600; }
.ctx-bars .gb { text-align: right; font-weight: 500; }
.ctx-bars .mini { height: 12px; }
.scale-note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; color: var(--ink-3); font-weight: 500; white-space: nowrap; background: var(--sunk); }
tbody th { color: var(--ink-3); font-weight: 500; white-space: nowrap; }
td.num { text-align: right; }
.compare-bar td .mini { min-width: 140px; }

.feedback { margin-top: 26px; padding-top: 4px; border-top: 1px solid var(--line); }
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 12px; }
.feedback .chips { margin-bottom: 4px; }

/* ---------------------------------------------------------------- stats page */
.stats-hero { padding-block: 40px 24px; }
.stats-hero h1 { max-width: 20ch; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 28px; }
.total { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.total b { display: block; font: 600 26px/1.1 var(--display); }
.total span { font-size: 12.5px; color: var(--ink-3); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px 40px; padding-bottom: 40px; }
.chart h2 { font: 600 16px/1.3 var(--display); margin: 0 0 10px; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(80px, 38%) minmax(0, 1fr) 78px; gap: 10px; align-items: center; font-size: 13px; }
.bar .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { height: 10px; border-radius: 5px; background: var(--sunk); overflow: hidden; }
.bar .fill { height: 100%; background: var(--weights); border-radius: 5px; }
.bar .n { text-align: right; color: var(--ink-3); }
.qshare { display: flex; height: 36px; border-radius: 10px; overflow: hidden; background: var(--sunk); margin: 6px 0 8px; }
.qshare span { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; min-width: 0; overflow: hidden; white-space: nowrap; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .prose-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  h1 { max-width: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rail { position: static; max-height: none; overflow: visible; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
  .group { margin-bottom: 16px; }
  .more-filters { border-top: 1px solid var(--line); padding-top: 10px; }
  .more-filters > summary { display: flex; margin-bottom: 4px; }
  .more-filters[open] > summary { margin-bottom: 14px; }
}
@media (max-width: 600px) {
  .shell { padding-inline: 16px; }
  .top nav { gap: 12px; font-size: 13px; }
  .budget { padding: 16px; }
  .budget-track { height: 38px; }
  .row { grid-template-columns: 1fr; padding: 14px; }
  .row-fit { order: -1; }
  .ctx-bars { grid-template-columns: 40px minmax(0, 1fr) 58px; }
  .ctx-bars .fitc { grid-column: 2 / -1; margin-top: -6px; }
  .fb-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
}