.muted { color: var(--muted); }
a.muted { text-decoration: underline; }
.synth-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, max-content)); gap: 10px; }
.section { background: var(--strip); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 10px; }
.section h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.section .row { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: flex-start; }
.toggle { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; }
.toggle .opts { display: flex; flex-direction: column; gap: 2px; }
.toggle button { font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.toggle button.on { border-color: var(--accent); color: var(--accent); }
.toggle .label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.keys { position: relative; height: 110px; margin: 14px 0 6px; max-width: 760px; user-select: none; touch-action: none; }
.key { position: absolute; top: 0; border: 1px solid #111; border-radius: 0 0 5px 5px; cursor: pointer; }
.key.white { background: #f2f2ee; height: 108px; z-index: 1; }
.key.black { background: #1b1c1f; height: 66px; z-index: 2; }
.key.down { background: var(--accent) !important; }

.sheet-card { background: var(--strip); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.sheet-card h3 { margin: 0 0 4px; font-size: 15px; }
.sheet-card img { width: 100%; height: auto; display: block; margin: 8px 0; background: #fff; border-radius: 4px; }
.sheet-card ul { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.sheet-card td.pos { font-size: 11px; color: var(--muted); }
.sheet-card details { margin-top: 6px; }
.bad { color: #c0392b; }
#guideFrame { width: 100%; height: calc(100vh - 170px); border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.view3d-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.view3d-bar label { font-size: 13px; display: flex; gap: 4px; align-items: center; }
.stage3d { position: relative; width: 100%; height: min(64vh, 700px); border-radius: 10px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 40%, #f3f1ec, #cfcac0); overflow: hidden; touch-action: none; }
@media (prefers-color-scheme: dark) { .stage3d { background: radial-gradient(ellipse at 50% 40%, #3a3b3f, #17181a); } }
.stage3d canvas { display: block; }
.tip3d { position: absolute; pointer-events: none; padding: 3px 8px; border-radius: 6px; font-size: 13px;
  background: rgba(20, 21, 23, 0.86); color: #f2f2ee; white-space: nowrap; transform: translate(14px, -130%); z-index: 2; }
.stage3d canvas.over { cursor: ns-resize; }
.stage3d canvas.flip { cursor: pointer; }
