1e29264cymsimweb: WebGPU companion of cymsim with YAML/form editor, live spectrogram and playbackJeremy Magland 1:root { --bg: #14161a; --panel: #1d2026; --border: #2c3038; --text: #e6e6e6; --muted: #9aa0a8; --accent: #e0a23a; --danger: #d9534f; }
2* { box-sizing: border-box; }
3html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.4 system-ui, sans-serif; }
4#app { display: grid; grid-template-columns: 420px 1fr; height: 100vh; }
5#sidebar { background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
6#sidebar header { padding: 10px 12px 4px; }
7#sidebar h1 { margin: 0; font-size: 18px; display: inline; }
8.subtitle { color: var(--muted); margin-left: 8px; }
9.run { padding: 6px 12px; border-bottom: 1px solid var(--border); }
10.row { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
11.row label { display: flex; gap: 6px; align-items: center; flex: 1; }
12.row select { flex: 1; }
13.buttons button { flex: 1; }
14button { background: #2a2e36; color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 5px 10px; cursor: pointer; }
15button:hover:not(:disabled) { background: #343943; }
16button:disabled { opacity: 0.45; cursor: default; }
17button.primary { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
18select, input[type="text"], input[type="number"] { background: #111318; color: var(--text); border: 1px solid var(--border); border-radius: 3px; padding: 3px 5px; }
19progress { flex: 1; height: 10px; }
20.muted { color: var(--muted); }
21.tabs { display: flex; border-bottom: 1px solid var(--border); }
22.tabs button { flex: 1; border: none; border-radius: 0; background: transparent; padding: 6px; color: var(--muted); }
23.tabs button.active { color: var(--text); border-bottom: 2px solid var(--accent); }
24.tab { flex: 1; min-height: 0; overflow: auto; }
25.tab.hidden { display: none; }
26#editor { height: 100%; }
27#editor .cm-editor { height: 100%; font-size: 12px; }
28#editor .cm-scroller { font-family: ui-monospace, Menlo, Consolas, monospace; }
29#issues { list-style: none; margin: 0; padding: 4px 12px; max-height: 120px; overflow: auto; border-top: 1px solid var(--border); font-size: 12px; }
30#issues li { color: var(--danger); }
31#issues li.ok { color: #6fbf73; }
32#issues code { color: var(--text); }
33#form { padding: 6px 10px; }
34#form details { margin-bottom: 4px; }
35#form summary { cursor: pointer; font-weight: 600; padding: 3px 0; }
36#form .grid { display: grid; grid-template-columns: 1fr 120px; gap: 3px 8px; align-items: center; padding: 2px 0 6px 10px; }
37#form .grid label { color: var(--muted); }
38#form .grid label span.unit { color: #6d737b; margin-left: 4px; }
39#form .hit { border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; margin: 4px 0; }
40#form .hit .head { display: flex; justify-content: space-between; align-items: center; }
41#form input[type="number"] { width: 100%; }
42#summary { padding: 6px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap; }
43main { display: grid; grid-template-rows: 1fr 1fr auto auto; min-height: 0; }
44main section { min-height: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
45.toolbar { display: flex; gap: 14px; align-items: center; padding: 4px 10px; font-weight: 600; }
46.toolbar label { font-weight: normal; color: var(--muted); display: flex; gap: 6px; align-items: center; }
47canvas { flex: 1; width: 100%; height: 100%; display: block; min-height: 0; }
48#playback { flex-direction: row; align-items: center; gap: 10px; padding: 6px 10px; }
49#playback #position { flex: 1; }
50#playback label { color: var(--muted); display: flex; gap: 6px; align-items: center; }
51#readouts { padding: 6px 10px; max-height: 190px; overflow: auto; font-size: 12px; }
52#readouts table { border-collapse: collapse; margin-right: 24px; display: inline-table; vertical-align: top; }
53#readouts th, #readouts td { padding: 1px 8px; text-align: right; border-bottom: 1px solid var(--border); }
54#readouts th { color: var(--muted); font-weight: normal; }
55#readouts .log { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--muted); white-space: pre-wrap; margin-top: 4px; }
56@media (max-width: 900px) { #app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } #sidebar { max-height: 45vh; } }