#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 .ranking::before, #tool .chart::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 .top { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5em; align-items: start; }
#tool .panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); 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-current], #selector button[aria-current]:enabled:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
#selector select { display: block; width: 100%; margin: 0 0 0.8em; border-radius: 0; }
#selector select[aria-current] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

#tool .ranking::before { margin-top: 0; }
#tool .head { display: flex; justify-content: space-between; align-items: end; gap: 1em; }
#tool .head .label { margin: 0 0 6px; }
#tool #filter { width: 12em; margin: 0 0 6px; padding: 0.2em 0.5em; }
#tool .scroll { max-height: 28em; overflow-y: auto; }
#tool table { width: 100%; margin: 0; font-size: 0.9em; }
#tool td, #tool th { padding: 0.3em 0.5em; }
#tool thead th { position: sticky; top: 0; white-space: nowrap; background: linear-gradient(var(--accent-bg), var(--accent-bg)), var(--bg); }
#tool td:first-child, #tool td:last-child, #tool th:first-child, #tool th:last-child { text-align: right; }

#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 .top, #tool .panes { grid-template-columns: minmax(0, 1fr); gap: 1.5em; }
}

#title .beta { font-size: 0.5em; font-weight: normal; color: var(--text-light); }
