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;
17 --ramp: #fcfcfb, #cde2fb, #86b6ef, #3987e5, #1c5cab, #0d366b;
18 --diverging: #1c5cab, #86b6ef, #f0efec, #f0a3a2, #b42d2c;
19}
20@media (prefers-color-scheme: dark) {
21 :root:not([data-theme='light']) {
22 color-scheme: dark;
23 --page: #121211;
24 --surface-1: #1a1a19;
25 --border: #2f2f2c;
26 --text-primary: #ffffff;
27 --text-secondary: #c3c2b7;
28 --text-muted: #94938a;
29 --grid: #262624;
30 --axis: #4a4a46;
31 --accent: #3987e5;
32 --warn-bg: #3a2e12;
33 --warn-ink: #f3d18a;
34 --series-1: #3987e5;
35 --series-2: #d95926;
36 --ramp: #1a1a19, #104281, #1c5cab, #3987e5, #86b6ef, #cde2fb;
37 --diverging: #6da7ec, #1c5cab, #383835, #a83434, #e66767;
38 }
39}
40:root[data-theme='dark'] {
41 color-scheme: dark;
42 --page: #121211;
43 --surface-1: #1a1a19;
44 --border: #2f2f2c;
45 --text-primary: #ffffff;
46 --text-secondary: #c3c2b7;
47 --text-muted: #94938a;
48 --grid: #262624;
49 --axis: #4a4a46;
50 --accent: #3987e5;
51 --warn-bg: #3a2e12;
52 --warn-ink: #f3d18a;
53 --series-1: #3987e5;
54 --series-2: #d95926;
55 --ramp: #1a1a19, #104281, #1c5cab, #3987e5, #86b6ef, #cde2fb;
56 --diverging: #6da7ec, #1c5cab, #383835, #a83434, #e66767;
57}
59* { box-sizing: border-box; }
60body {
61 margin: 0;
62 background: var(--page);
63 color: var(--text-primary);
64 font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif;
65}
66h1 { font-size: 22px; margin: 4px 0 8px; }
67h2 { font-size: 15px; margin: 0 0 10px; }
68a { color: var(--accent); }
69.sub { color: var(--text-secondary); margin: 0 0 12px; }
70.note { color: var(--text-muted); font-size: 12px; margin: 6px 0 0; }
71.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; font-size: 12px; }
73.hero { max-width: 1100px; margin: 32px auto 8px; padding: 0 16px; }
74.gallery {
75 max-width: 1100px; margin: 0 auto 32px; padding: 0 16px;
76 display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
77}
78.tile {
79 display: block; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px;
80 padding: 16px; color: inherit; text-decoration: none; position: relative;
81}
82.tile:not(.soon):hover { border-color: var(--accent); }
83.tile p { color: var(--text-secondary); margin: 0; }
84.tile.soon { opacity: 0.6; cursor: default; }
85.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; }
87.instrument { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; padding: 16px; max-width: 1500px; margin: 0 auto; }
88@media (max-width: 860px) { .instrument { grid-template-columns: 1fr; padding: 16px; } }
89.panel {
90 background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
91 align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto;
92}
93@media (max-width: 860px) { .panel { position: static; max-height: none; } }
94.back { font-size: 13px; text-decoration: none; }
95fieldset { border: none; border-top: 1px solid var(--border); margin: 10px 0 0; padding: 8px 0 0; }
96legend { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); padding: 0 6px 0 0; }
97.ctl { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 5px 0; }
98.ctl[hidden] { display: none; }
99.ctl-name { color: var(--text-secondary); font-size: 13px; }
100.ctl-unit { color: var(--text-muted); font-size: 12px; min-width: 34px; }
101.ctl.preset { grid-template-columns: 60px minmax(0, 1fr); }
102input, select {
103 font: inherit; font-size: 13px; color: var(--text-primary); background: var(--page);
104 border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; min-width: 0; width: 100%;
105}
106.inline select { width: auto; }
107input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
108.btn, .btn-small {
109 font: inherit; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block;
110}
111.btn { background: var(--accent); color: var(--accent-ink); border: none; padding: 8px 16px; font-weight: 600; }
112.btn:disabled { opacity: 0.5; cursor: default; }
113.btn-small { background: transparent; color: var(--text-primary); border: 1px solid var(--border); padding: 4px 10px; font-size: 13px; }
114.run-row { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
115progress { width: 100%; margin-top: 8px; accent-color: var(--accent); }
117.results { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
118.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 14px; min-width: 0; }
119.card[hidden] { display: none; }
120.card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
121.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
122.stats div { display: flex; flex-direction: column; }
123.stats span { color: var(--text-muted); font-size: 12px; }
124.stats b { font-weight: 600; font-variant-numeric: tabular-nums; }
125.warnings { margin: 10px 0 0; padding: 0; list-style: none; }
126.warnings li { background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 6px 10px; margin-top: 6px; font-size: 13px; }
127.warnings li::before { content: '⚠ '; }
128.audio-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
129audio { max-width: 100%; }
131.canvas-wrap { position: relative; height: 220px; }
132.canvas-wrap.tall { height: 320px; }
133.canvas-wrap.short { height: 170px; }
134.canvas-wrap canvas { width: 100%; height: 100%; display: block; }
135.tooltip {
136 position: absolute; pointer-events: none; white-space: pre; font-size: 12px; line-height: 1.4;
137 background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border);
138 border-radius: 6px; padding: 4px 8px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.15); font-variant-numeric: tabular-nums;
139}
140.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
141.seg button { font: inherit; font-size: 12px; background: transparent; color: var(--text-secondary); border: none; padding: 3px 10px; cursor: pointer; }
142.seg button.on { background: var(--accent); color: var(--accent-ink); }
143.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }
144.legend .sw { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
145.legend .dash { display: inline-block; width: 0; height: 12px; border-left: 2px dashed; vertical-align: middle; margin-right: 5px; }
146.viewer-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
147.viewer-bar input[type='range'] { flex: 1; min-width: 140px; padding: 0; border: none; background: none; accent-color: var(--accent); }
148.inline { font-size: 12px; color: var(--text-secondary); display: inline-flex; gap: 6px; align-items: center; }