/* Harmony and Journey workspaces. Colour carries information only where a text or shape cue says the same thing. */
.lab-explain { max-width: 68ch; margin-bottom: 8px; }
.evidence { max-width: 68ch; }
.evidence strong { color: var(--ink); }
.evidence.established { border-left-color: var(--viz5); }
.evidence.convention { border-left-color: var(--viz4); }
.evidence.experimental { border-left-color: var(--viz2); border-left-style: dashed; }
.lab-scroll { overflow-x: auto; max-width: 100%; margin-bottom: 8px; }
.lab-table th, .lab-table td { white-space: nowrap; }
.lab-table td:last-child { white-space: normal; min-width: 4rem; }
.lab-table button { padding: 0.1em 0.6em; min-height: 0; }
.lab-error:empty { display: none; }
.lab-error { border-left: 3px solid var(--viz2); padding-left: 10px; }
#lab-panel:focus-visible { outline-offset: 4px; }
#lab-panel textarea { width: 100%; font: 0.85rem ui-monospace, monospace; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }

.fifths { position: relative; width: min(100%, 26rem); aspect-ratio: 1; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 50%; }
.fifths-key { position: absolute; transform: translate(-50%, -50%); min-width: 2.75rem; min-height: 2.75rem; padding: 0; border-radius: 50%; font-weight: 600; }
.fifths-key.minor { min-width: 2.5rem; min-height: 2.5rem; font-weight: 400; font-size: 0.85rem; }
.fifths-key.related { border-style: dashed; border-width: 2px; }
.fifths-key[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tonnetz { display: block; width: 100%; min-width: 30rem; max-width: 46rem; height: auto; }
.tonnetz .tri { fill: var(--panel); stroke: var(--line); stroke-width: 1; cursor: pointer; }
.tonnetz .tri:hover { fill: var(--soft); }
.tonnetz .tri:focus-visible { outline: none; stroke: var(--accent); stroke-width: 3; }
.tonnetz .tri.nb { fill: var(--soft); stroke: var(--ink); stroke-dasharray: 4 3; stroke-width: 1.5; }
.tonnetz .tri.sel { fill: var(--viz1); fill-opacity: 0.3; stroke: var(--ink); stroke-width: 2.5; }
.tonnetz .pc { fill: var(--bg); stroke: var(--muted); }
.tonnetz text { text-anchor: middle; font-size: 11px; fill: var(--ink); pointer-events: none; }
.tonnetz .tri-label { font-weight: 700; }

.ratio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 6px; margin-bottom: 6px; }
.ratio-grid label { display: grid; font-size: 0.8rem; color: var(--muted); }
.ratio-grid input { width: 100%; min-width: 0; }

.journey-timeline { position: relative; }
.journey-timeline canvas.viz { position: relative; background: transparent; }
.journey-sections { position: absolute; left: 8px; right: 8px; top: 0; height: 220px; overflow: hidden; background: var(--panel); border-radius: var(--radius); }
.journey-sections > div { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); overflow: hidden; }
.journey-sections > div.odd { background: var(--soft); }
.journey-sections span { font-size: 0.7rem; color: var(--muted); padding-left: 3px; white-space: nowrap; }
.swatch { display: inline-block; width: 0.9em; height: 3px; margin-right: 0.4em; vertical-align: middle; }
.journey-effects dt { font-weight: 600; margin-top: 8px; }
.journey-effects dd { margin: 0; font-size: 0.9rem; }
.journey-steps { list-style: none; }
.journey .tag { white-space: normal; }
