46256e7Marimba lab: per-key tuned bars, coupled resonator tubes, SoundFont exportJeremy Magland 1:root {
2 --bg: #f6f4f0; --panel: #ffffff; --fg: #1d1b18; --muted: #6f6a62; --line: #e2ddd4;
3 --accent: #a0522d; --grid: #ebe6dd; --mark: #b8b0a2;
4 --c-modal: #c2410c; --warn: #b45309; --tube: #b08d2e; --ok: #15803d;
5 color-scheme: light dark;
6}
7@media (prefers-color-scheme: dark) {
8 :root {
9 --bg: #151412; --panel: #1e1c19; --fg: #ece8e1; --muted: #9a948a; --line: #34302b;
10 --accent: #e0915c; --grid: #2a2723; --mark: #5c564e;
11 --c-modal: #fb923c; --warn: #fbbf24; --tube: #d6b35a; --ok: #4ade80;
12 }
13}
14* { box-sizing: border-box; }
15html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 13px/1.4 system-ui, -apple-system, sans-serif; }
16main { display: grid; grid-template-columns: 1fr 340px; height: 100vh; }
17.stage { display: grid; grid-template-rows: 1fr auto auto; grid-template-columns: minmax(0, 1fr); min-width: 0; position: relative; }
18#view { min-height: 300px; position: relative; overflow: hidden; }
19#view canvas { position: absolute; inset: 0; }
20.hint { position: absolute; top: 10px; left: 14px; color: var(--muted); font-size: 12px; pointer-events: none; }
21.plots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; border-top: 1px solid var(--line); }
22.plot { min-width: 0; }
23.plot canvas { width: 100%; height: 170px; display: block; }
24.ptitle { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
25select.inline { font-size: 11px; padding: 0 2px; }
26.panel { background: var(--panel); border-left: 1px solid var(--line); padding: 14px 16px; overflow-y: auto; }
27h1 { font-size: 17px; margin: 0 0 10px; }
28h2 { font-size: 13px; margin: 18px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
29h2 small { color: var(--muted); font-weight: 400; margin-left: 6px; }
30.row { display: grid; grid-template-columns: 130px 1fr 64px; align-items: center; gap: 8px; margin: 3px 0; }
31.row .lab { color: var(--muted); font-size: 12px; }
32.row .val { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }
33input[type=range] { width: 100%; accent-color: var(--accent); }
34input[type=text] { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font: inherit; }
35select { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 4px; }
36.actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
37button { background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: 7px 11px; font: inherit; font-weight: 600; cursor: pointer; }
38button:disabled { opacity: 0.45; cursor: default; }
39button.small { padding: 2px 8px; font-size: 12px; background: var(--muted); }
40.progress { height: 4px; background: var(--grid); border-radius: 2px; overflow: hidden; margin-top: 8px; }
41#bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
42.status { min-height: 36px; margin-top: 6px; font-size: 12px; color: var(--muted); }
43.kv { display: flex; justify-content: space-between; font-size: 12px; margin: 2px 0 4px; }
44.muted { color: var(--muted); }
45.info { font-size: 11px; color: var(--muted); margin: 6px 0; font-variant-numeric: tabular-nums; }
46.warn { color: var(--warn); font-size: 12px; margin: 4px 0; }
47.warn:empty { display: none; }
48h1 .muted { font-weight: 400; font-size: 14px; }
49.keys { position: relative; height: 62px; margin: 0 10px 8px; }
50.key { position: absolute; padding: 0; border-radius: 3px; font-size: 9px; font-weight: 500; color: #f3e6dc;
51 display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; border: 1px solid rgba(0,0,0,0.25); }
52.key.nat { top: 26px; height: 36px; background: #7a3522; }
53.key.acc { top: 0; height: 24px; background: #5a2416; z-index: 1; }
54.key:hover { filter: brightness(1.25); }
55.key.sel { background: var(--accent); outline: 2px solid var(--fg); z-index: 2; }
56.key.edited::before { content: ''; position: absolute; top: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fbbf24; }
57input[type=checkbox] { accent-color: var(--accent); justify-self: start; }
58table.partials { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; margin: 6px 0; }
59table.partials th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11px; }
60table.partials td, table.partials th { padding: 1px 4px 1px 0; }
61.ok { color: var(--ok); }
62.bad { color: var(--warn); }
63@media (max-width: 800px) {
64 main { grid-template-columns: 1fr; height: auto; }
65 .stage { grid-template-rows: 55vh auto auto; }
66 .plots { grid-template-columns: 1fr; padding: 10px 16px; }
67 .panel { border-left: 0; border-top: 1px solid var(--line); padding: 14px 16px; }
68}