.type-match { display:grid; gap:1rem; color:var(--ink); }
.type-selects,.type-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.75rem; }
.type-selects label { display:grid; gap:.4rem; font-weight:600; }
.type-selects select { width:100%; min-height:44px; padding:.5rem; border:1px solid var(--border-soft); border-radius:.5rem; color:var(--ink); background:var(--surface); font:inherit; }
.type-groups section,.type-hit { border:1px solid var(--border-soft); border-radius:.6rem; padding:1rem; }
.type-groups h2,.type-groups p,.type-match p { margin:0; }
.type-groups h2 { font-size:1rem; margin-bottom:.4rem; }
.type-groups span { color:var(--ink-muted); }
.type-hit { font-size:1.12rem; font-weight:650; }

/* Space the page holds for this view until it mounts (see .tool-view-placeholder in _workspace.css).
   Each height is a little under the space the view takes at that width, measured as how far the
   content below moves when the view replaces the placeholder, so nothing below it moves. Re-measure
   after changing the view's layout: node scripts/measure-tool-views.js --apply <id>. */
.tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 336px; }
@media (max-width: 1384px) { .tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 407px; } }
@media (max-width: 1008px) { .tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 455px; } }
@media (max-width: 915px) { .tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 431px; } }
@media (max-width: 736px) { .tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 484px; } }
@media (max-width: 676px) { .tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 641px; } }
@media (max-width: 516px) { .tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 689px; } }
@media (max-width: 464px) { .tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 1012px; } }
@media (max-width: 424px) { .tool-view-placeholder[data-tool="pokemon-type-calculator"] { min-height: 1064px; } }
