/* Whole-project map: one continuous, zoomable map of every result, with an outline on the left and a reading pane on the right.
   In a book page it takes the scheme the site's toggle sets (Material's data-md-color-scheme) over the system's. */
:root, [data-md-color-scheme=default] .pm-app {
  --pm-bg: #f7f7f5; --pm-panel: #ffffff; --pm-fg: #1d1d1f; --pm-muted: #5f6368; --pm-faint: #9aa0a6; --pm-border: #e3e3e0;
  --pm-link: #1a5fb4; --pm-accent: #1a5fb4; --pm-region: #ffffff; --pm-region-stroke: #c9c9c4; --pm-edge: #7a7f86;
  --pm-proved: #2e7d4f; --pm-progress: #3b82c4; --pm-planned: #b9bdc2; --pm-select: #111111; --pm-dim: .38;
  --pm-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pm-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-pm-theme=light]) {
    --pm-bg: #16181b; --pm-panel: #1e2024; --pm-fg: #e8eaed; --pm-muted: #a8adb4; --pm-faint: #6b7178; --pm-border: #2e3136;
    --pm-link: #8ab4f8; --pm-accent: #8ab4f8; --pm-region: #1e2024; --pm-region-stroke: #3a3e44; --pm-edge: #8a9099;
    --pm-proved: #5cc48a; --pm-progress: #6aa8e8; --pm-planned: #565b62; --pm-select: #ffffff;
  }
}
:root[data-pm-theme=dark], [data-md-color-scheme=slate] .pm-app {
  --pm-bg: #16181b; --pm-panel: #1e2024; --pm-fg: #e8eaed; --pm-muted: #a8adb4; --pm-faint: #6b7178; --pm-border: #2e3136;
  --pm-link: #8ab4f8; --pm-accent: #8ab4f8; --pm-region: #1e2024; --pm-region-stroke: #3a3e44; --pm-edge: #8a9099;
  --pm-proved: #5cc48a; --pm-progress: #6aa8e8; --pm-planned: #565b62; --pm-select: #ffffff;
}
html:has(> body.pm-page), body.pm-page { height: 100%; margin: 0; }
body.pm-page { background: var(--pm-bg); color: var(--pm-fg); font: 14px/1.45 var(--pm-font); overflow: hidden; }
.pm-app { display: grid; grid-template-columns: 280px minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); height: 100vh; }
.pm-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--pm-border); background: var(--pm-panel); }
.pm-home { color: var(--pm-link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pm-trail { display: flex; flex: 1 1 auto; min-width: 0; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--pm-muted); font-size: 13px; overflow: hidden; }
/* Every step shrinks to a readable prefix rather than vanishing; the current step gives way last. */
.pm-trail li { display: flex; flex: 0 1 auto; min-width: 0; max-width: 24ch; white-space: nowrap; }
.pm-trail li:last-child { flex-shrink: .2; max-width: 40ch; }
.pm-trail li + li::before { content: "/"; flex: none; margin-right: 6px; color: var(--pm-faint); }
.pm-trail li > button, .pm-trail li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-trail button { padding: 0; border: 0; background: none; color: var(--pm-link); font: inherit; cursor: pointer; }
.pm-trail [aria-current=location] { color: var(--pm-fg); font-weight: 600; }
.pm-search { position: relative; flex: 0 1 380px; min-width: 220px; }
.pm-search input { box-sizing: border-box; width: 100%; padding: 8px 12px; border: 1px solid var(--pm-border); border-radius: 8px; background: var(--pm-bg); color: var(--pm-fg); font: inherit; }
.pm-search input::placeholder { color: var(--pm-muted); opacity: 1; }
.pm-hits { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 60vh; margin: 0; padding: 6px; overflow: auto; border: 1px solid var(--pm-border); border-radius: 10px; background: var(--pm-panel); box-shadow: 0 8px 24px rgba(0,0,0,.14); list-style: none; }
.pm-hits[hidden] { display: none; }
.pm-hit { display: block; width: 100%; padding: 7px 9px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pm-hit:hover, .pm-hit:focus-visible, .pm-hit[aria-selected=true] { background: color-mix(in srgb, var(--pm-accent) 12%, transparent); outline: none; }
.pm-hit-title { display: block; font-weight: 600; }
.pm-hit-meta { display: block; color: var(--pm-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-hit-meta code { font: 12px var(--pm-mono); }
.pm-note { padding: 8px 10px; color: var(--pm-muted); font-size: 13px; }
.pm-tools { display: flex; gap: 4px; }
.pm-tools button { min-width: 32px; min-height: 32px; padding: 0 10px; white-space: nowrap; border: 1px solid var(--pm-border); border-radius: 8px; background: var(--pm-panel); color: var(--pm-fg); font: inherit; cursor: pointer; }
.pm-side { min-height: 0; overflow: auto; border-right: 1px solid var(--pm-border); background: var(--pm-panel); }
.pm-side-inner { padding: 16px; }
.pm-project { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.pm-stats { display: flex; gap: 18px; margin: 10px 0 12px; }
.pm-stat strong { display: block; font-size: 18px; }
.pm-stat span { color: var(--pm-muted); font-size: 12px; }
.pm-bar { display: flex; height: 6px; overflow: hidden; border-radius: 3px; background: var(--pm-planned); }
.pm-bar span { display: block; height: 100%; }
.pm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; color: var(--pm-muted); font-size: 12px; }
.pm-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; }
.pm-outline { margin: 18px 0 0; padding: 0; list-style: none; }
.pm-outline ul { margin: 2px 0 6px 14px; padding: 0; list-style: none; }
.pm-outline button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: var(--pm-fg); font: inherit; text-align: left; cursor: pointer; }
.pm-outline button:hover, .pm-outline button:focus-visible { background: color-mix(in srgb, var(--pm-accent) 10%, transparent); outline: none; }
.pm-outline button[aria-current=true] { font-weight: 700; }
.pm-outline .pm-count { flex: none; color: var(--pm-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pm-facets { margin: 16px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--pm-border); }
.pm-facets legend { padding: 0; color: var(--pm-muted); font-size: 12px; }
.pm-facets label { display: block; margin: 4px 0; }
.pm-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.pm-stage svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; cursor: grab; }
.pm-stage svg.pm-dragging { cursor: grabbing; }
.pm-hint { position: absolute; left: 14px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--pm-bg) 82%, transparent); color: var(--pm-muted); font-size: 12px; pointer-events: none; }
.pm-hint.pm-hint-strong { left: 50%; bottom: 50%; transform: translate(-50%, 50%); padding: 10px 14px; background: var(--pm-panel); border: 1px solid var(--pm-border); color: var(--pm-fg); font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pm-part > rect { fill: var(--pm-region); stroke: var(--pm-region-stroke); stroke-width: 1; cursor: zoom-in; }
.pm-part.pm-open > rect { fill: color-mix(in srgb, var(--pm-bg) 55%, var(--pm-region)); cursor: grab; }
.pm-tile-done > rect { fill: color-mix(in srgb, var(--pm-proved) 10%, var(--pm-region)); }
.pm-tile-progress > rect { fill: color-mix(in srgb, var(--pm-progress) 10%, var(--pm-region)); }
.pm-part:hover > rect { stroke: color-mix(in srgb, var(--pm-accent) 55%, var(--pm-region-stroke)); }
.pm-part:focus-visible > rect, .pm-part.pm-focus > rect { stroke: var(--pm-accent); stroke-width: 2; outline: none; }
.pm-part.pm-on-path > rect { stroke: var(--pm-select); stroke-width: 1.8; }
/* The shown part's neighbours: what it builds on, what uses it, or both, in the panel's colours. */
.pm-uses, .pm-used-by, .pm-both { --pm-role: var(--pm-accent); }
.pm-part.pm-uses > rect, .pm-part.pm-used-by > rect, .pm-part.pm-both > rect { stroke: var(--pm-role); stroke-width: 2.5; }
.pm-part.pm-link-hover > rect { stroke-width: 4; fill: color-mix(in srgb, var(--pm-role, var(--pm-accent)) 10%, var(--pm-region)); }
.pm-part.pm-picked > rect { stroke: var(--pm-select); stroke-width: 3; }
.pm-part.pm-stage-wide:is(.pm-focus, .pm-on-path, .pm-picked) > rect { stroke: var(--pm-region-stroke); stroke-width: 1; }
/* A picked part's arrows to its neighbours, over the boxes they cross, with a halo in the page colour. */
.pm-link { fill: none; stroke: var(--pm-accent); stroke-linecap: round; opacity: .35; filter: drop-shadow(0 0 1.5px var(--pm-bg)); pointer-events: stroke; }
.pm-link.pm-link-away { opacity: .35; }
.pm-link.pm-link-hover { opacity: 1; stroke-width: 6px; }
/* Dots flowing along a link, from what is used to what uses it. */
.pm-flowing { opacity: 1; stroke-dasharray: 0.1 11; stroke-linecap: round; pointer-events: none; animation: pm-flow 1s linear infinite; }
.pm-route.pm-flowing { stroke-width: 4; }
@keyframes pm-flow { to { stroke-dashoffset: -11.1; } }
@media (prefers-reduced-motion: reduce) { .pm-flowing { animation: none; } }
.pm-title { fill: var(--pm-fg); font: 600 15px var(--pm-font); pointer-events: none; }
.pm-title.pm-compact { font-size: 13px; }
/* Over a closed tile's faint parts, text keeps a halo in the tile's own colour. */
.pm-halo { paint-order: stroke; stroke: var(--pm-region); stroke-width: 4px; stroke-linejoin: round; }
/* A title with a formula is HTML over the canvas (mathTitle in project-map.js); its classes give it the SVG titles' font. */
.pm-tex-layer, .pm-tex-ghost { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pm-tex { position: absolute; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; color: var(--pm-fg); }
.pm-tex.pm-halo { text-shadow: 0 0 2px var(--pm-region), 0 0 4px var(--pm-region); }
/* WebKit's line clamp counts the lines inside a formula's inline blocks and cuts its title to the top few pixels, but not those
   in a flex box. CHTML only: an SVG formula keeps its depth by vertical-align, which a flex item ignores. */
.pm-tex mjx-container[jax="CHTML"] { display: inline-flex; }
.pm-tex-waiting .arithmatex:not(:has(mjx-container)) { visibility: hidden; }
.pm-mini { pointer-events: none; stroke: var(--pm-region-stroke); stroke-width: .75; fill: var(--pm-region); opacity: .7; }
.pm-mini-done { fill: color-mix(in srgb, var(--pm-proved) 22%, var(--pm-region)); }
.pm-mini-progress { fill: color-mix(in srgb, var(--pm-progress) 22%, var(--pm-region)); }
.pm-seg { pointer-events: none; }
.pm-seg-done { fill: var(--pm-proved); }
.pm-seg-progress { fill: var(--pm-progress); }
.pm-seg-planned { fill: var(--pm-planned); }
.pm-backdrop { pointer-events: none; fill: var(--pm-region); }
.pm-backdrop-open { fill: color-mix(in srgb, var(--pm-bg) 55%, var(--pm-region)); }
.pm-backdrop-done { fill: color-mix(in srgb, var(--pm-proved) 10%, var(--pm-region)); }
.pm-backdrop-progress { fill: color-mix(in srgb, var(--pm-progress) 10%, var(--pm-region)); }
.pm-meta { fill: var(--pm-muted); font: 12px var(--pm-font); pointer-events: none; }
.pm-route { fill: none; stroke: var(--pm-edge); stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.pm-route.pm-proof { stroke-dasharray: 6 4; }
.pm-route.pm-involved { stroke: var(--pm-accent); opacity: 1; }
.pm-arrow path { fill: var(--pm-edge); }
.pm-arrow-on path { fill: var(--pm-accent); }
.pm-result > rect { stroke-width: 1; cursor: pointer; }
.pm-result.pm-done > rect { fill: color-mix(in srgb, var(--pm-proved) 16%, var(--pm-panel)); stroke: color-mix(in srgb, var(--pm-proved) 65%, var(--pm-panel)); }
.pm-result.pm-progress > rect { fill: color-mix(in srgb, var(--pm-progress) 14%, var(--pm-panel)); stroke: color-mix(in srgb, var(--pm-progress) 65%, var(--pm-panel)); }
.pm-result.pm-planned > rect { fill: var(--pm-panel); stroke: var(--pm-planned); }
.pm-result.pm-card > rect { stroke-width: 1.4; }
.pm-result:focus-visible > rect, .pm-result.pm-selected > rect { stroke: var(--pm-select); stroke-width: 2.5; outline: none; }
/* In a book page, the statement being read. */
.pm-result.pm-reading > rect { stroke: var(--pm-accent); stroke-width: 2.5; }
.pm-card-title { fill: var(--pm-fg); font: 600 13px var(--pm-font); pointer-events: none; }
.pm-card-meta { fill: var(--pm-muted); font: 11px var(--pm-font); pointer-events: none; }
.pm-dimmed { opacity: var(--pm-dim); }
/* Moving between the map and a local graph: the frame left fades out under the new one, and each card carried across
   flies above both, its place held empty until it lands. */
.pm-ghost, .pm-flying { pointer-events: none; }
.pm-stage .pm-arriving { opacity: 0; }
.pm-pin { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 12px; align-items: baseline; padding: 8px 16px; border-bottom: 1px solid var(--pm-border); background: color-mix(in srgb, var(--pm-panel) 94%, transparent); pointer-events: none; }
.pm-pin[hidden] { display: none; }
.pm-pin strong { font-size: 15px; }
.pm-pin span { color: var(--pm-muted); font-size: 12px; }
/* A result's local graph: its panel on the stage, with the level stepper and the hubs it lists instead of drawing, and
   its "via n" edges, dotted, for the results between that it leaves out. */
.pm-local { position: absolute; z-index: 5; top: 12px; left: 12px; box-sizing: border-box; max-width: min(380px, calc(100% - 24px)); padding: 6px 8px; border: 1px solid var(--pm-border); border-radius: 8px; background: var(--pm-panel); box-shadow: 0 2px 8px rgba(0,0,0,.06); font-size: 12px; }
.pm-local[hidden] { display: none; }
.pm-local p { margin: 0 0 8px; }
.pm-local-title strong { display: block; font-size: 15px; line-height: 1.3; }
.pm-local-levels { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--pm-muted); }
.pm-local-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pm-local-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pm-local-extra { margin-top: 8px; }
.pm-local-extra[hidden] { display: none; }
.pm-route.pm-background-route { opacity: .4; }
.pm-route.pm-background-route:hover { opacity: .8; }
.pm-local-levels > span { margin-right: 4px; }
.pm-local button { min-width: 28px; min-height: 28px; padding: 0 8px; border: 1px solid var(--pm-border); border-radius: 7px; background: var(--pm-panel); color: var(--pm-fg); font: inherit; cursor: pointer; }
.pm-local button[aria-pressed=true] { border-color: var(--pm-accent); background: color-mix(in srgb, var(--pm-accent) 14%, var(--pm-panel)); font-weight: 600; }
.pm-local button[aria-disabled=true] { opacity: .45; cursor: default; }
.pm-local-count, .pm-local-chips > span { color: var(--pm-muted); }
.pm-local-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-height: 30vh; overflow: auto; }
.pm-local .pm-hub, .pm-local .pm-chips-more { min-height: 24px; border-radius: 999px; font-size: 12px; }
.pm-route.pm-via { stroke-dasharray: 2 4; }
.pm-via-label { fill: var(--pm-muted); font: 11px var(--pm-font); text-anchor: middle; pointer-events: none; }
.pm-reader { min-height: 0; overflow: auto; border-left: 1px solid var(--pm-border); background: var(--pm-panel); }
/* A narrow screen gives the map its whole width, with the reader under it and search on a row of its own. The side panel
   (outline, legend and source filter) makes way; the trail and Up still lead out. Three columns leave the map under
   440 px below 1100 px. */
@media (max-width: 1100px) {
  .pm-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) minmax(0, 40%); height: 100dvh; }
  .pm-top { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .pm-search { order: 1; flex: 1 1 100%; min-width: 0; }
  .pm-side { display: none; }
  .pm-reader { border-left: 0; border-top: 1px solid var(--pm-border); }
}
.pm-reader-inner { padding: 18px 18px 40px; }
.pm-kicker { margin: 0 0 4px; color: var(--pm-muted); font-size: 12px; }
.pm-reader h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.pm-path { margin: 0 0 12px; color: var(--pm-muted); font-size: 12px; }
.pm-path button { padding: 0; border: 0; background: none; color: var(--pm-link); font: inherit; cursor: pointer; }
.pm-chip { display: inline-block; margin: 0 0 12px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--pm-proved) 14%, transparent); color: var(--pm-fg); font-size: 12px; }
.pm-statement { margin: 0 0 14px; font-size: 15px; line-height: 1.55; }
/* The result's block from the book: statement and proof first, sources and Lean rows quieter below. */
.pm-math { margin: 0 0 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.pm-math p { margin: 0 0 10px; }
.pm-math a { color: var(--pm-link); }
.pm-math code { padding: 1px 4px; border-radius: 4px; background: var(--pm-bg); font: 12.5px var(--pm-mono); }
.pm-math pre { overflow: auto; padding: 8px; border-radius: 6px; background: var(--pm-bg); font: 12px/1.45 var(--pm-mono); }
/* A statement's Lean declarations, as the book shows them under it. The pre is the box, so its code takes none of
   the inline code's padding and the first line keeps its indent; the book's own rule would take the pre's padding. */
.pm-math .bp-lean-source { margin: 10px 0 0; }
.pm-math .bp-lean-source .bp-lean { padding: 8px; }
.pm-math pre code { padding: 0; background: none; font: inherit; }
.pm-math .bp-lean-keyword { color: var(--pm-accent); }
.pm-math .bp-lean-comment { color: var(--pm-muted); }
.pm-math .bp-lean-string { color: var(--pm-proved); }
.pm-math .bp-thmnotes, .pm-math .bp-meta { margin-top: 10px; color: var(--pm-muted); font-size: 12.5px; }
.pm-math .bp-thmnotes h6 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.pm-math .bp-row { display: flex; gap: 8px; padding: 2px 0; }
.pm-math .bp-key { flex: none; min-width: 84px; font-weight: 600; }
.pm-math details > summary { cursor: pointer; }
.pm-lean { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.pm-lean code { padding: 3px 6px; overflow: hidden; border-radius: 5px; background: var(--pm-bg); font: 12px var(--pm-mono); text-overflow: ellipsis; white-space: nowrap; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pm-actions a { color: var(--pm-link); font-weight: 600; text-decoration: none; }
.pm-reader h3 { margin: 18px 0 6px; color: var(--pm-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pm-list { margin: 0; padding: 0; list-style: none; }
.pm-list button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid var(--pm-border); background: none; color: var(--pm-fg); font: inherit; text-align: left; cursor: pointer; }
.pm-list button:hover, .pm-list button:focus-visible { color: var(--pm-link); outline: none; }
.pm-list small { flex: none; color: var(--pm-muted); }
.pm-empty { color: var(--pm-muted); }
.pm-links h3 { display: flex; align-items: center; gap: 6px; }
.pm-link-list button { align-items: center; }
.pm-link-name { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pm-link-name small { font-size: 12px; }
.pm-meter { flex: none; width: 56px; height: 6px; overflow: hidden; border-radius: 3px; background: var(--pm-border); }
.pm-meter i { display: block; height: 100%; background: var(--pm-role); }
.pm-link-note { margin: 8px 0 0; font-size: 12px; }
.pm-more > summary { margin: 18px 0 6px; color: var(--pm-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; }
.pm-edge-key { display: grid; gap: 4px; margin: 4px 0 12px; color: var(--pm-muted); font-size: 12px; }
.pm-edge-key span { display: flex; align-items: center; gap: 8px; }
.pm-edge-key svg { flex: none; overflow: visible; }
.pm-key-link { fill: none; stroke: var(--pm-accent); stroke-linecap: round; }
.pm-flow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--pm-border); }
.pm-flow small { flex: none; color: var(--pm-muted); }
.pm-show-more { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--pm-link); font: inherit; cursor: pointer; }
.pm-show-more[hidden] { display: none; }
.pm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Inside a book page the map fills the book's stage, which has its own outline, search, trail and reading pane; the
   map keeps its zoom tools. */
.pm-app.pm-embedded { position: absolute; inset: 0; display: block; height: auto; container-type: inline-size; color: var(--pm-fg); font: 14px/1.45 var(--pm-font); }
.pm-embedded .pm-stage { position: absolute; inset: 0; background: var(--pm-bg); }
.pm-embedded .pm-top { position: absolute; z-index: 6; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 0; border: 0; background: none; }
.pm-embedded .pm-hint:not(.pm-hint-strong) { right: 260px; }
/* A narrow map (the book keeps it 160px wide at least) wraps its tools, drops the general hint and keeps a strong hint
   as wide as its words, up to the map's width. */
.pm-embedded .pm-tools { flex-wrap: wrap; justify-content: flex-end; }
@container (max-width: 520px) { .pm-embedded .pm-hint:not(.pm-hint-strong) { display: none; } }
.pm-embedded .pm-hint.pm-hint-strong { width: max-content; max-width: calc(100% - 24px); }
/* A phone has no keys or Control-scroll, and its stage is short. */
@media (max-width: 700px) { .pm-embedded .pm-hint:not(.pm-hint-strong) { display: none; } }
.pm-embedded :is(.pm-home, .pm-trail, .pm-search, .pm-side, .pm-reader) { display: none !important; }
