4a8abcfString of beads: 3D bead-spring solver, control panel, waveform, spectrogram, wav, displacement viewerJeremy Magland 1:root {
2 color-scheme: light;
3 --page: #f4f3f0;
4 --surface-1: #fcfcfb;
5 --border: #e2e0da;
6 --text-primary: #0b0b0b;
7 --text-secondary: #52514e;
8 --text-muted: #77756f;
9 --grid: #ecebe7;
10 --axis: #b9b7b0;
11 --accent: #2a78d6;
12 --accent-ink: #ffffff;
13 --warn-bg: #fdf3dc;
14 --warn-ink: #6b4a00;
15 --series-1: #2a78d6;
16 --series-2: #eb6834;
d2bfcd73D model view: setup (supports, pins, excitation, pickup) and replay of saved frames on a shared timelineJeremy Magland 17 --series-3: #1baf7a;
4a8abcfString of beads: 3D bead-spring solver, control panel, waveform, spectrogram, wav, displacement viewerJeremy Magland 18 --ramp: #fcfcfb, #cde2fb, #86b6ef, #3987e5, #1c5cab, #0d366b;
19 --diverging: #1c5cab, #86b6ef, #f0efec, #f0a3a2, #b42d2c;
20}
21@media (prefers-color-scheme: dark) {
22 :root:not([data-theme='light']) {
23 color-scheme: dark;
24 --page: #121211;
25 --surface-1: #1a1a19;
26 --border: #2f2f2c;
27 --text-primary: #ffffff;
28 --text-secondary: #c3c2b7;
29 --text-muted: #94938a;
30 --grid: #262624;
31 --axis: #4a4a46;
32 --accent: #3987e5;
33 --warn-bg: #3a2e12;
34 --warn-ink: #f3d18a;
35 --series-1: #3987e5;
36 --series-2: #d95926;
d2bfcd73D model view: setup (supports, pins, excitation, pickup) and replay of saved frames on a shared timelineJeremy Magland 37 --series-3: #199e70;
4a8abcfString of beads: 3D bead-spring solver, control panel, waveform, spectrogram, wav, displacement viewerJeremy Magland 38 --ramp: #1a1a19, #104281, #1c5cab, #3987e5, #86b6ef, #cde2fb;
39 --diverging: #6da7ec, #1c5cab, #383835, #a83434, #e66767;
40 }
41}
42:root[data-theme='dark'] {
43 color-scheme: dark;
44 --page: #121211;
45 --surface-1: #1a1a19;
46 --border: #2f2f2c;
47 --text-primary: #ffffff;
48 --text-secondary: #c3c2b7;
49 --text-muted: #94938a;
50 --grid: #262624;
51 --axis: #4a4a46;
52 --accent: #3987e5;
53 --warn-bg: #3a2e12;
54 --warn-ink: #f3d18a;
55 --series-1: #3987e5;
56 --series-2: #d95926;
d2bfcd73D model view: setup (supports, pins, excitation, pickup) and replay of saved frames on a shared timelineJeremy Magland 57 --series-3: #199e70;
4a8abcfString of beads: 3D bead-spring solver, control panel, waveform, spectrogram, wav, displacement viewerJeremy Magland 58 --ramp: #1a1a19, #104281, #1c5cab, #3987e5, #86b6ef, #cde2fb;
59 --diverging: #6da7ec, #1c5cab, #383835, #a83434, #e66767;
60}
62* { box-sizing: border-box; }
a302473Phone fixes: fit 3D camera to narrow views, hide [hidden] buttons, touch hintsJeremy Magland 63[hidden] { display: none ; }
4a8abcfString of beads: 3D bead-spring solver, control panel, waveform, spectrogram, wav, displacement viewerJeremy Magland 64body {
65 margin: 0;
66 background: var(--page);
67 color: var(--text-primary);
68 font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif;
69}
70h1 { font-size: 22px; margin: 4px 0 8px; }
71h2 { font-size: 15px; margin: 0 0 10px; }
72a { color: var(--accent); }
73.sub { color: var(--text-secondary); margin: 0 0 12px; }
74.note { color: var(--text-muted); font-size: 12px; margin: 6px 0 0; }
75.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; font-size: 12px; }
77.hero { max-width: 1100px; margin: 32px auto 8px; padding: 0 16px; }
78.gallery {
79 max-width: 1100px; margin: 0 auto 32px; padding: 0 16px;
80 display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
81}
82.tile {
83 display: block; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px;
84 padding: 16px; color: inherit; text-decoration: none; position: relative;
85}
86.tile:not(.soon):hover { border-color: var(--accent); }
87.tile p { color: var(--text-secondary); margin: 0; }
88.tile.soon { opacity: 0.6; cursor: default; }
89.badge { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
91.instrument { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; padding: 16px; max-width: 1500px; margin: 0 auto; }
92@media (max-width: 860px) { .instrument { grid-template-columns: 1fr; padding: 16px; } }
93.panel {
94 background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
95 align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto;
96}
97@media (max-width: 860px) { .panel { position: static; max-height: none; } }
98.back { font-size: 13px; text-decoration: none; }
99fieldset { border: none; border-top: 1px solid var(--border); margin: 10px 0 0; padding: 8px 0 0; }
100legend { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); padding: 0 6px 0 0; }
101.ctl { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 5px 0; }
102.ctl[hidden] { display: none; }
103.ctl-name { color: var(--text-secondary); font-size: 13px; }
104.ctl-unit { color: var(--text-muted); font-size: 12px; min-width: 34px; }
105.ctl.preset { grid-template-columns: 60px minmax(0, 1fr); }
106input, select {
107 font: inherit; font-size: 13px; color: var(--text-primary); background: var(--page);
108 border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; min-width: 0; width: 100%;
109}
110.inline select { width: auto; }
111input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
112.btn, .btn-small {
113 font: inherit; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block;
114}
115.btn { background: var(--accent); color: var(--accent-ink); border: none; padding: 8px 16px; font-weight: 600; }
116.btn:disabled { opacity: 0.5; cursor: default; }
117.btn-small { background: transparent; color: var(--text-primary); border: 1px solid var(--border); padding: 4px 10px; font-size: 13px; }
b51a77aShared result cache on artifact-cache: offer a cached result for the current settings next to Run; store runs when a passcode is setJeremy Magland 118.run-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
119.run-row > * { white-space: nowrap; }
a9ca16bCymbal defaults to bow and bell with a 1 m/s stick; Run button at the top of the panelJeremy Magland 120.run-row.top { margin-top: 4px; }
a78afe0Add WebGPU solver with a toggle; faster CPU solverJeremy Magland 121.gpu-toggle { margin-left: auto; }
4a8abcfString of beads: 3D bead-spring solver, control panel, waveform, spectrogram, wav, displacement viewerJeremy Magland 122progress { width: 100%; margin-top: 8px; accent-color: var(--accent); }
124.results { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
125.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 14px; min-width: 0; }
126.card[hidden] { display: none; }
127.card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
128.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
129.stats div { display: flex; flex-direction: column; }
130.stats span { color: var(--text-muted); font-size: 12px; }
131.stats b { font-weight: 600; font-variant-numeric: tabular-nums; }
132.warnings { margin: 10px 0 0; padding: 0; list-style: none; }
133.warnings li { background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 6px 10px; margin-top: 6px; font-size: 13px; }
134.warnings li::before { content: '⚠ '; }
135.audio-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
136audio { max-width: 100%; }
138.canvas-wrap { position: relative; height: 220px; }
139.canvas-wrap.tall { height: 320px; }
140.canvas-wrap.short { height: 170px; }
141.canvas-wrap canvas { width: 100%; height: 100%; display: block; }
142.tooltip {
143 position: absolute; pointer-events: none; white-space: pre; font-size: 12px; line-height: 1.4;
144 background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border);
145 border-radius: 6px; padding: 4px 8px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.15); font-variant-numeric: tabular-nums;
146}
147.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
148.seg button { font: inherit; font-size: 12px; background: transparent; color: var(--text-secondary); border: none; padding: 3px 10px; cursor: pointer; }
149.seg button.on { background: var(--accent); color: var(--accent-ink); }
150.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }
151.legend .sw { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
152.legend .dash { display: inline-block; width: 0; height: 12px; border-left: 2px dashed; vertical-align: middle; margin-right: 5px; }
153.viewer-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
154.viewer-bar input[type='range'] { flex: 1; min-width: 140px; padding: 0; border: none; background: none; accent-color: var(--accent); }
155.inline { font-size: 12px; color: var(--text-secondary); display: inline-flex; gap: 6px; align-items: center; }
d2bfcd73D model view: setup (supports, pins, excitation, pickup) and replay of saved frames on a shared timelineJeremy Magland 156
157.scene-wrap { position: relative; height: 420px; margin-top: 10px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
158.scene-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
159@media (max-width: 860px) { .scene-wrap { height: 300px; } }
160.scene-legend { margin-top: 8px; }
161.glyph { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
162.glyph.dot { border-radius: 50%; }
163.glyph.ring { background: transparent; border: 2px solid var(--c); border-radius: 50%; }
164.glyph.dash { height: 0; width: 14px; background: transparent; border-top: 2px dashed var(--c); vertical-align: middle; }
165.glyph.arrow { height: 2px; width: 12px; vertical-align: middle; position: relative; }
166.glyph.arrow::after { content: ''; position: absolute; right: -4px; top: -3px; border-left: 5px solid var(--c); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
167.seg button:disabled { opacity: 0.45; cursor: default; }
168.btn-small.icon { padding: 4px 8px; }
169.viewer-bar[hidden] { display: none; }
2cd36faBead drum: hex-lattice round head, felt mallet contact, top view and cross-section; shared instrument pageJeremy Magland 170.membrane-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: center; }
171@media (max-width: 1100px) { .membrane-row { grid-template-columns: 1fr; } }
172.map-wrap { position: relative; aspect-ratio: 1; max-width: 100%; max-height: 420px; }
173.map-wrap canvas { width: 100%; height: 100%; display: block; }
174.profile-wrap { height: 260px; }
b51a77aShared result cache on artifact-cache: offer a cached result for the current settings next to Run; store runs when a passcode is setJeremy Magland 175
176.cache-ctl { margin-top: 10px; font-size: 13px; }
177.cache-ctl summary { cursor: pointer; color: var(--text-secondary); }
178.cache-form { display: flex; gap: 6px; margin-top: 6px; }