:root {
  --bg: #161618;
  --panel: #202022;
  --panel-edge: #303034;
  --well: #070809;
  --ink: #ececee;
  --ink-2: #a3a3aa;
  --muted: #6e6e76;
  --led: #3ee6f2;
  --led-dim: #0f2a2d;
  --c1: #2fa85a;   /* green */
  --c2: #4a90e0;   /* blue */
  --c3: #d27a2c;   /* orange */
  --c4: #c95fd6;   /* purple */
  --c5: #e25c5c;   /* red */
  --c-gold: #ad8c1c;   /* Oceania – checked against its neighbours in the continent chart */
  --other: #6b6b72;
  --link: #3ee6f2;
  --accent: #3ee6f2;
  --input-bg: #070809;
  --row-alt: rgba(255, 255, 255, .025);
  --seg-base: #000;
  --tooltip-bg: #0b0b0d;
  --grid-line: rgba(255, 255, 255, .05);
  --glow: 10;      /* blur of the glow behind chart lines, read by app.js */
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
/* Light mode follows the OS / browser setting. The LED displays stay dark on purpose. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f2f4;
    --panel: #ffffff;
    --panel-edge: #dcdce1;
    --ink: #1c1c1f;
    --ink-2: #55555c;
    --muted: #74747c;
    --c1: #1f8a47;
    --c2: #2f74c8;
    --c3: #c0661a;
    --c4: #a944b8;
    --c5: #cf3f3f;
    --c-gold: #9a7a10;
    --other: #8e8e95;
    --link: #0a7a89;
    --accent: #0a9fb2;
    --input-bg: #ffffff;
    --row-alt: rgba(0, 0, 0, .025);
    --seg-base: #ffffff;
    --tooltip-bg: #ffffff;
    --grid-line: rgba(0, 0, 0, .07);
    --glow: 0;
    color-scheme: light;
  }
}
/* A faint tint of the game's colour (html[data-game], set by app.js) in the header only (game name, tabs,
   global filters), so games are told apart at a glance; the statistics below stay neutral. Without a known
   game the header is plain --bg. */
:root { --tint-amount: 11%; --page: color-mix(in srgb, var(--tint, var(--bg)) var(--tint-amount), var(--bg)); }
@media (prefers-color-scheme: light) { :root { --tint-amount: 10%; } }
html[data-game="underworlds"] { --tint: #a3123f; }   /* crimson of the Underworlds logo, towards raspberry */
html[data-game="aos"] { --tint: #e0261a; }           /* brighter scarlet of Age of Sigmar */
html[data-game="killteam"] { --tint: #f07a10; }      /* Kill Team orange */
html[data-game="40k"] { --tint: #3f6a8c; }           /* Warhammer 40,000 slate blue */
html[data-game="mtg"] { --tint: #8c5a2a; }           /* brown-orange of the Magic card back */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { padding: 18px 28px 0; border-bottom: 1px solid var(--panel-edge); position: sticky; top: 0;
  background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(10px); z-index: 10; }
.title-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
h1 { margin: 0; font-weight: 300; font-size: 40px; letter-spacing: .5px; }
.subtitle { color: var(--ink-2); font-size: 15px; }
.excel { margin-left: auto; color: var(--c1); text-decoration: none; border: 1px solid var(--panel-edge);
  padding: 5px 12px; border-radius: 8px; font-weight: 600; }
.excel:hover { border-color: var(--c1); }
.tabs { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 15px; padding: 8px 14px;
  border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.filters-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.years { display: flex; gap: 6px; align-items: center; padding: 8px 0; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.years button { background: none; border: 1px solid var(--panel-edge); color: var(--ink-2); border-radius: 999px;
  padding: 3px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.years button:hover { color: var(--ink); }
.years button.on { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* the last 1 / 3 / 6 months: short labels on phones */
.years .short { display: none; }
@media (max-width: 640px) { .years .long { display: none; } .years .short { display: inline; } }
/* the "Other" periods drop-down exists only on phones (renderPeriods) */
.years .other { display: none; }
/* older years */
.years select { background: none; border: 1px solid var(--panel-edge); color: var(--ink-2); border-radius: 999px;
  padding: 3px 8px; font: inherit; font-size: 13px; cursor: pointer; }
.years select:hover { color: var(--ink); }
.years select.on { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* the drop-down list itself is not transparent */
.years select option { background: var(--panel); color: var(--ink); }
/* time periods first, then a gap, then the Nemesis switch (Warhammer Underworlds only) */
.filters-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-left: auto; }
.switches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* filters that do not fit in one row (tablets, a long region path; app.js fitFilters): the region with the
   switches on the right, the periods below – instead of three rows with a wide empty gap */
@media (min-width: 641px) {
  .top.stacked .filters-right { display: contents; }
  .top.stacked .switches { margin-left: auto; }
  .top.stacked .years { order: 1; flex-basis: 100%; padding-top: 0; }
}
/* title, dates and Excel do not fit in one row (iPad portrait; app.js fitFilters): as on phones – the dates with the
   sources in small print below the title, Excel beside them */
@media (min-width: 641px) {
  .top.title-stacked .title-row { row-gap: 8px; align-items: center; }
  .top.title-wrap h1 { flex-basis: 100%; }
  .top.title-stacked .subtitle { line-height: 1.35; }
  .top.title-stacked .subtitle .sep { display: none; }
  .top.title-stacked .subtitle .srcs { display: block; font-size: 13px; color: var(--muted); }
}
/* filters too wide for one row, but the switches fit beside the tabs (iPad landscape; app.js fitFilters) */
.top.switches-up .tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.top.switches-up .tabs { margin-top: 0; min-width: 0; }
.top.switches-up .switches { flex: none; }
.switches:not(:has(.switch:not([hidden]))) { display: none; }
.switch .short { display: none; }
@media (max-width: 640px) { .switch .long { display: none; } .switch .short { display: inline; } }
.switch { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--panel-edge);
  color: var(--ink-2); border-radius: 999px; padding: 3px 11px 3px 4px; font: inherit; font-size: 13px; cursor: pointer; }
.switch:hover { color: var(--ink); }
.switch i { position: relative; width: 28px; height: 16px; border-radius: 999px; background: var(--panel-edge); flex: 0 0 28px; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink-2); transition: left .15s; }
.switch[aria-checked="true"] { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.switch[aria-checked="true"] i { background: var(--accent); }
.switch[aria-checked="true"] i::after { left: 14px; background: var(--panel); }
.crumbs { padding: 11px 0; font-size: 14px; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--link); cursor: pointer; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--muted); }
.crumbs .cur { color: var(--ink); font-weight: 600; }

main { padding: 20px 28px 40px; max-width: 1700px; margin: 0 auto; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 18px; min-width: 0; }
.panel[data-goto] .led { cursor: pointer; }
/* the arrow links to the tab with details: LED colour and glow like the title, so it is noticed;
   the value is pushed right next to it (with three flex items the value would sit in the middle) */
/* drawn as an SVG mask, not the "↗" glyph: its height depends on the fallback font (Safari drew it high) */
.panel[data-goto] .led::after { content: ""; flex: 0 0 auto; width: 0.72em; height: 0.72em; margin-left: 8px;
  background: var(--led); filter: drop-shadow(0 0 3px rgba(62, 230, 242, .55));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M5.5 3H13v7.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M5.5 3H13v7.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.panel[data-goto] .led b, .led b:has(+ .led-btn) { margin-left: auto; }
/* a button in the LED title (map: stretch to the full screen height) – LED colour and glow like the title */
.led .led-btn { background: none; border: 0; padding: 0 0 0 10px; color: var(--led); font: inherit; font-size: 1.5em;
  letter-spacing: 0; text-shadow: 0 0 6px rgba(62, 230, 242, .55); cursor: pointer; line-height: 1;
  transform: translateY(-0.065em); }   /* the glyph sits low */
.led .led-btn:hover, .led .led-btn[aria-pressed="true"] { color: #fff; }
.grid { display: grid; gap: 18px; }
.grid > .panel { margin-bottom: 18px; }
.g-ov1 { grid-template-columns: 1.6fr 1fr; }
.g-ov2 { grid-template-columns: 1fr 1.6fr; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-trend > div { min-width: 0; }   /* a wide table scrolls inside instead of widening the page */
@media (max-width: 640px) { .g-trend td.name { white-space: normal; min-width: 110px; } }   /* the change stays visible */
.g-fa { grid-template-columns: 1.1fr 1fr; gap: 18px; }
.g-fmt { grid-template-columns: 1fr 1.6fr; gap: 18px; align-items: start; }
/* warband + decks and deck combinations have W/D/L/podium columns – too wide to sit side by side */
.g-nem1 { grid-template-columns: 1fr; }
/* four tables in a row never fit (main is at most 1700px wide) – always two */
.g-nem2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .g-ov1, .g-ov2, .g-2, .g-fa, .g-fmt, .g-nem1, .g-nem2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  main, .top { padding-left: 16px; padding-right: 16px; }
  .top { position: relative; padding-bottom: 14px; }   /* not sticky; relative keeps its z-index: the "Other" menu stays above the charts */
  h1 { font-size: 30px; }
  /* phones: tabs wrap instead of scrolling (the last tab used to be off screen) and look like buttons */
  .tabs { flex-wrap: wrap; gap: 10px; overflow: visible; }
  .tabs button { padding: 8px 14px; min-height: 40px; border: 1px solid var(--panel-edge); border-radius: 8px; }
  .tabs button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
}
/* phones: a compact header – dates with the sources in small print below and Excel beside them; the region
   with the switches on the right, below only three periods (edition, newest year, 3 months) + "Other" */
@media (max-width: 640px) {
  .title-row { row-gap: 8px; align-items: center; }
  h1 { flex-basis: 100%; font-size: 28px; }
  .subtitle { font-size: 14px; line-height: 1.3; }
  .subtitle .sep { display: none; }
  .subtitle .srcs { display: block; font-size: 11px; color: var(--muted); }
  .excel { padding: 4px 10px; font-size: 14px; }
  .filters-right { display: contents; }
  .switches { margin-left: auto; gap: 8px; }
  .filters-row { row-gap: 0; column-gap: 8px; }
  .years { order: 1; flex-basis: 100%; padding-top: 0; }
  .years .lbl, .years .wide, .years .older { display: none; }
  .years .other { display: inline-block; position: relative; }
  .years .other-btn { padding-right: 27px; position: relative; }
  .years .other-btn::after { content: ""; position: absolute; right: 13px; top: 50%; width: 5px; height: 5px;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
  .years .other-btn[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
  .years .other-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 150px; padding: 6px;
    display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
  .years .other-menu[hidden] { display: none; }
  .years .other-menu button { border: 0; border-radius: 8px; text-align: left; font-size: 16px; padding: 10px 14px;
    min-height: 44px; color: var(--ink); }
  .years .other-menu button.on { background: color-mix(in srgb, var(--accent) 18%, transparent); }
  .top { padding-bottom: 0; }   /* 8 px under the periods above the line */
  .tabs { margin-bottom: 6px; }
}

/* LED display in the panel header */
.led { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--well); border: 1px solid #000; border-radius: 6px; padding: 5px 12px; margin-bottom: 12px;
  font: 700 19px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 3px; color: var(--led);
  text-shadow: 0 0 6px rgba(62, 230, 242, .55);
  background-image: repeating-linear-gradient(90deg, transparent 0 15px, var(--led-dim) 15px 17px); }
.led span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.led b { font-weight: 700; white-space: nowrap; }
/* phones and tablets: smaller titles (two panels side by side have room for less text);
   must stay after the base .led rule, otherwise it does not apply */
@media (max-width: 1200px) { .led { font-size: 16px; letter-spacing: 2px; } }
/* panel titles with a shorter variant for phones */
.led .short { display: none; }
@media (max-width: 640px) {
  .panel[data-goto] .led::after { margin-left: 4px; }
  #ov-reg-led { display: none; }                  /* the region is in the breadcrumb */
  #fa-detail-title { white-space: normal; }       /* long faction names wrap instead of being cut */
  .led .long { display: none; } .led .short { display: inline; }
}

.chart { width: 100%; height: 300px; }
/* every chart its own stacking context: an ECharts tooltip (z-index 9999999) stays under the sticky header */
[_echarts_instance_] { position: relative; z-index: 0; }
.chart.tall { height: 400px; }
.chart.map { height: 480px; }
@media (max-width: 640px) { .chart.map { height: 360px; } }
#fa-scatter { margin-bottom: 14px; }
h3 { margin: 4px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.note { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }

/* ---------- tiles ---------- */
/* six tiles in one row on wide screens, 3 + 3 on medium ones, two per row on phones */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { border-radius: var(--radius); padding: 12px 16px 14px; border: 1px solid; min-width: 0;
  background: color-mix(in srgb, var(--tc) 9%, var(--panel)); border-color: color-mix(in srgb, var(--tc) 45%, var(--panel-edge)); }
.tile .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tile .name { font-size: 16px; color: var(--ink); }
.tile .val { font: 700 22px var(--mono); color: var(--ink); }
.tile .val-label { font: 400 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink-2); margin-right: 6px; }
.tile .sub { color: var(--ink-2); font-size: 12.5px; margin: 4px 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.tile .sub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub span + span { flex-shrink: 0; }
/* two lines under the value (countries: most events, most per million inhabitants) */
.tile .sub.stack { flex-direction: column; gap: 2px; }
.tile .sub.stack > span + span { flex-shrink: 1; }
.segs { display: flex; gap: 3px; height: 16px; }
.segs i { flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--tc) 16%, var(--seg-base)); }
.segs i.on { background: var(--tc); box-shadow: 0 0 6px color-mix(in srgb, var(--tc) 60%, transparent); }
@media (max-width: 1440px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* eight tiles (with the Nemesis tiles): 4 + 4 */
.tiles.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile .short { display: none; }
/* app.js fitTiles: the value does not fit with its label – without it; then as on phones */
.tile.tight .val-label, .tile.tighter .long { display: none; }
.tile.tighter .short { display: inline; }
.tile.tighter .val { font-size: 19px; }
.tile.tighter { padding-left: 12px; padding-right: 12px; }
.tile.tighter .row { gap: 6px; }
.tile.tighter .val .ts { font-size: 9px; }
/* phones: two tiles per row – drop the "Total:" label and use short tile names so the values fit */
@media (max-width: 640px) {
  .tiles, .tiles.n8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .val-label, .tile .long { display: none; }
  .tile .short { display: inline; }
  .tile .val { font-size: 19px; }
  .tile .val .ts { font-size: 9px; }
}
.tile.toggle { cursor: pointer; user-select: none; }
.tile.toggle:hover { border-color: var(--tc); }
.tile .flip { color: var(--muted); font-size: 13px; margin-left: 4px; }
.tile-sources .src-body { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tile-sources .src-donut { width: 52px; height: 52px; flex: 0 0 52px; }
.tile-sources .src-legend { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.tile-sources .src-legend span { white-space: nowrap; }
.tile-sources .sw { margin-right: 4px; width: 8px; height: 8px; }

/* ---------- tables ("process list" style) ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap.scroll { max-height: 520px; overflow-y: auto; }
.table-wrap.tall { max-height: 400px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--ink-2); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--panel-edge);
  position: sticky; top: 0; background: var(--panel); white-space: nowrap; cursor: default; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td { padding: 6px 8px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 2px; }
td.name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
tbody tr:nth-child(even) { background: var(--row-alt); }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover, tbody tr.sel { background: color-mix(in srgb, var(--c1) 16%, transparent); }
td .bar { display: inline-block; height: 8px; border-radius: 2px; background: var(--c1); vertical-align: middle; margin-right: 6px; }
td.good { color: var(--c1); }
td a { color: var(--link); text-decoration: none; }
td a:hover { text-decoration: underline; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }

.controls { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; color: var(--ink-2); }
.controls select, .search { background: var(--input-bg); color: var(--ink); border: 1px solid var(--panel-edge);
  border-radius: 6px; padding: 5px 8px; font: inherit; }
.search { width: 100%; max-width: 360px; margin-bottom: 10px; }
.controls input[type=range] { accent-color: var(--c1); vertical-align: middle; }
.controls output { font-family: var(--mono); color: var(--ink); }
.controls .auto-note { color: var(--muted); font-size: 12.5px; }
/* segmented switch: all / tournament legal / Legacy warbands */
.seg { display: inline-flex; border: 1px solid var(--panel-edge); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 13px; padding: 4px 12px; cursor: pointer; }
.map-mode { margin-bottom: 8px; }
/* zoom buttons in the map's top right corner (like Google Maps) */
.map-wrap { position: relative; }
.map-zoom { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.map-zoom button { width: 36px; height: 36px; background: none; border: 0; color: var(--ink); font: 400 22px/1 var(--sans, inherit);
  cursor: pointer; padding: 0; }
.map-zoom button + button { border-top: 1px solid var(--panel-edge); }
.map-zoom button:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.seg button + button { border-left: 1px solid var(--panel-edge); }
.seg button:hover { color: var(--ink); }
.seg button.on { color: var(--ink); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ---------- Nemesis ---------- */
td.name a.pick, td.name .pick { color: var(--link); cursor: pointer; text-decoration: none; }
td.name a.pick:hover { text-decoration: underline; }
td .plus { color: var(--muted); margin: 0 4px; }
td .ab { color: var(--muted); font-size: 12px; }
td .short { display: none; }
@media (max-width: 640px) { td .long { display: none; } td .short { display: inline; } }
.nem-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nem-filters:empty { display: none; }   /* no chips: no gap before the slider */
.nem-filters .chip { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink);
  border-radius: 999px; padding: 3px 6px 3px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.nem-filters .chip b { color: var(--muted); margin-left: 6px; font-weight: 400; }
.nem-filters .chip:hover b { color: var(--ink); }

footer { color: var(--muted); font-size: 12.5px; margin-top: 10px; line-height: 1.6; }

/* phones: bigger touch targets (pills and selects ≥36 px high, invisible padding around links and sliders) */
@media (max-width: 640px) {
  .years { gap: 6px; }
  .years button, .years select, .switch, .nem-filters .chip, .seg button, .controls select { min-height: 36px; }
  .years button, .years select { padding: 6px 11px; }
  .controls input[type=range] { height: 32px; }
  /* the slider's row has ~8 px of invisible touch area below its text: rows wrapped under it look evenly spaced */
  .controls label:has(input[type=range]) { margin-bottom: -8px; }
  .crumbs a { display: inline-block; padding: 8px 0; margin: -8px 0; }
  /* links in tables stay inline (an inline-block is never cut with "…", it vanishes whole); the padding of an
     inline element enlarges the tap area without changing the line */
  td.name .pick { padding: 8px 0; }
}
