ai-usage-analyzer 0.4.0 → 0.5.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/README.md +38 -19
- package/bin/ai-usage.js +24 -19
- package/package.json +8 -8
- package/src/aggregate.js +24 -2
- package/src/live.js +132 -0
- package/src/loaders.js +90 -27
- package/src/markdown.js +13 -10
- package/src/pricing.js +49 -0
- package/src/quota.js +194 -0
- package/src/render.js +20 -14
- package/src/server.js +68 -0
- package/src/tools.js +5 -49
- package/src/tui.js +24 -8
- package/web/app.js +1059 -0
- package/web/dates.js +35 -0
- package/web/favicon.svg +1 -0
- package/web/fonts/OFL.txt +93 -0
- package/web/fonts/manrope.woff2 +0 -0
- package/web/icons/claude.svg +1 -0
- package/web/icons/openai.svg +1 -0
- package/web/icons/opencode.svg +1 -0
- package/web/index.html +233 -0
- package/web/style.css +369 -0
package/web/style.css
ADDED
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: Manrope;
|
|
3
|
+
src: url('/fonts/manrope.woff2') format('woff2');
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400 800;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
}
|
|
8
|
+
:root {
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
--paper: #f1ede4;
|
|
11
|
+
--paper-2: #e8e3d7;
|
|
12
|
+
--raised: #f8f5ee;
|
|
13
|
+
--ink: #16140f;
|
|
14
|
+
--ink-2: #4f4a3f;
|
|
15
|
+
--ink-3: #8a8473;
|
|
16
|
+
--rule: #cfc8b8;
|
|
17
|
+
--accent: #e5401a;
|
|
18
|
+
--accent-ink: #b0300d;
|
|
19
|
+
--veil: rgb(241 237 228 / .8);
|
|
20
|
+
--scrim: rgb(22 20 15 / .5);
|
|
21
|
+
--gutter: clamp(16px, 4vw, 56px);
|
|
22
|
+
--edge: max(var(--gutter), calc((100vw - 1360px) / 2));
|
|
23
|
+
}
|
|
24
|
+
:root[data-theme='dark'] {
|
|
25
|
+
color-scheme: dark;
|
|
26
|
+
--paper: #12110e;
|
|
27
|
+
--paper-2: #1d1b17;
|
|
28
|
+
--raised: #1a1814;
|
|
29
|
+
--ink: #f1ede4;
|
|
30
|
+
--ink-2: #b3ad9e;
|
|
31
|
+
--ink-3: #6f695c;
|
|
32
|
+
--rule: #35312a;
|
|
33
|
+
--accent: #ff6b3d;
|
|
34
|
+
--accent-ink: #ff8a63;
|
|
35
|
+
--veil: rgb(18 17 14 / .78);
|
|
36
|
+
--scrim: rgb(0 0 0 / .6);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
* { box-sizing: border-box; }
|
|
40
|
+
[hidden] { display: none !important; }
|
|
41
|
+
html { scroll-padding-top: 88px; }
|
|
42
|
+
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 15px/1.55 Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
|
|
43
|
+
button, input { font: inherit; color: inherit; }
|
|
44
|
+
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
|
|
45
|
+
a { color: inherit; }
|
|
46
|
+
button { cursor: pointer; }
|
|
47
|
+
button:disabled { cursor: default; opacity: .4; }
|
|
48
|
+
button, a, summary { touch-action: manipulation; }
|
|
49
|
+
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
|
|
50
|
+
::selection { background: var(--accent); color: var(--paper); }
|
|
51
|
+
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
|
|
52
|
+
ol, ul { list-style: none; }
|
|
53
|
+
h2 { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
|
|
54
|
+
h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
|
|
55
|
+
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
56
|
+
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 700; }
|
|
57
|
+
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .86em; }
|
|
58
|
+
.num, .hero-number, td.numeric, .scope, .parts strong, .slip dd { font-variant-numeric: tabular-nums; }
|
|
59
|
+
|
|
60
|
+
.masthead, main, .colophon { padding-inline: var(--edge); }
|
|
61
|
+
.masthead { display: flex; align-items: center; gap: 12px 40px; flex-wrap: wrap; min-height: 76px; padding-block: 12px; border-bottom: 2px solid var(--ink); }
|
|
62
|
+
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 19px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
|
|
63
|
+
.brand b { font-weight: 400; color: var(--ink-2); }
|
|
64
|
+
.brand img { display: block; border-radius: 3px; }
|
|
65
|
+
.views { display: flex; gap: 28px; }
|
|
66
|
+
.views a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 3px solid transparent; font-weight: 600; text-decoration: none; color: var(--ink-2); }
|
|
67
|
+
.views a:hover { color: var(--ink); }
|
|
68
|
+
.views a[aria-current='page'] { color: var(--ink); font-weight: 800; border-bottom-color: var(--accent); }
|
|
69
|
+
.views .count { padding: 0 6px; border: 1px solid var(--ink-3); border-radius: 2px; font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
|
|
70
|
+
.views .count:empty { display: none; }
|
|
71
|
+
.masthead-actions { display: flex; gap: 8px; margin-left: auto; }
|
|
72
|
+
|
|
73
|
+
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 3px; background: transparent; font-weight: 700; letter-spacing: -.01em; transition: background-color .15s, color .15s; }
|
|
74
|
+
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
|
|
75
|
+
.button svg .fill { fill: currentColor; stroke: none; }
|
|
76
|
+
.button.solid { background: var(--ink); color: var(--paper); }
|
|
77
|
+
.button.solid:hover:not(:disabled) { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
|
|
78
|
+
:root[data-theme='dark'] .button.solid:hover:not(:disabled) { color: #12110e; }
|
|
79
|
+
.button.quiet:hover:not(:disabled) { background: var(--paper-2); }
|
|
80
|
+
.button.quiet[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
|
|
81
|
+
.text-button, .text-link { padding: 0; border: 0; background: none; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
|
|
82
|
+
.text-button:hover, .text-link:hover { text-decoration-color: var(--accent); }
|
|
83
|
+
.text-button { min-height: 24px; text-align: left; }
|
|
84
|
+
.text-link { display: inline-block; margin-top: 20px; }
|
|
85
|
+
|
|
86
|
+
.notice { margin-top: 20px; padding: 12px 16px; border: 1.5px solid var(--ink); background: var(--raised); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 600; }
|
|
87
|
+
.notice:empty { display: none; }
|
|
88
|
+
.notice.error { border-color: var(--accent-ink); color: var(--accent-ink); }
|
|
89
|
+
.notice a { font-weight: 800; }
|
|
90
|
+
|
|
91
|
+
.loading { max-width: 40rem; padding-block: clamp(72px, 18vh, 180px) 80px; }
|
|
92
|
+
.loading h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.055em; }
|
|
93
|
+
.loading p { margin-top: 14px; color: var(--ink-2); }
|
|
94
|
+
.progress { height: 4px; margin-top: 28px; background: var(--rule); overflow: hidden; }
|
|
95
|
+
.progress span { display: block; width: 32%; height: 100%; background: var(--accent); animation: scan 1.3s cubic-bezier(.6, 0, .4, 1) infinite; }
|
|
96
|
+
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(320%); } }
|
|
97
|
+
|
|
98
|
+
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 12px; border-bottom: 1px solid var(--rule); background: var(--paper); }
|
|
99
|
+
@media (min-width: 900px) { .filters { position: sticky; top: 0; z-index: 10; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); } }
|
|
100
|
+
.filter-group { display: flex; flex-wrap: wrap; }
|
|
101
|
+
.filter-group button { min-height: 44px; margin: 0 -1.5px -1.5px 0; padding: 0 14px; border: 1.5px solid var(--ink); background: transparent; font-weight: 600; transition: background-color .15s, color .15s; }
|
|
102
|
+
.filter-group button:first-child { border-radius: 3px 0 0 3px; }
|
|
103
|
+
.filter-group button:last-child { border-radius: 0 3px 3px 0; margin-right: 0; }
|
|
104
|
+
.filter-group button:hover { background: var(--paper-2); }
|
|
105
|
+
.filter-group button[aria-pressed='true'] { background: var(--ink); color: var(--paper); font-weight: 800; }
|
|
106
|
+
.filter-group button:focus-visible { position: relative; z-index: 1; }
|
|
107
|
+
.tool-filter button { display: inline-flex; align-items: center; gap: 8px; }
|
|
108
|
+
.scope { margin-left: auto; color: var(--ink-2); font-weight: 600; }
|
|
109
|
+
|
|
110
|
+
.date-trigger { justify-content: space-between; max-width: 100%; text-align: left; }
|
|
111
|
+
.date-trigger svg { flex: none; }
|
|
112
|
+
.date-trigger[aria-expanded='true'] { background: var(--paper-2); }
|
|
113
|
+
.date-dialog { width: min(660px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--raised); color: var(--ink); overflow-y: auto; }
|
|
114
|
+
.date-dialog::backdrop { background: var(--scrim); }
|
|
115
|
+
.date-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--rule); }
|
|
116
|
+
.date-heading h2 { font-size: 22px; }
|
|
117
|
+
.date-body { display: grid; }
|
|
118
|
+
.date-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 12px; border-bottom: 1px solid var(--rule); }
|
|
119
|
+
.date-presets button { min-height: 44px; padding: 6px 8px; border: 0; border-radius: 3px; background: transparent; font-size: 13px; font-weight: 600; }
|
|
120
|
+
.date-presets button:hover { background: var(--paper-2); }
|
|
121
|
+
.date-presets button[aria-pressed='true'] { background: var(--ink); color: var(--paper); font-weight: 800; }
|
|
122
|
+
.date-calendar { min-width: 0; padding: 12px; }
|
|
123
|
+
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
|
|
124
|
+
.calendar-heading .button { width: 44px; padding: 0; border-color: transparent; font-size: 26px; }
|
|
125
|
+
.calendar-heading h3 { font-size: 17px; }
|
|
126
|
+
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
|
|
127
|
+
.calendar-weekdays { margin-bottom: 6px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
|
|
128
|
+
.calendar-day { min-height: 44px; padding: 0; border: 1px solid transparent; background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
129
|
+
.calendar-day.outside-month { color: var(--ink-2); font-weight: 400; }
|
|
130
|
+
.calendar-day[aria-current='date'] { text-decoration: underline; text-underline-offset: 5px; }
|
|
131
|
+
.calendar-day[aria-pressed='true'] { background: var(--paper-2); }
|
|
132
|
+
.calendar-day.range-start, .calendar-day.range-end { background: var(--accent-ink); color: var(--paper); font-weight: 800; }
|
|
133
|
+
.calendar-day.range-start { border-radius: 3px 0 0 3px; }
|
|
134
|
+
.calendar-day.range-end { border-radius: 0 3px 3px 0; }
|
|
135
|
+
.calendar-day:hover { border-color: var(--ink); }
|
|
136
|
+
.calendar-day:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
|
|
137
|
+
.date-help { min-height: 38px; margin-top: 12px; color: var(--ink-2); font-size: 12px; }
|
|
138
|
+
.date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
|
139
|
+
.date-fields label { display: grid; gap: 4px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
|
|
140
|
+
.date-fields input { width: 100%; min-width: 0; min-height: 44px; padding: 6px; border: 1px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 13px; }
|
|
141
|
+
.date-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px; border-top: 1px solid var(--rule); }
|
|
142
|
+
.date-footer p { flex-basis: 100%; margin-right: auto; color: var(--ink-2); font-size: 13px; font-weight: 600; }
|
|
143
|
+
@media (max-width: 359px) {
|
|
144
|
+
.date-dialog { width: calc(100% - 4px); }
|
|
145
|
+
.date-calendar { padding-inline: 2px; }
|
|
146
|
+
}
|
|
147
|
+
@media (min-width: 620px) {
|
|
148
|
+
.date-body { grid-template-columns: 170px minmax(0, 1fr); }
|
|
149
|
+
.date-presets { grid-template-columns: 1fr; align-content: start; border-bottom: 0; border-right: 1px solid var(--rule); }
|
|
150
|
+
.date-presets button { padding-inline: 12px; text-align: left; font-size: 14px; }
|
|
151
|
+
.date-calendar { padding: 20px; }
|
|
152
|
+
.date-footer p { flex: 1; }
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ic { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
|
|
156
|
+
.ic-claude { --icon: url('/icons/claude.svg'); }
|
|
157
|
+
.ic-codex { --icon: url('/icons/openai.svg'); }
|
|
158
|
+
.ic-opencode { --icon: url('/icons/opencode.svg'); }
|
|
159
|
+
.tx { display: inline-block; flex: none; width: 14px; height: 14px; box-shadow: inset 0 0 0 1.5px var(--ink); }
|
|
160
|
+
.tx-0 { background: var(--ink); }
|
|
161
|
+
.tx-1 { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 5px); }
|
|
162
|
+
.tx-2 { background: radial-gradient(var(--ink) 1.3px, transparent 1.7px) 0 0 / 5px 5px; }
|
|
163
|
+
.tx-3 { background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 5px), repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px); }
|
|
164
|
+
.tx-4 { background: color-mix(in srgb, var(--ink) 40%, transparent); }
|
|
165
|
+
.tx-5 { background: transparent; }
|
|
166
|
+
.filter-group button[aria-pressed='true'] .tx { background-color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
|
|
167
|
+
.filter-group button[aria-pressed='true'] .tx-0 { background: var(--paper); }
|
|
168
|
+
.filter-group button[aria-pressed='true'] .tx-1 { background: repeating-linear-gradient(135deg, var(--paper) 0 2px, transparent 2px 5px); }
|
|
169
|
+
.filter-group button[aria-pressed='true'] .tx-2 { background: radial-gradient(var(--paper) 1.3px, transparent 1.7px) 0 0 / 5px 5px; }
|
|
170
|
+
.filter-group button[aria-pressed='true'] .tx-3 { background: repeating-linear-gradient(0deg, var(--paper) 0 2px, transparent 2px 5px), repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 5px); }
|
|
171
|
+
.filter-group button[aria-pressed='true'] .tx-4 { background: color-mix(in srgb, var(--paper) 45%, transparent); }
|
|
172
|
+
.filter-group button[aria-pressed='true'] .tx-5 { background: transparent; }
|
|
173
|
+
|
|
174
|
+
.hero { display: grid; gap: 40px 64px; padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
|
|
175
|
+
@media (min-width: 1100px) { .hero { grid-template-columns: minmax(0, 1fr) 22rem; align-items: end; } }
|
|
176
|
+
#view-title { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
|
|
177
|
+
.range-label { font-weight: 500; color: var(--ink-2); }
|
|
178
|
+
.hero-number { margin-top: 12px; font-size: clamp(72px, 15vw, 224px); line-height: .86; font-weight: 800; letter-spacing: -.065em; }
|
|
179
|
+
.hero-number .unit { margin-left: .04em; color: var(--accent); }
|
|
180
|
+
.hero-detail { margin-top: 20px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
|
|
181
|
+
.insight { margin-top: 6px; max-width: 46ch; color: var(--ink-2); font-size: 16px; }
|
|
182
|
+
.insight:empty { display: none; }
|
|
183
|
+
.slip { border-top: 2px solid var(--ink); }
|
|
184
|
+
.slip > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
|
|
185
|
+
.slip dt { flex: 1; display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); font-weight: 600; }
|
|
186
|
+
.slip dt::after { content: ''; flex: 1; border-bottom: 2px dotted var(--ink-3); transform: translateY(-.28em); }
|
|
187
|
+
.slip dd { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
|
|
188
|
+
.slip-cost p { flex-basis: 100%; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
|
|
189
|
+
|
|
190
|
+
.composition { padding-bottom: clamp(48px, 6vw, 72px); }
|
|
191
|
+
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 18px; }
|
|
192
|
+
.section-head p { max-width: 52ch; color: var(--ink-2); font-size: 13px; }
|
|
193
|
+
.split { display: flex; gap: 2px; height: 48px; }
|
|
194
|
+
.split:empty { background: var(--paper-2); }
|
|
195
|
+
.seg { min-width: 2px; height: 100%; background: var(--ink); transform-origin: left; }
|
|
196
|
+
.t0 { background: color-mix(in srgb, var(--ink) 100%, transparent); }
|
|
197
|
+
.t1 { background: color-mix(in srgb, var(--ink) 72%, transparent); }
|
|
198
|
+
.t2 { background: color-mix(in srgb, var(--ink) 48%, transparent); }
|
|
199
|
+
.t3 { background: color-mix(in srgb, var(--ink) 28%, transparent); }
|
|
200
|
+
.t4 { background: color-mix(in srgb, var(--ink) 14%, transparent); box-shadow: inset 0 0 0 1px var(--ink-3); }
|
|
201
|
+
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; margin-top: 16px; }
|
|
202
|
+
.parts li { display: grid; grid-template-columns: 14px 1fr; gap: 0 8px; align-items: center; }
|
|
203
|
+
.parts .chip { width: 14px; height: 14px; }
|
|
204
|
+
.parts span { color: var(--ink-2); font-weight: 600; }
|
|
205
|
+
.parts strong { grid-column: 2; font-size: 22px; letter-spacing: -.03em; }
|
|
206
|
+
.parts em { grid-column: 2; font-style: normal; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
|
|
207
|
+
|
|
208
|
+
.band { display: grid; gap: 24px 56px; padding-block: clamp(36px, 5vw, 64px); border-top: 2px solid var(--ink); }
|
|
209
|
+
@media (min-width: 1000px) { .band { grid-template-columns: 14rem minmax(0, 1fr); } .band-label { position: sticky; top: 92px; align-self: start; } }
|
|
210
|
+
.band-label p:last-child { margin-top: 10px; max-width: 28ch; color: var(--ink-2); font-size: 13px; }
|
|
211
|
+
.band-label .index { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; font-weight: 800; letter-spacing: 0; }
|
|
212
|
+
.split-body { display: grid; gap: 40px 56px; }
|
|
213
|
+
@media (min-width: 1200px) { .split-body { grid-template-columns: minmax(0, 1fr) 17rem; } }
|
|
214
|
+
.note { margin-top: 12px; color: var(--ink-2); font-size: 13px; }
|
|
215
|
+
.empty { padding: 20px 0; max-width: 54ch; color: var(--ink-2); }
|
|
216
|
+
.empty .text-button { display: block; margin-top: 8px; }
|
|
217
|
+
|
|
218
|
+
.tape-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; min-height: 28px; margin-bottom: 36px; }
|
|
219
|
+
.tape-readout { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
|
|
220
|
+
.tape-readout span { color: var(--ink-2); font-weight: 500; }
|
|
221
|
+
.tape { position: relative; }
|
|
222
|
+
.tape-plot { position: relative; display: flex; align-items: flex-end; gap: 1px; height: clamp(150px, 22vw, 240px); border-bottom: 2px solid var(--ink); cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
|
|
223
|
+
.tape-plot:focus-visible { outline-offset: 8px; }
|
|
224
|
+
.tick { flex: 1 1 0; min-width: 0; height: var(--h); background: var(--ink); transform-origin: bottom; }
|
|
225
|
+
.tick.zero { height: 2px; background: var(--ink-3); }
|
|
226
|
+
.tick.peak { background: var(--accent); }
|
|
227
|
+
.veil { position: absolute; top: 0; bottom: 0; background: var(--veil); pointer-events: none; }
|
|
228
|
+
.pick { position: absolute; top: -10px; bottom: -2px; border-inline: 3px solid var(--accent); pointer-events: none; }
|
|
229
|
+
.pick::before, .pick::after { content: ''; position: absolute; top: 50%; width: 9px; height: 34px; margin-top: -17px; background: var(--accent); }
|
|
230
|
+
.pick::before { left: -3px; }
|
|
231
|
+
.pick::after { right: -3px; }
|
|
232
|
+
.cursor { position: absolute; top: -10px; bottom: 0; width: 1px; background: var(--ink); pointer-events: none; }
|
|
233
|
+
.peak-flag { position: absolute; top: -30px; white-space: nowrap; color: var(--accent-ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; pointer-events: none; }
|
|
234
|
+
.tape-axis { position: relative; height: 30px; margin-top: 8px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
|
|
235
|
+
.tape-axis span { position: absolute; top: 0; padding-left: 5px; border-left: 1px solid var(--ink-3); white-space: nowrap; }
|
|
236
|
+
.data-table { margin-top: 18px; }
|
|
237
|
+
.data-table summary { display: inline-block; min-height: 32px; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
|
|
238
|
+
.data-table[open] summary { margin-bottom: 12px; }
|
|
239
|
+
|
|
240
|
+
.tools { border-bottom: 1px solid var(--rule); }
|
|
241
|
+
.tool-row { display: block; width: 100%; padding: 18px 12px 20px; border: 0; border-top: 1px solid var(--rule); background: transparent; text-align: left; transition: background-color .15s; }
|
|
242
|
+
.tool-row:hover { background: var(--paper-2); }
|
|
243
|
+
.tool-row[aria-pressed='true'] { background: var(--raised); box-shadow: inset 0 0 0 2px var(--ink); }
|
|
244
|
+
.tool-row:focus-visible { position: relative; z-index: 1; }
|
|
245
|
+
.tool-head { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; }
|
|
246
|
+
.tool-head .name { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
|
|
247
|
+
.tool-head .state { padding: 0 6px; border: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
|
|
248
|
+
.tool-head strong { margin-left: auto; font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
|
|
249
|
+
.tool-row .bar, .tool-row .fill, .tool-meta { display: block; }
|
|
250
|
+
.bar { height: 18px; margin-top: 12px; background: var(--paper-2); }
|
|
251
|
+
.bar .fill { height: 100%; transform-origin: left; box-shadow: inset 0 0 0 1.5px var(--ink); }
|
|
252
|
+
.tool-meta { margin-top: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
253
|
+
.weekday h3 { margin-bottom: 14px; }
|
|
254
|
+
.weekday-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 170px; }
|
|
255
|
+
.wd { display: grid; grid-template-rows: 1fr auto; gap: 8px; min-width: 0; }
|
|
256
|
+
.wd-track { display: flex; align-items: flex-end; border-bottom: 2px solid var(--ink); }
|
|
257
|
+
.wd-bar { width: 100%; min-height: 2px; background: var(--ink); transform-origin: bottom; }
|
|
258
|
+
.wd.top .wd-bar { background: var(--accent); }
|
|
259
|
+
.wd-label { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
|
|
260
|
+
.wd.top .wd-label { color: var(--accent-ink); }
|
|
261
|
+
|
|
262
|
+
.projects { border-top: 1px solid var(--rule); }
|
|
263
|
+
.proj-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 5.5rem 3.5rem; grid-template-areas: 'rank name tokens share' '. bar bar bar'; gap: 8px 16px; align-items: baseline; padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
|
|
264
|
+
@media (min-width: 760px) { .proj-row { grid-template-columns: 2rem minmax(0, 15rem) minmax(0, 1fr) 5.5rem 3.5rem; grid-template-areas: 'rank name bar tokens share'; align-items: center; } }
|
|
265
|
+
.proj-rank { grid-area: rank; color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
266
|
+
.proj-name { grid-area: name; min-width: 0; display: flex; flex-direction: column; }
|
|
267
|
+
.proj-name .text-button { font-size: 16px; }
|
|
268
|
+
.proj-name .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 12px; }
|
|
269
|
+
.stack { grid-area: bar; display: flex; height: 20px; gap: 1px; }
|
|
270
|
+
.stack .part { height: 100%; min-width: 2px; transform-origin: left; box-shadow: inset 0 0 0 1.5px var(--ink); }
|
|
271
|
+
.proj-tokens { grid-area: tokens; text-align: right; font-size: 17px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
|
|
272
|
+
.proj-share { grid-area: share; text-align: right; color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
273
|
+
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
|
|
274
|
+
.legend li { display: inline-flex; align-items: center; gap: 8px; }
|
|
275
|
+
.legend:empty { display: none; }
|
|
276
|
+
#projects-more { margin-top: 18px; }
|
|
277
|
+
|
|
278
|
+
.heaviest { border-top: 1px solid var(--rule); }
|
|
279
|
+
.heavy-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 4px 12px; width: 100%; padding: 18px 8px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; align-items: baseline; transition: background-color .15s; }
|
|
280
|
+
@media (min-width: 760px) { .heavy-row { grid-template-columns: 2rem 12rem minmax(0, 1fr); gap: 20px; } }
|
|
281
|
+
.heavy-row:hover { background: var(--paper-2); }
|
|
282
|
+
.heavy-rank { color: var(--ink-2); font-size: 13px; font-weight: 700; }
|
|
283
|
+
.heavy-tokens { font-size: clamp(32px, 4.4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
|
|
284
|
+
.heavy-title { grid-column: 2; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
|
|
285
|
+
@media (min-width: 760px) { .heavy-title { grid-column: 3; } }
|
|
286
|
+
.heavy-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; color: var(--ink-2); font-size: 13px; }
|
|
287
|
+
@media (min-width: 760px) { .heavy-meta { grid-column: 3; } .heavy-title { grid-row: 1; } .heavy-meta { grid-row: 2; } .heavy-tokens { grid-row: 1 / span 2; align-self: center; } .heavy-rank { grid-row: 1 / span 2; align-self: center; } }
|
|
288
|
+
.heavy-meta .tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
|
|
289
|
+
|
|
290
|
+
.page-head { padding-block: clamp(36px, 6vw, 72px) 28px; }
|
|
291
|
+
.page-head h1 { font-size: clamp(48px, 9vw, 112px); line-height: .9; font-weight: 800; letter-spacing: -.065em; }
|
|
292
|
+
.page-head p { margin-top: 16px; max-width: 54ch; color: var(--ink-2); font-size: 16px; }
|
|
293
|
+
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; padding-block: 16px; border-top: 2px solid var(--ink); }
|
|
294
|
+
.search { display: grid; gap: 4px; flex: 1 1 18rem; max-width: 34rem; font-size: 12px; font-weight: 700; color: var(--ink-2); }
|
|
295
|
+
.search input { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--raised); color: var(--ink); font-size: 15px; font-weight: 500; }
|
|
296
|
+
.search input::placeholder { color: var(--ink-2); opacity: 1; }
|
|
297
|
+
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0 14px; color: var(--ink-2); font-weight: 600; }
|
|
298
|
+
.chip-row strong { color: var(--ink); }
|
|
299
|
+
|
|
300
|
+
table { width: 100%; border-collapse: collapse; }
|
|
301
|
+
th { padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); text-align: left; font-size: 12px; font-weight: 800; color: var(--ink-2); }
|
|
302
|
+
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
|
|
303
|
+
th.numeric, td.numeric { text-align: right; padding-right: 0; padding-left: 12px; }
|
|
304
|
+
tbody tr:hover { background: var(--paper-2); }
|
|
305
|
+
.session-title-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
306
|
+
.session-title-cell .text-button { font-size: 15px; }
|
|
307
|
+
.cell-detail { color: var(--ink-2); font-size: 12px; }
|
|
308
|
+
.mobile-session-meta { display: none; color: var(--ink-2); font-size: 12px; font-weight: 600; }
|
|
309
|
+
.tool-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
|
|
310
|
+
.token-cell { display: grid; justify-items: end; gap: 6px; min-width: 6.5rem; }
|
|
311
|
+
.token-cell strong { font-size: 16px; letter-spacing: -.02em; }
|
|
312
|
+
.mini { width: 100%; height: 5px; background: var(--paper-2); }
|
|
313
|
+
.mini span { display: block; height: 100%; background: var(--ink); }
|
|
314
|
+
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
|
|
315
|
+
.pager p { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
|
|
316
|
+
.pager div { display: flex; gap: 8px; }
|
|
317
|
+
|
|
318
|
+
.sources { border-top: 2px solid var(--ink); }
|
|
319
|
+
.sources td { padding-block: 16px; }
|
|
320
|
+
.source-path { display: block; max-width: 56ch; color: var(--ink-2); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
|
|
321
|
+
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
|
|
322
|
+
.status::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--ink); }
|
|
323
|
+
.status.detected::before { background: var(--ink); }
|
|
324
|
+
.issues { margin-top: 40px; padding: 20px; border: 1.5px solid var(--accent-ink); }
|
|
325
|
+
.issues h2 { color: var(--accent-ink); font-size: 18px; }
|
|
326
|
+
.issues p { margin-top: 4px; color: var(--ink-2); }
|
|
327
|
+
.issues ul { margin-top: 12px; display: grid; gap: 6px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; }
|
|
328
|
+
|
|
329
|
+
.colophon { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 28px 32px; border-top: 2px solid var(--ink); color: var(--ink-2); font-size: 13px; font-weight: 600; }
|
|
330
|
+
main { padding-bottom: 56px; }
|
|
331
|
+
|
|
332
|
+
dialog.drawer { width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 2px solid var(--ink); background: var(--raised); color: var(--ink); overflow-y: auto; }
|
|
333
|
+
dialog.drawer::backdrop { background: var(--scrim); }
|
|
334
|
+
.drawer-body { padding: 20px clamp(20px, 4vw, 36px) 40px; }
|
|
335
|
+
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
|
|
336
|
+
.drawer-tool { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
|
|
337
|
+
.drawer h2 { font-size: clamp(22px, 4vw, 28px); letter-spacing: -.04em; line-height: 1.12; }
|
|
338
|
+
.drawer-number { margin: 24px 0 16px; font-size: clamp(56px, 12vw, 88px); line-height: .9; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
|
|
339
|
+
.drawer-number small { margin-left: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
|
|
340
|
+
.drawer .split { height: 28px; }
|
|
341
|
+
.details { margin-top: 28px; border-top: 2px solid var(--ink); }
|
|
342
|
+
.details > div { display: grid; grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
|
|
343
|
+
.details dt { color: var(--ink-2); font-weight: 600; }
|
|
344
|
+
.details dd { font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
345
|
+
.details .swatch { display: inline-block; vertical-align: -1px; width: 11px; height: 11px; margin-right: 8px; }
|
|
346
|
+
|
|
347
|
+
@media (max-width: 899px) {
|
|
348
|
+
.masthead { gap: 4px 16px; }
|
|
349
|
+
.views { order: 3; flex-basis: 100%; gap: 22px; }
|
|
350
|
+
.scope { margin-left: 0; flex-basis: 100%; }
|
|
351
|
+
.session-table thead, .session-table th:nth-child(2), .session-table td:nth-child(2), .session-table th:nth-child(3), .session-table td:nth-child(3), .session-table th:nth-child(5), .session-table td:nth-child(5) { display: none; }
|
|
352
|
+
.mobile-session-meta { display: block; }
|
|
353
|
+
.sources-table th:nth-child(4), .sources-table td:nth-child(4) { display: none; }
|
|
354
|
+
}
|
|
355
|
+
@media (max-width: 540px) {
|
|
356
|
+
.masthead-actions { flex-basis: 100%; margin-left: 0; }
|
|
357
|
+
.masthead-actions .button { flex: 1; }
|
|
358
|
+
.tool-head strong { flex-basis: 100%; margin-left: 0; }
|
|
359
|
+
.details > div { grid-template-columns: 1fr; gap: 0; }
|
|
360
|
+
.sources-table thead { display: none; }
|
|
361
|
+
.sources-table, .sources-table tbody, .sources-table tr, .sources-table td { display: block; }
|
|
362
|
+
.sources-table td { padding: 0; border: 0; }
|
|
363
|
+
.sources-table tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
|
|
364
|
+
.sources-table td + td { margin-top: 4px; }
|
|
365
|
+
}
|
|
366
|
+
@media (prefers-reduced-motion: reduce) {
|
|
367
|
+
*, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
|
|
368
|
+
.progress span { width: 100%; animation: none; opacity: .5; }
|
|
369
|
+
}
|