﻿@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("assets/fonts/roboto-flex-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("assets/fonts/roboto-flex-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --line: #e4e6ea;
  --accent: #2a49bd;
  --accent-strong: #1b3290;
  --accent-soft: #e8edfc;
  --on-accent: #ffffff;
  --selection: #d4defa;
  --idle: #c3c8cf;
  --chip: #f1f2f4;
  --plate: #f6f7f9;
  --figure: var(--accent);
  --figure-ink: var(--accent);
  --on-figure: var(--on-accent);
  --glass: rgb(255 255 255 / .74);
  --glass-edge: rgb(42 73 189 / .14);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
  font-family: "Roboto Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #15171d;
    --text: #e6e8ee;
    --muted: #a3a8b5;
    --line: #2b2f3a;
    --accent: #94afff;
    --accent-strong: #c2d1ff;
    --accent-soft: #1d2540;
    --on-accent: #15171d;
    --selection: #2a3a6b;
    --idle: #474c5a;
    --chip: #232731;
    --plate: #1b1e26;
    --glass: rgb(21 23 29 / .7);
    --glass-edge: rgb(148 175 255 / .16);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #15171d;
  --text: #e6e8ee;
  --muted: #a3a8b5;
  --line: #2b2f3a;
  --accent: #94afff;
  --accent-strong: #c2d1ff;
  --accent-soft: #1d2540;
  --on-accent: #15171d;
  --selection: #2a3a6b;
  --idle: #474c5a;
  --chip: #232731;
  --plate: #1b1e26;
  --glass: rgb(21 23 29 / .7);
  --glass-edge: rgb(148 175 255 / .16);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; scrollbar-color: var(--idle) var(--page); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--text); font-size: 16.5px; line-height: 1.7; font-variation-settings: "opsz" 16; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { position: relative; isolation: isolate; }
.backdrop { position: absolute; inset: 0 0 auto; z-index: -1; width: 100%; height: min(1000px, 120vh); -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); pointer-events: none; }::selection { background: var(--selection); color: var(--text); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

.shell { width: min(940px, calc(100% - 64px)); margin-inline: auto; }

.skip-link { position: absolute; top: -100px; left: 16px; background: var(--page); color: var(--accent); padding: 10px 14px; z-index: 10; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid transparent; transition: background-color .3s cubic-bezier(.16, 1, .3, 1), border-color .3s; }
.site-header[data-scrolled="true"] { background: color-mix(in srgb, var(--page) 78%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.header-inner { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 68px; }
nav, .theme-toggle { background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 10px 28px -18px rgb(16 32 96 / .45); }
nav { display: flex; align-items: center; gap: 2px; height: 42px; padding: 4px; border-radius: 999px; }
nav a { display: flex; align-items: center; height: 100%; padding-inline: 15px; border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 500; letter-spacing: .01em; transition: color .2s, background-color .2s; }
nav a:hover { color: var(--text); background: var(--chip); text-decoration: none; }
nav a[aria-current="true"] { color: var(--page); background: var(--text); }
.theme-toggle { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; color: var(--muted); border-radius: 50%; cursor: pointer; transition: color .2s, background-color .2s; }
.theme-toggle:hover { color: var(--text); background: var(--chip); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* About */
.about { margin-top: 48px; padding: 48px 52px 44px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 28px; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 40px 90px -50px rgb(16 32 96 / .5); }
h1 { font-family: var(--mono); font-size: 54px; line-height: 1.05; font-weight: 300; letter-spacing: -.04em; }
.first-name { font-weight: 600; color: var(--accent); }
.lede { margin-top: 8px; color: var(--muted); font-size: 17px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 56px; margin-top: 32px; }
.bio p + p { margin-top: 16px; }
.bio p { max-width: 66ch; }
.interests { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin-top: 22px; font-size: 14.5px; }
.interests dt { color: var(--muted); margin-right: 4px; }
.interests dd { padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--text); }
.profile { align-self: start; }
.portrait { aspect-ratio: 1; width: 100%; border-radius: 6px; background: var(--chip); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.affiliation { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: center; }
.social { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: color .2s, background-color .2s; }
.social a:hover { color: var(--accent); background: var(--accent-soft); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* Sections */
main > section + section { margin-top: 56px; }
main { padding-bottom: 88px; }
h2 { font-family: var(--mono); font-size: 24px; font-weight: 500; line-height: 1.3; color: var(--accent); letter-spacing: -.04em; margin-bottom: 18px; }
h2::before { content: "## "; color: var(--idle); font-weight: 400; }
.section-note { color: var(--muted); font-size: 14.5px; margin: -8px 0 20px; }
.tag { display: inline-block; padding: 0 8px; border: 1px solid var(--text); border-radius: 3px; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: .02em; vertical-align: 1px; }

/* News */
.news { width: 100%; border-collapse: collapse; }
.news th, .news td { padding: 10px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.news tr:first-child th, .news tr:first-child td { border-top: 1px solid var(--line); }
.news th { width: 140px; padding-right: 24px; font-weight: 600; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.news td .tag { margin-left: 6px; }

/* Open source */
.project h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.project h3 a { color: var(--text); }
.project h3 a:hover { color: var(--accent); }
.project-desc { margin-top: 4px; color: var(--muted); }


.contributions { list-style: none; padding: 0; margin: 28px 0 0; }
.contributions > li { padding: 16px 0; border-top: 1px solid var(--line); }
.contributions > li:last-child { border-bottom: 1px solid var(--line); }
.contributions p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 72ch; }
.contributions .contrib-head { margin: 0; font-size: 17px; line-height: 1.45; }
.contrib-head a { color: var(--text); font-weight: 600; }
.contrib-head a:hover { color: var(--accent); }
.contributions .contrib-meta { margin-top: 4px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.contrib-meta .tag { margin-right: 8px; }
.contrib-meta .tag a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contributions .provenance { font-size: 14px; }
.pr { color: var(--muted); font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; padding: 1px 5px; border-radius: 3px; background: var(--chip); color: var(--text); }


/* Figures */
.contributions figure { margin: 18px 0 6px; }
.contributions figcaption { margin-top: 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 72ch; }
.contributions figcaption b { color: var(--text); font-weight: 600; }

/* Figure 1: speedup dot plot, log scale */
.speedup { max-width: 680px; --label-w: 200px; --gap: 16px; --tail: 64px; }
.sp-plot { position: relative; padding-bottom: 26px; }
.sp-grid { position: absolute; top: -4px; bottom: 22px; left: calc(var(--label-w) + var(--gap)); right: var(--tail); }
.sp-grid i { position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 1px; background: var(--line); }
.sp-rows { position: relative; display: grid; gap: 4px; }
.sp-row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); gap: var(--gap); align-items: center; min-height: 34px; }
.sp-row dt { color: var(--text); font-size: 14px; }
.sp-row dd { min-width: 0; }
.sp-track { position: relative; display: block; height: 22px; margin-right: var(--tail); }
.sp-line { position: absolute; top: 50%; left: 0; height: 2px; width: calc(var(--p) * 100%); margin-top: -1px; background: var(--figure); transform-origin: left; }
.sp-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.sp-eager { left: 0; background: var(--page); border: 2px solid var(--muted); }
.sp-fast { left: calc(var(--p) * 100%); background: var(--figure); box-shadow: 0 0 0 3px var(--page); }
.sp-track b { position: absolute; top: 50%; left: calc(var(--p) * 100% + 14px); transform: translateY(-50%); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-axis { position: absolute; bottom: 0; left: calc(var(--label-w) + var(--gap)); right: var(--tail); height: 18px; }
.sp-axis span { position: absolute; left: calc(var(--p) * 100%); transform: translateX(-50%); color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sp-legend { display: flex; gap: 18px; list-style: none; padding: 0; margin: 6px 0 0 calc(var(--label-w) + var(--gap)); color: var(--muted); font-size: 13px; }
.sp-legend li { display: flex; align-items: center; gap: 8px; }
.sp-legend .sp-dot { position: static; margin: 0; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sp-line { animation: sp-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
    .sp-fast, .sp-track b { animation: sp-slide linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  }
}
@keyframes sp-grow { from { transform: scaleX(0); } }
@keyframes sp-slide { from { left: 0; opacity: 0; } }

/* Figure 2: prefix reuse as a commit graph */
.cache-figure { --row: 40px; --lane: 18px; }
.cf-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-controls button { font: inherit; font-size: 14px; line-height: 1; min-height: 38px; padding: 0 16px; color: var(--text); background: var(--page); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.cf-controls button:hover { border-color: var(--figure); color: var(--figure-ink); }
.cf-controls button[aria-pressed="true"] { background: var(--figure); border-color: var(--figure); color: var(--on-figure); }
.cf-body { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 28px; margin-top: 18px; padding: 22px 24px; border-radius: 8px; background: var(--plate); }
.cf-graph { position: relative; min-width: 0; transition: height .45s cubic-bezier(.16, 1, .3, 1); }
.cf-lines { position: absolute; inset: 0 auto 0 0; width: 100px; height: 100%; overflow: visible; }
.cf-lines path { fill: none; stroke: var(--idle); stroke-width: 2; stroke-linecap: round; transition: d .45s cubic-bezier(.16, 1, .3, 1), stroke .3s; }
.cf-lines path.is-reused { stroke: var(--figure); stroke-width: 3; }
.cf-lines path.is-new { stroke: var(--text); stroke-dasharray: 3 5; }
.cf-lines circle { fill: var(--plate); stroke: var(--idle); stroke-width: 2; transition: cx .45s cubic-bezier(.16, 1, .3, 1), cy .45s cubic-bezier(.16, 1, .3, 1), fill .3s, stroke .3s; }
.cf-lines circle.is-reused { fill: var(--figure); stroke: var(--figure); }
.cf-lines circle.is-new { fill: var(--plate); stroke: var(--text); stroke-dasharray: 3 3; }
.cf-rows { list-style: none; margin: 0; padding: 0; }
.cf-rows li { position: absolute; left: 0; right: 0; top: 0; height: var(--row); display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-left: var(--indent, 100px); color: var(--muted); font-size: 14.5px; transition: transform .45s cubic-bezier(.16, 1, .3, 1), color .3s, opacity .3s; }
.cf-rows .role { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.cf-rows .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-rows .tokens { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.cf-rows li.is-reused { color: var(--text); }
.cf-rows li.is-reused .text { font-weight: 500; }
.cf-rows li.is-reused .tokens { color: var(--figure-ink); font-weight: 600; }
.cf-rows li.is-new { color: var(--text); }
.cf-rows li.is-new .text { justify-self: start; max-width: 100%; padding: 3px 10px; margin-left: -10px; border: 1px dashed var(--text); border-radius: 6px; background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--text) 7%, transparent) 6px 12px); }
.cf-rows li.is-new .tokens { color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .cf-rows li.is-new { animation: cf-in .5s cubic-bezier(.16, 1, .3, 1) both .15s; }
  .cf-rows li.is-new .text { background-size: 17px 17px; animation: cf-stripes 1.2s linear 3; }
}
@keyframes cf-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes cf-stripes { to { background-position: 17px 0; } }

.cf-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.cf-title { font-size: 15px; line-height: 1.5; min-height: 3em; }
.cf-answer { display: grid; gap: 4px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cf-answer div { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; }
.cf-answer dt { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.cf-answer dd { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.cf-answer dd span { height: 6px; width: calc(var(--p) * (100% - 44px)); min-width: 2px; border-radius: 999px; background: var(--idle); transition: width .45s cubic-bezier(.16, 1, .3, 1); }
.cf-answer .is-top dt, .cf-answer .is-top dd { color: var(--text); font-weight: 600; }
.cf-answer .is-top dd span { background: var(--text); }
.cf-meter { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.cf-meter span { display: block; height: 100%; transition: flex-grow .45s cubic-bezier(.16, 1, .3, 1); flex: 0 0 auto; flex-grow: var(--w, 0); flex-basis: 0; }
.cf-reused { background: var(--figure); }
.cf-computed { background: repeating-linear-gradient(-45deg, var(--text) 0 3px, transparent 3px 6px); }
.cf-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; }
.cf-stats dt { color: var(--muted); font-size: 12.5px; }
.cf-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cf-stats div:first-child dd { color: var(--figure-ink); }
.cf-stats dd small { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.cf-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; margin-top: auto; }
.cf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-switch-track { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--idle); transition: background-color .2s; }
.cf-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--page); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.cf-switch input:checked + .cf-switch-track { background: var(--text); }
.cf-switch input:checked + .cf-switch-track::after { transform: translateX(14px); }
.cf-switch input:focus-visible + .cf-switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.cf-note { color: var(--muted); font-size: 12.5px; }

/* Talks & writing */
.entries { list-style: none; padding: 0; margin: 0; }
.entry { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.venue { align-self: start; margin-top: 3px; display: block; padding: 3px 0; border-radius: 3px; background: var(--chip); color: var(--text); font-size: 12.5px; font-weight: 600; text-align: center; letter-spacing: .01em; }
.entry h3 { font-size: 17px; font-weight: 600; line-height: 1.45; }
.entry h3 a { color: var(--text); }
.entry h3 a:hover { color: var(--accent); }
.original { margin-top: 2px; color: var(--muted); font-size: 15px; }
.original[lang="pl"] { font-style: italic; }
.entry .meta { margin-top: 4px; font-size: 14px; color: var(--text); }
.entry .meta .tag { margin-right: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px 28px; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 40px); }
  .about { margin-top: 28px; padding: 32px 28px 30px; border-radius: 22px; }
  h1 { font-size: 46px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .profile { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 20px; align-items: center; order: -1; }
  .portrait { grid-row: 1 / 3; }  .profile { grid-template-columns: 112px auto; justify-content: start; }
  .affiliation { display: none; }
  .social { justify-content: flex-start; margin: 0 0 0 -10px; }
}
@media (max-width: 640px) {
  nav a { padding-inline: 10px; font-size: 13px; }
  .about { padding: 26px 20px 24px; margin-inline: -8px; }
  h1 { font-size: 32px; }
  h2 { font-size: 21px; }
  .news th, .news td { display: block; width: auto; border: 0; padding: 0; }
  .news tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .news tr:first-child { border-top: 1px solid var(--line); }
  .news tr:first-child th, .news tr:first-child td { border: 0; }
  .news th { font-size: 14px; color: var(--muted); }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .venue { justify-self: start; padding: 2px 8px; }
  .footer-inner { flex-direction: column; gap: 4px; }
  .cache-figure { --row: 38px; --lane: 13px; }
  .cf-body { grid-template-columns: 1fr; padding: 16px 14px; margin-inline: -6px; }
  .cf-panel { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .cf-rows li { grid-template-columns: 0 minmax(0, 1fr) auto; gap: 8px; font-size: 14px; }
  .cf-rows .role { visibility: hidden; }
  .speedup { --label-w: 0px; --gap: 0px; --tail: 60px; }
  .sp-row { grid-template-columns: 1fr; gap: 2px; }
  .sp-legend { margin-left: 0; }
  .sp-grid { display: none; }
}
@media (max-width: 480px) {
  nav { flex: 1; justify-content: space-between; }
  nav a { padding-inline: 8px; }
}
