#tool { --series-1: var(--accent-hover); --series-2: var(--code); --series-3: #1b7f5a; --series-4: #b85c00; --series-5: #7a4fb3; --series-6: #00838f; }
#tool h3 { font-size: 1.5em; margin: 0 0 2px; }
#tool .label { color: var(--text-light); font-size: 0.9em; margin: 0 0 6px; }
#tool .chart::before, #selector::before { content: ""; display: block; width: 48px; height: 6px; background: var(--code); margin-bottom: 10px; }
#tool .intro > :first-child { margin-top: 0; }
#tool .chart svg { display: block; max-width: 100%; height: auto; }

#tool .panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5em; align-items: start; margin-top: 1em; }

#selector .options { display: flex; gap: 0.5em; margin-bottom: 0.8em; }
#selector button { flex: 1; margin: 0; background: none; color: var(--text); border-color: var(--border); border-radius: 0; padding: 0.1em 0.6em; }
#selector button:enabled:hover { background: none; border-color: var(--accent); color: var(--accent); }
#selector button[aria-pressed="true"], #selector button[aria-pressed="true"]:enabled:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
#selector .all { display: block; width: 100%; margin-bottom: 0.8em; }
#selector .hint { color: var(--text-light); font-size: 0.9em; margin: 0 0 6px; }
#selector .terms { max-height: 24em; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
#selector .terms button { flex: none; text-align: left; display: flex; align-items: center; gap: 0.5em; }
#selector .key { width: 0.8em; height: 0.8em; flex: none; border: 2px solid var(--accent-text); box-sizing: content-box; }

#tool + .notes { max-width: 45em; margin-top: 3em; font-size: 0.85em; color: var(--text-light); }
#tool + .notes::before { content: ""; display: block; width: 4em; border-top: 1px solid var(--text-light); margin-bottom: 1em; }

@media only screen and (max-width: 720px) {
  #tool .panes { grid-template-columns: minmax(0, 1fr); gap: 1.5em; }
  #selector .terms { max-height: 14em; }
}
