1:root {
2 --bg: #f6f5f2; --panel: #ffffff; --fg: #1d1c1a; --muted: #6b6760; --line: #dedad2; --grid: #ebe8e1;
3 --accent: #8a4b14; --sim: #c0611a; --ref: #3a6ea5; --alt: #2e8b57; --mark: #b9b2a5;
4 --key-white: #fffdf8; --key-black: #26231f; --sel: #f0b37a;
5 color-scheme: light;
6}
7@media (prefers-color-scheme: dark) {
8 :root:not([data-theme="light"]) {
9 --bg: #161513; --panel: #1f1e1b; --fg: #ece8e1; --muted: #a29d93; --line: #34312c; --grid: #2a2824;
10 --accent: #e39a55; --sim: #f08a3c; --ref: #6fa4dc; --alt: #5cc08a; --mark: #5a554c;
11 --key-white: #e9e5dc; --key-black: #0e0d0c; --sel: #c77a3a;
12 color-scheme: dark;
13 }
14}
15* { box-sizing: border-box; }
16html, body { margin: 0; height: 100%; }
17body { background: var(--bg); color: var(--fg); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
18button, select, input { font: inherit; color: inherit; }
19button { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
20button:hover:not(:disabled) { border-color: var(--accent); }
21button:disabled { opacity: 0.45; cursor: default; }
22button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
23button.small { padding: 1px 7px; font-size: 12px; }
24select, input[type="text"] { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; }
25code { font-size: 12px; background: var(--grid); padding: 1px 4px; border-radius: 4px; }
27header { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
28header h1 { font-size: 16px; margin: 0; white-space: nowrap; }
29header h1 span { color: var(--muted); font-weight: 400; }
30.status { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
31.status.err { color: #c0392b; }
32.hbtns { display: flex; gap: 6px; }
34.main { display: grid; grid-template-columns: 360px 1fr; height: calc(100% - 45px); }
35aside { overflow-y: auto; border-right: 1px solid var(--line); padding: 6px 10px 40px; background: var(--panel); }
36.grp { border-bottom: 1px solid var(--line); padding: 4px 0; }
37.grp summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
38.prow { display: grid; grid-template-columns: 112px 1fr 66px 40px; align-items: center; gap: 6px; padding: 1px 0; }
39.prow .plabel { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
40.prow input[type="range"] { width: 100%; accent-color: var(--accent); }
41.prow .num, .lowmodes .num { width: 100%; text-align: right; font-variant-numeric: tabular-nums; }
42.prow .unit { color: var(--muted); font-size: 11px; }
43.prow select { grid-column: span 2; }
44.sub { color: var(--muted); font-size: 12px; margin: 4px 0; }
45.lowmodes table { width: 100%; border-collapse: collapse; }
46.lowmodes th { font-weight: 500; color: var(--muted); font-size: 11px; text-align: right; }
47.lowmodes td { padding: 1px; }
48.lowmodes .num { width: 52px; }
49.btnrow { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
51.work { overflow-y: auto; padding: 10px 16px 40px; min-width: 0; }
52.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
53.transport label { display: flex; align-items: center; gap: 5px; color: var(--muted); }
54.transport input[type="range"] { width: 110px; accent-color: var(--accent); }
55.noteinfo { flex-basis: 100%; }
56.noteinfo b { font-size: 15px; margin-right: 8px; }
57.noteinfo span { color: var(--muted); }
58#velV { width: 26px; color: var(--fg); font-variant-numeric: tabular-nums; }
60#keyboard { position: relative; height: 110px; margin: 10px 0 4px; user-select: none; touch-action: none; }
61.key { position: absolute; top: 0; border: 1px solid var(--line); border-radius: 0 0 4px 4px; cursor: pointer; }
62.key.white { height: 100%; background: var(--key-white); z-index: 1; border-color: #b8b2a6; }
63.key.black { height: 62%; background: var(--key-black); z-index: 2; border-color: #000; }
64.key.ext.white { background: color-mix(in srgb, var(--key-white) 85%, var(--ref)); }
65.key.sel.white, .key.sel.black { background: var(--sel); }
66.key.down { filter: brightness(0.8); }
67.key span { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 10px; color: #6b6760; }
68.key .root { position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
69.key.black .root { background: var(--sel); }
70.progress { height: 3px; background: var(--grid); border-radius: 2px; overflow: hidden; }
71#prog { height: 100%; width: 0; background: var(--accent); transition: width 0.1s; }
72.mix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0; }
73.mix label { display: flex; align-items: center; gap: 5px; color: var(--muted); }
74.mix input[type="range"] { width: 120px; accent-color: var(--alt); }
75.hint { color: var(--muted); font-size: 11px; }
76.metrics { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
78.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 6px; }
79.tabs button { border: none; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 12px; color: var(--muted); }
80.tabs button.on { color: var(--fg); border-bottom-color: var(--accent); }
81.panel { padding-top: 10px; }
82.plots { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; }
83.plots.one { grid-template-columns: 1fr; }
84figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
85figcaption { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
86canvas { width: 100%; height: 220px; display: block; }
87canvas.tall { height: 260px; }
88.ptab { border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
89.ptab th, .ptab td { padding: 2px 10px; text-align: right; border-bottom: 1px solid var(--grid); }
90.ptab th { color: var(--muted); font-weight: 500; }
91.bodyctl { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
92.modelist { max-height: 340px; overflow-y: auto; }
93#sf2Info p { max-width: 900px; }
95@media (max-width: 900px) {
96 .main { grid-template-columns: 1fr; height: auto; }
97 aside { max-height: 45vh; border-right: none; border-bottom: 1px solid var(--line); }
98 .plots { grid-template-columns: 1fr; }
99}