@font-face { font-family: "Termes"; src: url(fonts/termes-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Termes"; src: url(fonts/termes-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Termes"; src: url(fonts/termes-bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Termes"; src: url(fonts/termes-bolditalic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "LM Mono"; src: url(fonts/lmmono-regular.woff2) format("woff2"); font-display: swap; }
/* figures and demos use Helvetica's TeX clone, the way plots in papers do */
@font-face { font-family: "Heros"; src: url(fonts/heros-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Heros"; src: url(fonts/heros-bold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #111;
  --gray: #6b6b6b;
  --rule: #dedede;
  --wash: #f4f4f2;
  --paper: #fff;
  --link: #0058d6;
  --blue: #1f5bff;
  --red: #e5251b;
  --yellow: #ffc600;
  --green: #00a04a;
  --orange: #ff7a00;
  --violet: #7b3fe4;
  --pink: #ff4f9a;
  /* hyperref's default link borders */
  --hr-link: #ff0000;
  --hr-cite: #00c800;
  --hr-url: #00c8e6;
  --url: #007a99;                                        /* the same cyan, dark enough to read as text */
  --col: 46rem;                                          /* NeurIPS text width, scaled */
  --serif: "Termes", "TeX Gyre Termes", "Nimbus Roman", "Times New Roman", Times, serif;
  --sans: "Heros", "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "LM Mono", "Latin Modern Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 clamp(15.5px, 0.88rem + 0.18vw, 17px)/1.36 var(--serif); font-kerning: normal; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:where(button) { border: 0; background: none; padding: 0; cursor: pointer; }
:where(button:disabled) { cursor: default; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
sup { font-size: 0.7em; line-height: 0; vertical-align: 0.45em; }
sub { font-size: 0.7em; line-height: 0; vertical-align: -0.25em; }

/* links, boxed the way hyperref draws them in a PDF viewer */
a { color: inherit; text-decoration: none; }
.paper a, .paper .ref { border: 1px solid var(--hr-url); padding: 0 1px; margin: 0 -1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 0.12s; }
.paper a.cite { border-color: var(--hr-cite); }
.paper .ref { border-color: var(--hr-link); }
.paper a:hover { background: rgb(0 200 230 / 0.12); }
.paper a.cite:hover { background: rgb(0 200 0 / 0.12); }
.paper .ref:hover { background: rgb(255 0 0 / 0.07); }
.sheet .dc a, .sheet .dc button { border: 0; margin: 0; }

/* the page */
.sheet { position: relative; }
.paper { max-width: calc(var(--col) + 2.5rem); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 1.25rem 6rem; position: relative; }
.margin { display: none; }
@media (min-width: 82rem) {
  /* the annotated paper: text column, then a margin that holds the demo */
  .sheet { display: grid; grid-template-columns: var(--col) 31rem; column-gap: 4rem; justify-content: center; padding: 0 2rem; }
  .sheet > .paper { grid-column: 1; } .sheet > .margin { grid-column: 2; }
  .paper { max-width: none; margin: 0; padding-inline: 0; }
  .margin { display: block; position: relative; }
}
.paper p { hyphens: auto; text-align: justify; text-wrap: pretty; }
.paper p + p { margin-top: 0.42em; }

/* title: 4pt rule, title, 1pt rule */
.title-rules { border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1.05rem 0 1.25rem; text-align: center; }
.title-rules h1 { font-size: 1.7em; font-weight: 700; line-height: 1.15; }
.authors { margin-top: 1.45rem; text-align: center; }
.author-photo img { width: 7.2rem; height: 7.2rem; object-fit: cover; }
.author-text { text-align: center; }
.paper .authors p { text-align: center; }
@media (max-width: 34rem) { .authors { flex-direction: column; gap: 0.8rem; } }
.author-name { font-weight: 700; }
.author-name sup { position: absolute; } /* superscripts don't shift the centered name, as in \\thanks */
.affils { margin-top: 0.15rem; line-height: 1.28; }
.affils span { display: block; }
.affils sup, .author-name sup { margin-right: 0.08em; }
.author-name sup { margin-left: 0.22em; }
.email { margin-top: 0.15rem; font-family: var(--mono); font-size: 0.95em; }
.links { margin-top: 0.4rem; font-size: 0.92em; }
.links a + a { margin-left: 0.6rem !important; }

.abstract { margin: 2.1rem 2rem 0; }
.abstract h2 { text-align: center; font-size: 1.2em; margin-bottom: 0.45rem; }

section + section, .footnote + section, .acks { margin-top: 1.5rem; }
h2 { font-size: 1.2em; font-weight: 700; line-height: 1.2; margin-bottom: 0.6rem; }
h3 { font-size: 1em; font-weight: 700; line-height: 1.2; margin: 1rem 0 0.45rem; }
.sec-n { display: inline-block; min-width: 1.5em; }
h3 .sec-n { min-width: 2.1em; }

figcaption { margin-top: 0.3rem; text-align: center !important; }
figcaption { font-size: 0.92em; line-height: 1.3; }
.paper figcaption { text-align: left; }

/* booktabs; the news table's body scrolls between fixed rules, its header does not move */
.news-tab { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.news-tab .booktabs { border: 0; table-layout: fixed; }
.news-tab .c-date { width: 5.2rem; }
.news-tab .head th { border-bottom: 0.75px solid var(--ink); }
.tab-scroll { max-height: 10.4rem; overflow-y: auto; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 1.6rem), rgb(0 0 0 / 0.25)); mask-image: linear-gradient(#000 calc(100% - 1.6rem), rgb(0 0 0 / 0.25)); }
.tab-scroll.at-end { -webkit-mask-image: none; mask-image: none; }
.booktabs { width: 100%; border-collapse: collapse; font-size: 0.95em; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.booktabs thead th { text-align: left; font-weight: 700; padding: 0.28rem 0.6rem 0.22rem; border-bottom: 0.75px solid var(--ink); }
.booktabs td { padding: 0.14rem 0.6rem; vertical-align: top; }
.booktabs tbody tr:first-child td { padding-top: 0.32rem; }
.booktabs tbody tr:last-child td { padding-bottom: 0.32rem; }
.booktabs td:first-child, .booktabs th:first-child { white-space: nowrap; width: 5.2rem; padding-left: 0; font-variant-numeric: tabular-nums; }
.booktabs td:last-child, .booktabs th:last-child { padding-right: 0; }

/* project names are highlighted like PDF annotations; each opens its demo */
/* at rest a colored underline; the highlight comes on with hover, and stays while the thing is open */
.proj { display: inline; line-height: inherit; text-align: inherit; cursor: pointer; padding: 0 0.12em; margin: 0 -0.12em; border-radius: 2px;
  text-decoration: underline 0.1em var(--c, var(--ink)); text-underline-offset: 0.2em; text-decoration-skip-ink: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 0.15s; }
/* hover only where there is a pointer that hovers; on touch screens a tapped title would otherwise stay lit */
@media (hover: hover) { .proj:hover { background: color-mix(in srgb, var(--c, var(--ink)) 30%, transparent); } }
.proj[aria-expanded="true"] { background: color-mix(in srgb, var(--c, var(--ink)) 45%, transparent); }
.pc { white-space: nowrap; }
.author-link, .news-pic { --c: #5fd0c4; } /* the author's own color, kept apart from the three research areas */
.side-fig { position: relative; width: 8.5rem; margin: 2.2rem auto 0; }
.side-fig img { width: 100%; }
.side-fig[hidden] { display: none; }
.margin .side-fig { position: absolute; left: 0; width: 12rem; margin: 0; }
/* a news photo: wider than the portrait (a portrait-shaped photo a little wider), below its table on narrow screens */
.side-fig.news-fig { width: min(100%, 22rem); margin-top: 3.2rem; }
.side-fig.news-fig.tall { width: min(100%, 14rem); }
.margin .side-fig.news-fig { margin: 0; }
.news-fig img { display: block; width: 100%; height: auto; }
/* one paragraph per project, with a run-in head like \paragraph{} */
.entry + .entry { margin-top: 0.55em !important; }
.runin { font-weight: 700; }
.runin .venue { font-weight: 400; font-style: italic; }

.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leader path { fill: none; stroke-width: 1.25; opacity: 0.9; }
.proj-panel { position: relative; display: block; margin: 2.2rem 0 1.2rem; text-align: left; hyphens: manual; font-family: var(--sans); font-size: 0.86rem; line-height: 1.3; container-type: inline-size; }
.margin .proj-panel { position: absolute; left: 0; right: 0; margin: 0; }
.pp-cap { font-family: var(--serif); font-size: 0.9rem; line-height: 1.3; margin-top: 0.45rem; text-align: left !important; hyphens: manual !important; }
.pp-links a { margin-left: 0.3rem !important; font-size: 0.92em; }
.pp-bar { position: absolute; top: -1.85rem; left: 0; right: 0; display: flex; align-items: center; gap: 0.15rem; }
.pp-bar a, .pp-close { height: 1.55rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0 0.45rem; border-radius: 4px; color: var(--gray); font: 0.78rem var(--sans); border: 0 !important; margin: 0 !important; }
.pp-bar a:hover, .pp-close:hover { background: var(--wash); color: var(--ink); }
.pp-bar svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-close { margin-left: auto !important; }
.pp-close:hover { background: var(--wash); color: var(--ink); }

/* references (\small, numbered) */
.references ol { list-style: none; font-size: 0.9em; line-height: 1.28; }
.references li { display: grid; grid-template-columns: 2.3em minmax(0, 1fr); scroll-margin-top: 2rem; }
.references li + li { margin-top: 0.42rem; }
.ref-links a { margin-right: 0.2rem; font-size: 0.92em; }

/* first-page footnote */
.footnote { margin-top: 2rem; font-size: 0.82em; }
.footnote::before { content: ""; display: block; width: 40%; border-top: 0.5px solid var(--ink); margin-bottom: 0.3rem; }

/* citation preview */
.cite-pop .pop-url { display: block; margin-top: 0.2rem; font: 0.78rem var(--mono); color: var(--gray); word-break: break-all; }
.cite-pop .pop-kind { font: 700 0.7rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 0.15rem; }
.cite-pop img { max-height: 7rem; margin-top: 0.35rem; }
.cite-pop { opacity: 0; transform: translateY(-3px); transition: opacity 0.12s, transform 0.12s; max-width: 26rem; }
.cite-pop.on { opacity: 1; transform: none; }
.cite-pop { position: absolute; z-index: 10; padding: 0.55rem 0.7rem; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); font: 0.85rem/1.3 var(--serif); pointer-events: none; }

/* appendix */
.appendix > h2 { margin-top: 2.4rem; }
.placeholder { color: var(--gray); }
.rabbit-disc { float: right; width: 6.5rem; height: 6.5rem; margin: 0.15rem 0 0.4rem 1rem; border-radius: 50%; overflow: hidden; border: 1px solid var(--ink) !important; background: var(--paper); will-change: transform; cursor: pointer; padding: 0 !important; }
.rabbit-disc img { width: 100%; height: 100%; object-fit: cover; }

/* line numbers, as on a submission */
.line-nums { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; font: 0.6rem/1 var(--sans); color: #a0a0a0; font-variant-numeric: tabular-nums; }
.line-nums span { position: absolute; left: -2.8rem; transform: translateY(-50%); }
@media (max-width: 64rem) { .line-nums { display: none; } }

@media (max-width: 34rem) {
  .paper p { text-align: left; }
  .abstract { margin-inline: 0; }
  .booktabs td:first-child { white-space: normal; }
}

/* ——— demos, set as figures: subfigure labels, framed axes, a time axis, and a legend you can click ——— */
[data-proj="dcomposer"], [data-proj="tria"], [data-proj="tagbox"], [data-proj="text2fx"], [data-proj="harp"] { --ci: var(--create-ink); }
[data-proj="shallow"], [data-proj="codedrift"], [data-proj="filter"] { --ci: var(--limits-ink); }
[data-proj="maskmark"], [data-proj="voiceblock"] { --ci: var(--safe-ink); }

.dc {
  --label: 5.4rem;
  --row: 1.7rem;
  --grid: #e6e6e6;
  position: relative;
  font: 400 0.78rem/1.25 var(--sans);
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dc:focus-visible { outline-offset: 6px; }
.dc button { font: inherit; color: inherit; }
.sheet .dc a, .sheet .dc button { border: 0; margin: 0; }

/* subfigures: (a) (b) (c) above the plot, aligned with its left edge */
.dc-bar { padding: 0 0 0.5rem var(--label); }
/* D-Composer's wordmark, as on d-composer.github.io; TRIA's, as in its logo file (both set in Arial) */
.mk-pill { display: inline-block; padding: 0.12em 0.34em 0.16em; border-radius: 0.23em; background: #000; color: #fff; font: italic 700 1rem/0.96 Arial, Helvetica, sans-serif; letter-spacing: -0.04em; white-space: nowrap; }
.mk-letters { font: 700 1rem/1 Arial, Helvetica, sans-serif; letter-spacing: -0.01em; }
.spine { display: none; }
/* captions as NeurIPS sets them: upright, small, justified across the figure's width */
.pp-caption { position: relative; margin: 0 0 1rem; font: 400 0.95rem/1.36 var(--serif); text-align: justify !important; hyphens: auto; }

.dc-bar:empty, .dc-foot:empty { display: none; }
/* Choices speak the page's own language: underlined in the area's color means you can pick it (as with the
   paper titles that open these demos); highlighted means it is picked. Examples use the subcaption letters. */
.pf-sub { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
.pf-sub button .sf { color: #9a9a9a; }

/* the plot: lanes share one frame and one time axis; labels sit outside it, right-aligned */
.dc-stage { position: relative; }
.dc-stage::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--label); right: 0; border: 1px solid var(--ink); pointer-events: none; z-index: 6; }
.dc-lane { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); height: var(--row); }
.dc-label { display: flex; align-items: center; justify-content: flex-end; padding-right: 0.55rem; text-align: right; line-height: 1.15; min-width: 0; }
.dc-track { position: relative; min-width: 0; overflow: hidden; box-shadow: inset 0 1px var(--grid); }
.kit-lane { height: 3.2rem; }
.dc-wave, .dc-spec { position: absolute; inset: 0; width: 100%; height: 100%; }
.dc-spec { object-fit: fill; }

.kit-head, .dc-playhead {
  position: absolute; top: 0; bottom: 0; left: 0; width: 1.5px; margin-left: -0.75px;
  background: var(--ink); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.85); opacity: 0; pointer-events: none; z-index: 4; will-change: transform;
}
.dc-playhead { left: var(--label); }
.dc.playing .dc-playhead { opacity: 1; }
.pf-hit:not(.pf-playable) { cursor: pointer; }
.kit-ghost { position: absolute; top: 0; bottom: 0; left: 0; border-left: 1px dashed rgb(0 0 0 / 0.35); opacity: 0; pointer-events: none; z-index: 3; transition: opacity 0.12s; }

/* time axis: ticks below the frame */
.pf-axis { position: relative; height: 1.25rem; margin-left: var(--label); color: var(--gray); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.pf-axis:empty { height: 0.4rem; }
.pf-axis > span { position: absolute; top: 0; padding-top: 0.32rem; transform: translateX(-50%); white-space: nowrap; }
.pf-axis > span::before { content: ""; position: absolute; top: 0; left: 50%; height: 0.24rem; border-left: 1px solid var(--ink); }
.pf-axis > span:first-child { transform: none; }
.pf-axis > span:first-child::before { left: 0; }

/* annotations set inside a plot */
.pf-ann { position: absolute; top: 0.25rem; right: 0.35rem; z-index: 5; padding: 0 0.2rem; font-size: 0.7rem; line-height: 1.3; background: rgb(255 255 255 / 0.88); pointer-events: none; white-space: nowrap; max-width: calc(100% - 0.7rem); overflow: hidden; text-overflow: ellipsis; }

/* controls, under the plot and aligned with it */
.dc-foot { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.1rem; min-height: 2.2rem; padding: 0.5rem 0 0 var(--label); }
/* play sits in the label column, under the lane names, so the controls start at the plot's edge */
.dc-foot > .dc-play { position: absolute; top: 0.3rem; right: calc(100% - var(--label) + 0.55rem); }
.hp .dc-foot > .dc-play { position: static; }
.pf-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem 1.1rem; flex: 1 1 100%; min-width: 0; }
/* further rows of controls name themselves in the label column, like the lanes above */
.pf-row { position: relative; }
.pf-row > .pf-key { position: absolute; top: 50%; right: calc(100% + 0.55rem); width: calc(var(--label) - 0.55rem); transform: translateY(-50%); text-align: right; color: var(--gray); line-height: 1.15; }
/* a standalone play button looks like the chips */
.dc .dc-play { width: 1.75rem; height: 1.75rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.14), 0 1px 4px rgb(0 0 0 / 0.2); transition: background-color 0.12s, color 0.12s, transform 0.1s; }
.dc-play svg { width: 0.62rem; height: 0.62rem; fill: currentColor; }
.dc-play:not(.on) svg { margin-left: 0.08rem; }
.dc-play:hover { background: var(--ink); color: #fff; }
.dc-play:active { transform: scale(0.94); }
.dc.loading .dc-play svg { animation: busy 0.9s ease-in-out infinite; }
@keyframes busy { 50% { opacity: 0.3; } }
.dc-clock { color: var(--gray); font-variant-numeric: tabular-nums; }
.dc-status { color: var(--gray); }
.dc-status:empty { display: none; }

/* legend entries are radio buttons: ● selected, ○ not */
/* Choices inside a demo look nothing like the page's links: plain gray words, the chosen one in ink. */
.dc-ab { display: inline-flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
.dc-ab button, .pf-sub button, .pf-btn { padding: 0.15rem 0; color: #8a8a8a; white-space: nowrap; line-height: 1.3; transition: color 0.12s; }
.dc-ab button:hover:not(:disabled), .pf-sub button:hover, .pf-btn:hover:not(:disabled) { color: var(--ink); }
.dc-ab button[aria-checked="true"], .pf-sub button[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.pf-sub button .sf { color: inherit; font-weight: 400; }
.dc-ab button:disabled, .pf-btn:disabled { color: #c0c0c0; cursor: default; }
/* A recording is its own play control: over it the pointer becomes a play mark (a pause mark over what is
   playing), and nothing is drawn on the recording itself. While it sounds, bars bounce beside its name. */
.pf-playable, .fx .dc-stage, .fx .pf-axis { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='%23111' fill-opacity='.86' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M8.6 6.8v8.4l6.6-4.2z' fill='%23fff'/%3E%3C/svg%3E") 11 11, pointer; outline: none; }
.pf-playable.is-playing, .pf-playable.pf-pauses, .fx.playing .dc-stage, .fx.playing .pf-axis { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='%23111' fill-opacity='.86' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M7.6 6.8h2.4v8.4H7.6zM12 6.8h2.4v8.4H12z' fill='%23fff'/%3E%3C/svg%3E") 11 11, pointer; }
.pf-playable:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.pf-name { position: absolute; left: 0.4rem; bottom: 0.28rem; z-index: 5; display: inline-flex; align-items: center; gap: 0.35rem; color: #fff; font: 600 0.7rem/1 var(--sans); text-shadow: 0 0 3px rgb(0 0 0 / 0.9), 0 0 1px #000; pointer-events: none; white-space: nowrap; }
.pf-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 0.62rem; margin-left: 0.35rem; vertical-align: -0.05em; opacity: 0; transition: opacity 0.2s; }
.pf-name .pf-bars { margin-left: 0; }
.pf-bars.on { opacity: 1; }
.pf-bars i { width: 2px; height: 100%; background: var(--ci); border-radius: 1px; transform: scaleY(0.3); transform-origin: bottom; }
.pf-name .pf-bars i { background: #fff; }
.pf-bars.on i { animation: pf-bounce 0.9s ease-in-out infinite; }
.pf-bars.on i:nth-child(2) { animation-delay: -0.3s; }
.pf-bars.on i:nth-child(3) { animation-delay: -0.6s; }
@keyframes pf-bounce { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .pf-bars.on i { animation: none; transform: scaleY(0.75); } }
/* the lane you are hearing names itself in ink; the others stay gray */
.dc-lane.has-chip > .dc-label { color: #8a8a8a; transition: color 0.12s; }
.dc-lane.has-chip.is-on > .dc-label { color: var(--ink); font-weight: 600; }
/* plots you can click light up on rollover */

/* a text action, in the area color */


.pf-cbar { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; color: var(--gray); font-size: 0.7rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-cbar i { width: 3.6rem; height: 0.55rem; border: 1px solid var(--ink); }

/* a slider with labelled milestones */
.pf-steps { position: relative; flex: 1 1 14rem; min-width: 10rem; padding: 0 0.9rem 1.15rem; }
.pf-steps input { display: block; width: 100%; }
.pf-ticks { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 0; height: 1.1rem; }
.pf-ticks button { position: absolute; top: 0; transform: translateX(-50%); padding: 0.05rem 0.15rem; color: var(--gray); font-size: 0.7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-ticks button::before { content: ""; position: absolute; left: 50%; top: -0.35rem; height: 0.25rem; border-left: 1px solid #c4c4c4; }
.pf-ticks button:hover, .pf-ticks button.on { color: var(--ink); }
.pf-row > .kit-slider-label { align-self: flex-start; padding-top: 0.2rem; }
.kit-slider { display: flex; align-items: center; gap: 0.55rem; flex: 1 1 10rem; min-width: 0; }
.kit-slider-label { color: var(--gray); white-space: nowrap; }
.kit-slider-label:empty { display: none; }
.kit-slider input { flex: 1; min-width: 4rem; }
.kit-slider-value { font-variant-numeric: tabular-nums; color: var(--gray); min-width: 2.2em; text-align: right; }
.dc input[type="range"] { -webkit-appearance: none; appearance: none; height: 1.4rem; margin: 0; background: none; cursor: pointer; }
.dc input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: #dcdcd8; }
.dc input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: #dcdcd8; }
.dc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1rem; height: 1rem; margin-top: calc(1.5px - 0.5rem); border-radius: 50%; background: var(--ci); border: 0; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform 0.1s; }
.dc input[type="range"]::-moz-range-thumb { width: 1rem; height: 1rem; border-radius: 50%; background: var(--ci); border: 0; }
.dc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.dc input[type="range"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* D-Composer: a piano roll of extracted sound events */
.dcx .dc-input { height: 2.6rem; }
.dcx .dc-roll .dc-lane { height: 1.45rem; }
.dc-mute { text-transform: capitalize; padding: 0.1rem 0; transition: color 0.12s; }
.dc-mute:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.dc-lane.muted .dc-mute { color: #a8a8a8; text-decoration: line-through; }
.dcx .dc-mute:hover { text-decoration: none; color: var(--ink); }
/* the D-Composer paper's piano roll: each class a pale fill inside an outline of its own color, on rows that
   alternate white and light gray (colors from the paper's figure and project page) */
.dc-roll .row-kick   { --nf: #e8d9fd; --nb: #893df6; }
.dc-roll .row-snare  { --nf: #d8e8d3; --nb: #3f8c27; }
.dc-roll .row-tom    { --nf: #e6eef9; --nb: #628ad8; }
.dc-roll .row-clap   { --nf: #fde8a0; --nb: #e37a26; }
.dc-roll .row-shaker { --nf: #e9efdf; --nb: #94ae61; }
.dc-roll .row-perc   { --nf: #e4e8e0; --nb: #7a8a63; }
.dc-roll .row-hat    { --nf: #fbdae9; --nb: #eb4691; }
.dc-roll .row-cymbal { --nf: #ddf3f1; --nb: #35a39a; }
.dc-roll .dc-lane:nth-child(even) > .dc-track { background: #f1f1f1; }
.dc-note {
  position: absolute; top: 0.26rem; bottom: 0.26rem; min-width: 0.4rem;
  background: var(--nf); box-shadow: inset 0 0 0 1.5px var(--nb); border-radius: 0;
  cursor: grab; touch-action: none; transition: opacity 0.2s, background-color 0.2s, box-shadow 0.12s;
}
.dc-note::after { content: ""; position: absolute; inset: -0.26rem -0.2rem; }
.dc-note:hover { box-shadow: inset 0 0 0 2.5px var(--nb); z-index: 2; }
.dc { position: relative; }
.dc-note { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* a block's menu: two plain words on a white card */
.dc-menu { position: absolute; z-index: 20; display: flex; flex-direction: column; min-width: 6.5rem; padding: 0.25rem 0; background: #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12), 0 4px 14px rgb(0 0 0 / 0.14); }
.dc-menu[hidden] { display: none; }
.dc .dc-menu button { all: unset; box-sizing: border-box; padding: 0.32rem 0.8rem; font: 400 0.84rem/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.dc .dc-menu button:hover, .dc .dc-menu button:focus-visible { background: #efefef; }
.dc-note.dragging { cursor: grabbing; box-shadow: inset 0 0 0 2.5px var(--nb); z-index: 3; }
.dc-lane.muted .dc-note { --nf: #f3f3f3; --nb: #c4c4c4; }
.dcx .dc-roll .dc-note { opacity: calc(0.4 + 0.6 * var(--out, 1)); }
.pf-reset { margin-left: auto; }
/* the playhead rests where you leave it; grab its knob, or press on the time axis, to move it */
.dcx .dc-playhead { opacity: 1; z-index: 7; }
.dcx .dc-rollwrap { position: relative; }

.vb .dc-ab { margin-top: 0.3rem; }
.dc-grip { position: absolute; top: 0; bottom: 0; left: -6px; width: 13px; pointer-events: auto; cursor: ew-resize; touch-action: none; }
.dc-grip:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.scrubbing, .scrubbing * { cursor: grabbing !important; }
.dcx .pf-axis { cursor: pointer; touch-action: none; }

/* TRIA: rhythm, three timbre prompts, output */
/* TRIA, drawn as the system: input and its rhythm features; the model, with the drum sound it is given; the drums */
.tr > .dc-stage::after { display: none; }
.tr-node { font: 700 1.05rem/1 Arial, Helvetica, sans-serif; letter-spacing: 0.06em; padding: 0.55rem 1rem; }
/* TRIA's line runs straight from the features block to the drums block, so the row touches both */
.tr .fl-row { height: 4.4rem; margin: 0; }
.tr .tr-spec { height: 3.5rem; }
.dc.tr { --label: 5.4rem; }
.tr .tr-feat { height: 1.7rem; }
.tr .tr-feat-name { color: var(--ink); text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; bottom: auto; top: 50%; transform: translateY(-50%); }
.tr .tr-spec .dc-spec { background: #000004; transition: filter 0.18s; }
.tr[data-hear="out"] .tr-in .dc-spec, .tr[data-hear="in"] .tr-out .dc-spec { filter: grayscale(1) brightness(0.85); }

/* Deep audio watermarks are shallow */
.sh .sh-audio { height: 4.2rem; }
/* fixed columns, so a bold (selected) row can't nudge them */
.sh-table th:nth-child(2) { width: 8rem; } .sh-table th:nth-child(3) { width: 5.9rem; }
.sh-table td:first-child { overflow: hidden; text-overflow: ellipsis; }
.sh-table { width: calc(100% - var(--label)); margin-left: var(--label); border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; margin-top: 0.1rem; }
.sh-table th, .sh-table td { padding: 0.2rem 0.5rem 0.2rem 0; text-align: left; font-weight: 400; white-space: nowrap; }
.sh-table th:not(:first-child), .sh-table td:not(:first-child) { text-align: right; padding-right: 0; padding-left: 0.75rem; }
.sh-table thead th { color: var(--gray); border-top: 1px solid var(--ink); border-bottom: 0.5px solid var(--ink); }
.sh-table tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
.sh-table tr.sh-first td { border-top: 0.5px solid var(--rule); }
.sh-table tbody tr { cursor: pointer; color: var(--gray); transition: color 0.12s, background-color 0.12s; }
.sh-table tbody tr:hover { color: var(--ink); }
.sh-table tbody tr.on { color: var(--ink); outline: 2px solid var(--ink); outline-offset: -1px; }
.sh-table tbody tr.on td { font-weight: 700; }
/* each row plays its version: a play mark shows on rollover, and on the chosen row (pause while it plays) */
.sh-table tbody td:first-child { position: relative; padding-left: 1.05rem; }
.sh-table tbody tr td:first-child::before { content: "\25B6"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 0.6rem; color: transparent; transition: color 0.12s; }
.sh-table tbody tr:hover td:first-child::before { color: #9a9a9a; }
.sh-table tbody tr.on td:first-child::before { color: var(--ci); }
.sh-table tbody tr.sounding td:first-child::before { content: "\2759\2759"; letter-spacing: -0.1em; }
.sh-table tbody tr:hover td:first-child { text-decoration: none; }
.sh-table td:not(:first-child) { color: var(--ink); }
.sh-table th:not(:first-child), .sh-table td:not(:first-child) { padding-right: 0.45rem; }
.sh-table tbody tr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* Code drift: one row of tokens per DAC variant trained in the paper */
.cd-tokens { height: 2.5rem; }
.cd-grid { position: absolute; inset: 0.25rem 0.3rem; width: calc(100% - 0.6rem); height: calc(100% - 0.5rem); }
.cd .pf-ann { font-weight: 700; }
.cd .pf-row { padding-top: 0.15rem; }

/* Text2FX */
.fx-eq { height: 7.2rem; }
.fx-eq-canvas, .fx-space-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx .fx-space { height: 4.6rem; }

/* MaskMark */
.dc.mm { --label: 7.2rem; }
.mm .mm-tall { height: 4.4rem; }
.mm .pf-cbar { margin-left: auto; }
.mm .dc-spec { transition: opacity 0.2s; }

/* VoiceBlock: the spectrogram of what you hear, the filter as ridge lines beneath it */
.vb .vb-spec { height: 5.4rem; }
.vb .vb-filter { height: 6.6rem; }
.vb .vb-filter .dc-track { box-shadow: inset 0 1px var(--grid); }
.vb .dc-spec { transition: opacity 0.12s; }
.vb .dc-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; }
.vb .pf-cbar { margin-left: auto; }
/* the verdict keeps one width, so the diagram doesn't move when it changes */
.vb-verdict { flex: 0 0 8.6rem; font-size: 0.74rem; line-height: 1.2; color: var(--gray); font-variant-numeric: tabular-nums; }
.vb-verdict b { display: block; font-size: 1.15rem; color: var(--ink); }
.vb-verdict.fooled b { color: var(--ci); }

/* Filter attack: the source and three attacked recordings on one level scale, then what they are fooling */
.af .af-spec { height: 2.9rem; }
.af .af-target { flex: 0 0 28%; }
.af .fl-track > .fl-h { flex: 1.8 1 6.5rem; } /* room for the rate over the arrow */
/* rows you are not hearing go gray */
.af .af-spec .dc-spec { transition: filter 0.18s; }
.af .af-spec:not(.is-on) .dc-spec { filter: grayscale(1) brightness(0.85); }

/* a step of the process, drawn between framed blocks: lines with arrowheads, and a node on them */
.fl-split::after { display: none; }
.fl-split > .dc-stage + .fl-row, .fl-split > .fl-row + .dc-stage { margin-top: 0; }
.fl-row { height: 3.9rem; margin: 0.35rem 0; --line: var(--ink); }
.pf-axis + .fl-row { margin-top: 0; }
.fl-label { justify-content: flex-end; }
.fl-track { display: flex; align-items: center; min-width: 0; }
.fl-gap, .fl-h { flex: 1 1 0; min-width: 0.9rem; height: 0; }
.fl-h { position: relative; border-top: 1.25px solid var(--line); margin: 0 0.55rem; }
.fl-h::after { content: ""; position: absolute; right: -1px; top: -4.6px; border-left: 7px solid var(--line); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.fl-cap { position: absolute; left: 50%; bottom: 0.32rem; transform: translateX(-50%); font: 600 0.72rem/1 var(--sans); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fl-cap.ours { color: var(--ci); }
.fl-nodewrap { position: relative; align-self: stretch; display: flex; align-items: center; }
.fl-nodewrap::before { content: ""; position: absolute; left: calc(50% - 0.6px); top: 0; height: 50%; border-left: 1.25px solid var(--line); }
.fl-through::before { height: 100%; }
.fl-through::after { content: ""; position: absolute; left: calc(50% - 4px); bottom: 0; border-top: 7px solid var(--line); border-left: 4px solid transparent; border-right: 4px solid transparent; }
.fl-node { position: relative; z-index: 1; padding: 0.5rem 0.9rem; border-radius: 4px; background: var(--paper); box-shadow: 0 0 0 1.25px var(--ink); font: 700 0.82rem/1 var(--sans); white-space: nowrap; }
/* a clip you can click to hear, inside the diagram */
.fl-thumb { position: relative; height: 2.6rem; overflow: hidden; border-radius: 2px; background: #000004; transition: box-shadow 0.12s; }
.fl-label .fl-thumb { width: calc(var(--label) - 0.55rem); }
.fl-thumb img { width: 100%; height: 100%; object-fit: fill; }
.fl-thumb { cursor: pointer; }
.fl-thumb img { transition: filter 0.18s; }
.fl-thumb:not(.is-playing) img { filter: grayscale(1) brightness(0.85); } /* gray unless it is what you hear */

/* TagBox: the mixture's tint (energy TagBox kept) is drawn green; turn it to this area's blue */
.tb .tb-lane { height: 4.6rem; }
.tb .tb-space { height: 4.4rem; margin-bottom: 0.45rem; }
.tb-space-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb .tb-space .dc-track { box-shadow: none; }
.tb .tb-lane:first-child .dc-spec { filter: hue-rotate(95deg) saturate(2.4); opacity: var(--tb-mix, 1); transition: opacity 0.15s; }
.tb .tb-lane:nth-child(2) .dc-spec { opacity: var(--tb-out, 1); transition: opacity 0.15s; }
.tb-fade { flex: 1 1 12rem; display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.tb-fade input { flex: 1; min-width: 4rem; }
.tb-end { white-space: nowrap; transition: color 0.15s; }
.tb-mix { color: rgb(17 17 17 / calc(0.45 + 0.55 * var(--mix, 0))); }
.tb-out { color: rgb(17 17 17 / calc(1 - 0.55 * var(--mix, 0))); }

/* HARP: screen recordings, framed like a figure's image */
.dc.hp { --label: 0px; }
.hp .dc-stage::after { display: none; }
.hp-screen { position: relative; width: 100%; max-height: 26rem; background: #202325; display: grid; place-items: center; overflow: hidden; }
.hp-video { display: block; width: 100%; height: 100%; max-height: 26rem; object-fit: contain; cursor: pointer; background: #202325; }
.hp-big { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.2s; }
.hp-big svg { box-sizing: content-box; width: 1.2rem; height: 1.2rem; padding: 0.9rem 0.85rem 0.9rem 0.95rem; border-radius: 50%; fill: #fff; background: var(--ci); box-shadow: 0 2px 12px rgb(0 0 0 / 0.35); transition: transform 0.15s var(--ease), filter 0.15s; }
.hp-big:hover svg { transform: scale(1.06); filter: brightness(1.1); }
.hp.playing .hp-big { opacity: 0; pointer-events: none; }
.hp .pf-axis { display: none; }
.hp .dc-foot { padding-top: 0.5rem; }
.hp-bar { position: relative; flex: 1 1 8rem; min-width: 4rem; height: 1.3rem; cursor: pointer; touch-action: none; }
.hp-bar::before, .hp-fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; }
.hp-bar::before { background: var(--ink); }
.hp-fill { height: 3px; margin-top: -1px; background: var(--ci); transform: scaleX(0); transform-origin: left; }
.hp-time { white-space: nowrap; color: var(--gray); font-variant-numeric: tabular-nums; }
.hp-caption { flex-basis: 100%; color: var(--gray); line-height: 1.35; }

@container (max-width: 26rem) {
  .vb-verdict { flex-basis: 6.6rem; }
  .sh-table td:first-child { white-space: normal; }
  .sh-table th:nth-child(2) { width: 6.2rem; white-space: normal; } .sh-table th:nth-child(3) { width: 3.9rem; white-space: normal; }
  .sh-table th:not(:first-child), .sh-table td:not(:first-child) { padding-left: 0.45rem; }
  .fl-node { padding: 0.42rem 0.55rem; font-size: 0.74rem; }
  .fl-h { margin: 0 0.3rem; }
  .dc { --label: 4.3rem; font-size: 0.74rem; }
  .dc.hp { --label: 0px; }
  .dc-bar { padding-left: 0; }
    .pf-cbar { margin-left: 0; }
}

/* ——— music: the rabbit player ——— */
.page > .player { position: relative; width: min(100%, 27rem); margin: 8rem auto 0; }
.player-card {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 16px;
}
.disc { width: 7.5rem; height: 7.5rem; flex: none; border-radius: 50%; overflow: hidden; border: 1px solid var(--ink); background: var(--paper); will-change: transform; }
.disc img { width: 100%; height: 100%; object-fit: cover; }
.player-controls { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.1rem; }
.player-controls > * { color: var(--blue); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; transition: color 0.12s, transform 0.1s; }
.player-controls > *:hover { color: var(--ink); text-decoration: none; }
.player-controls > *:active { transform: scale(0.92); }
.player-controls svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.player-controls .big svg { width: 2.2rem; height: 2.2rem; }
.player-tab {
  position: absolute; z-index: 1; left: calc(1.4rem + 7.5rem + 1.25rem); right: 1.2rem; bottom: calc(100% - 1px);
  padding: 0.4rem 0.4rem 0;
  border: 1px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: repeating-linear-gradient(135deg, var(--ink) 0 1px, transparent 1px 5px) var(--paper);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.player.playing .player-tab, .player.paused .player-tab { transform: none; }
.player-tab-inner { background: var(--paper); border: 1px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 0.45rem 0.6rem 0.5rem; }
.player-title { font-weight: 700; font-size: 0.9rem; line-height: 1.2; text-wrap: balance; }
.player-seek { position: relative; height: 1rem; margin-top: 0.2rem; cursor: pointer; touch-action: none; }
.player-seek::before, .player-seek span { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.player-seek::before { background: var(--rule); }
.player-seek span { background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left; }
.player-time { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.chain { display: grid; justify-items: center; text-align: center; margin: 3rem auto 0; }
.chain li { display: grid; justify-items: center; }
.chain span { font-size: 0.85rem; color: var(--gray); }
.chain a { font-weight: 700; }
.chain .arrow { width: 14px; height: 30px; margin: 0.5rem 0; color: var(--ink); }
.chain .arrow path { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s var(--ease) forwards; animation-delay: calc(0.6s + var(--i) * 0.35s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 26rem) {
  .disc { width: 5.6rem; height: 5.6rem; }
  .player-card { padding: 0.9rem 1rem; gap: 0.9rem; }
  .player-controls { gap: 0.5rem; }
  .player-tab { left: calc(1rem + 5.6rem + 0.9rem); right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chain .arrow path { animation: none; stroke-dashoffset: 0; }
  .player-tab { transition: none; }
}


/* music page (not yet set as a paper) */
.page { max-width: 62rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) 5rem; font-family: var(--sans); }
.page h1 { font-size: clamp(2.3rem, 6.5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.025em; }
.page .links { display: flex; gap: 1.25rem; margin-top: 0.75rem; }
.page a { color: var(--link); }
.page .intro-text { max-width: 38rem; font-size: 1.1rem; margin-top: 1.4rem; }

@media print {
  .line-nums, .pp-close { display: none; }
}

/* below the text (narrow screens), the demo's toolbar wraps above it instead of overhanging */
.paper .pp-bar { position: static; flex-wrap: wrap; margin-bottom: 0.35rem; }
.paper .proj-panel { margin-top: 1rem !important; }
.side-fig .pp-close { position: absolute; top: -2.4rem; right: -0.5rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink); margin: 0; transition: background-color 0.12s; }
.side-fig .pp-close svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linecap: butt; }
.side-fig .pp-close:hover { background: #ececea; }

/* reference links: a quiet row of icons under each entry */
/* each entry's links: plain words in hyperref boxes, like every other link on the page */
/* each entry's links: words set the way hyperref's colorlinks option sets them, no boxes */
.link-row { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0.2rem 0 0; }
.paper .link-row a { border: 0; margin: 0; padding: 0.1em 0; color: var(--url); transition: color 0.12s; }
.paper .link-row a:hover { background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link-row a + a::before { content: "\00b7"; display: inline-block; padding: 0 0.5em; color: #b5b5b5; }
.references li + li { margin-top: 0.55rem; }

.entry[data-proj="dcomposer"] { --c: var(--yellow); } .entry[data-proj="tria"], .entry[data-proj="voiceblock"], .entry[data-proj="text2fx"] { --c: #6aa0ff; }
.entry[data-proj="tagbox"] { --c: #33c27a; } .entry[data-proj="maskmark"] { --c: var(--pink); } .entry[data-proj="shallow"], .entry[data-proj="filter"] { --c: #ff7a6e; }
.entry[data-proj="codedrift"] { --c: var(--orange); } .entry[data-proj="harp"] { --c: #a57bf0; }

/* outline (wide screens only) */
.toc { display: none; }
@media (min-width: 89.5rem) {
  :root { --col: 42rem; }
  .sheet { grid-template-columns: 8.5rem var(--col) 29rem; column-gap: 3.2rem; }
  .sheet > .paper { grid-column: 2; } .sheet > .margin { grid-column: 3; }
  .toc { display: flex; flex-direction: column; grid-column: 1; grid-row: 1; position: sticky; top: 4.5rem; align-self: start; margin-top: 4.5rem; font: 1.08rem/1.3 var(--serif); gap: 0.16rem; }
  .toc a { color: #9a9a9a; padding: 0.08rem 0; transition: color 0.2s; border: 0; }
  .toc a:hover { color: var(--ink); }
  .toc .toc-sec { color: #7a7a7a; margin-top: 0.4rem; }
  .toc .toc-sub { padding-left: 0.7rem; }
  .toc a.here { color: var(--ink); font-weight: 700; }
  .toc .toc-proj:not(.shown) { display: none !important; }
  .toc .toc-proj { padding-left: 1.1rem; display: flex; align-items: center; gap: 0.35rem; font-size: 0.98rem; }
  .toc .toc-proj::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--c); opacity: 0.55; flex: none; }
  .toc .toc-proj.on { color: var(--ink); }
  .toc .toc-proj.on::before { opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
}

#research li .proj { font-weight: 400; }
/* narrow screens: a reference's demo opens beneath it at full width */
.references li > .proj-panel { grid-column: 1 / -1; margin-top: 0.8rem !important; }
.references li:has(> .proj-panel) .link-row { display: none; }

/* research areas: one color each, used for highlights, dots, and leader lines */
:root { --create: #8fb0ff; --limits: #ff9a90; --safe: #7fdca3; --create-ink: #0b3fff; --limits-ink: #e8140c; --safe-ink: #009a3e; }
[data-proj="dcomposer"], [data-proj="tria"], [data-proj="tagbox"], [data-proj="text2fx"], [data-proj="harp"] { --c: var(--create); }
[data-proj="shallow"], [data-proj="codedrift"], [data-proj="filter"] { --c: var(--limits); }
[data-proj="maskmark"], [data-proj="voiceblock"] { --c: var(--safe); }
.area-create { color: var(--create-ink); } .area-limits { color: var(--limits-ink); } .area-safe { color: var(--safe-ink); }

/* news: scrolling continues to the page at the ends */
.tab-scroll { overscroll-behavior: auto; }

.pp-bar { display: none; }
.references li.ps { cursor: pointer; }
.references li.ps .link-row { cursor: auto; }
.references li:has(> .proj-panel) .link-row { display: flex; }

/* Figure 1: the joke, for those who want it explained */
.side-fig a { border: 1px solid var(--hr-url); padding: 0 1px; margin: 0 -1px; }
.side-fig a:hover { background: rgb(0 200 230 / 0.12); }
/* the GIBBON sign in the photo is the link to the paper it quotes; it shows itself on hover, as a hyperref box */
.side-fig .photo { position: relative; }
.side-fig a.sign { position: absolute; left: 35.5%; top: 58.5%; width: 45%; height: 30.5%; margin: 0; padding: 0; border: 1px solid transparent; transition: border-color 0.12s, background-color 0.12s; }
.side-fig a.sign:hover, .side-fig a.sign:focus-visible { border-color: var(--hr-url); background: rgb(0 200 230 / 0.12); }
.pop-eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0.35rem; align-items: center; margin-bottom: 0.45rem; text-align: center; font: 0.7rem/1.2 var(--sans); }
.pop-eq span { position: relative; display: block; }
.pop-eq img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 0 0.2rem; max-height: none; }
.pop-eq img.px { image-rendering: pixelated; }
.pop-eq .over { position: absolute; top: 0; left: 0; opacity: 0.08; mix-blend-mode: hard-light; }
.pop-eq b { font: 700 0.85rem var(--serif); margin-top: -1.2rem; }

.pop-fig { width: 100%; max-height: none !important; margin: 0 0 0.4rem !important; }


.references .lead { margin: 0 0 0.7rem; }

.proj-panel.pending { visibility: hidden; }
.page-tail { pointer-events: none; }
@media print {
  .toc, .margin, .leader, .proj-panel, .page-tail, .side-fig .pp-close { display: none !important; }
  .tab-scroll { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .sheet { display: block; }
}

/* ——— two looks. Plain: the paper on white, nothing around it. Viewer (html.pdfview): the paper as a page in a PDF
   viewer, after Chrome's: a dark toolbar, the page on a gray canvas, the outline as the viewer's side pane, arXiv's
   stamp in the page's left margin, and the demos and photos as annotations on the canvas beside the page. ——— */
.viewerbar { display: none; }
.pane-tabs, .pane-thumbs { display: none; }
.pane-outline { display: contents; }
.spine { display: none; }

html.pdfview { --bar: #323639; --side: #28292b; --canvas: #525659; --barH: 3.1rem; --pp: clamp(1.25rem, 5vw, 3.5rem); scroll-padding-top: calc(var(--barH) + 1.5rem); }
.pdfview body { background: var(--canvas); padding-top: var(--barH); }
.pdfview .viewerbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--barH); align-items: center; column-gap: 0.9rem; padding: 0 0.9rem 0 0.7rem; background: var(--bar); color: #f1f1f1;
  font: 400 0.95rem/1 var(--sans); box-shadow: 0 1px 0 #1c1c1c, 0 2px 6px rgb(0 0 0 / 0.3);
}
.vw-title { min-width: 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-page { white-space: nowrap; color: #d0d0d0; font-variant-numeric: tabular-nums; }
.vw-n { width: 2.1rem; padding: 0.3rem 0.2rem; margin-right: 0.3rem; border: 0; border-radius: 2px; background: #191b1c; color: #fff; font: inherit; text-align: center; outline: none; }
.vw-n:focus { box-shadow: 0 0 0 2px #8ab4f8; }
.vw-tools { display: flex; gap: 0.25rem; justify-self: end; }
.vw-menu, .vw-tools a, .vw-tools button { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; color: #f1f1f1; background: none; cursor: pointer; transition: background-color 0.12s; }
.vw-menu:hover, .vw-tools a:hover, .vw-tools button:hover { background: #4a4d51; }
.vw-menu svg, .vw-tools svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vw-menu { visibility: hidden; width: 0.4rem; }
.pdfview .cite-pop { z-index: 60; }

/* the page: white, with a page's shadow, on the canvas */
.pdfview .paper { background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / 0.3), 0 6px 24px rgb(0 0 0 / 0.28);
  max-width: calc(var(--col) + 2 * var(--pp)); margin: 1.5rem auto 2.5rem; padding-inline: var(--pp); }
@media (max-width: 40rem) {
  html.pdfview { --barH: 2.8rem; --pp: 1.1rem; }
  .pdfview .viewerbar { position: absolute; grid-template-columns: auto minmax(0, 1fr) auto; } /* on a phone the bar scrolls away with the page */
  .vw-page { display: none; }
  .pdfview .paper { margin: 0.5rem 0.4rem 1.5rem; }
}

@media (min-width: 82rem) {
  html.pdfview { --col: 42rem; --pp: 3rem; }
  .pdfview .sheet { grid-template-columns: calc(var(--col) + 2 * var(--pp)) minmax(25rem, 29rem); column-gap: 2.75rem; padding: 0 1.5rem; }
  .pdfview .sheet > .paper { grid-column: 1; } .pdfview .sheet > .margin { grid-column: 2; }
  .pdfview .paper { max-width: none; margin: 1.75rem 0 3rem; padding: 4rem var(--pp) 5rem; }
  .pdfview .margin { margin-top: 1.75rem; }
  .vw-menu { visibility: visible; width: 2.3rem; }
  /* arXiv's stamp, down the page's left margin */
  .pdfview .spine { display: block; position: absolute; left: calc(var(--pp) / 2 - 0.8rem); top: 14rem; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg);
    font: 400 1.55rem/1 var(--serif); letter-spacing: 0.01em; color: #9b9b9b; white-space: nowrap; user-select: none; }

  /* the side pane: hidden here unless asked for, when it lies over the canvas */
  .pdfview .toc { display: none; position: fixed; top: var(--barH); left: 0; bottom: 0; align-self: stretch; width: var(--sideW, 14rem); margin: 0; padding: 0 0 1.5rem; z-index: 40;
    flex-direction: column; gap: 0; overflow-y: auto; background: var(--side); font: 400 0.9rem/1.3 var(--sans); box-shadow: 1px 0 0 #1b1c1d, 4px 0 18px rgb(0 0 0 / 0.25); scrollbar-width: thin; scrollbar-color: #5f6368 transparent; }
  .pdfview.side-flip .toc { display: flex; }
  .pdfview .pane-tabs { display: flex; justify-content: center; gap: 0.5rem; padding: 0.7rem 0 0.6rem; position: sticky; top: 0; z-index: 1; background: var(--side); }
  .pdfview .pane-tabs button { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: #bdc1c6; transition: background-color 0.12s, color 0.12s; }
  .pdfview .pane-tabs button:hover { background: #3c4043; color: #fff; }
  .pdfview .pane-tabs button[aria-selected="true"] { background: #4a4d51; color: #fff; }
  .pdfview .pane-tabs svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .pdfview .pane-outline { display: flex; flex-direction: column; padding: 0.2rem 0.6rem; }
  .pdfview .toc a, .pdfview .toc .toc-sec { color: #e8eaed; margin: 0; padding: 0.45rem 0.75rem; border-radius: 0.3rem; font-weight: 400; transition: background-color 0.12s; }
  .pdfview .toc a:hover { background: #3c4043; color: #fff; }
  .pdfview .toc a.here { background: #4a4d51; color: #fff; font-weight: 400; }
  .pdfview .toc[data-pane="thumbs"] .pane-outline, .pdfview .toc[data-pane="outline"] .pane-thumbs { display: none; }
  .pdfview .pane-thumbs { display: flex; flex-direction: column; align-items: center; padding: 0.9rem 0 0; }
  .pdfview .thumb { position: relative; display: block; width: 8rem; padding: 0; background: #fff; outline: 3px solid #8ab4f8; outline-offset: 3px; cursor: pointer; touch-action: none; }
  .pdfview .thumb canvas { display: block; width: 100%; }
  .pdfview .thumb-view { position: absolute; left: 0; right: 0; top: 0; background: rgb(138 180 248 / 0.22); box-shadow: inset 0 0 0 1px #8ab4f8; pointer-events: none; }
  .pdfview .thumb-n { margin-top: 0.75rem; color: #e8eaed; font-size: 0.85rem; }

  /* annotations: each a white card on the canvas, its edges soft, its corners marked */
  /* annotations are more of the same paper: the page's white and the page's shadow, the sheet's edge their frame
     (so no corner marks here), the close button in the sheet's corner */
  .pdfview .margin .proj-panel, .pdfview .margin .side-fig { --fr: 1.4rem; background: var(--paper);
    box-shadow: 0 0 0 var(--fr) var(--paper), 0 1px 3px var(--fr) rgb(0 0 0 / 0.3), 0 6px 24px var(--fr) rgb(0 0 0 / 0.28); }
  .pdfview .margin .mk-corners { display: none; }
  .pdfview .margin .proj-panel > .pp-close, .pdfview .margin .side-fig > .pp-close { top: calc(-1 * var(--fr)); right: calc(-1 * var(--fr)); width: 1.5rem; height: 1.5rem; }
  .pdfview .margin .proj-panel > .pp-close svg, .pdfview .margin .side-fig > .pp-close svg { width: 0.8rem; height: 0.8rem; }
}
/* wide enough for the side pane to stay open beside the page (the menu button folds it away) */
@media (min-width: 97rem) {
  html.pdfview { --pp: 4.5rem; --sideW: 14rem; }
  .pdfview .toc { display: flex; box-shadow: 1px 0 0 #1b1c1d; }
  .pdfview.side-flip .toc { display: none; }
  .pdfview .sheet { margin-left: var(--sideW); }
  .pdfview.side-flip .sheet { margin-left: 0; }
}
@media print {
  .viewerbar { display: none !important; }
  .pdfview body { padding: 0; background: #fff; }
  .pdfview .paper { box-shadow: none; margin: 0; }
}

/* ——— margin items: three corner marks and a close button in the fourth corner; drag by the frame to move ——— */
.mk-corners { display: none; }
.proj-panel > .pp-close { position: absolute; top: -0.2rem; right: -0.45rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink); margin: 0 !important; transition: background-color 0.12s; }
.proj-panel > .pp-close svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linecap: butt; }
.proj-panel > .pp-close:hover { background: #ececea; }
@media (min-width: 82rem) {
  .margin .proj-panel, .margin .side-fig { --fr: 0.8rem; --arm: 0.95rem; }
  .margin .mk-corners { display: block; position: absolute; inset: calc(-1 * var(--fr)); pointer-events: none; }
  .margin .mk-corners i { position: absolute; width: var(--arm); height: var(--arm); border: 0 solid var(--ink); pointer-events: auto; cursor: grab; transition: border-color 0.15s; }
  .margin .mk-corners i::after { content: ""; position: absolute; inset: -0.45rem; }
  .margin .mk-corners .tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
  .margin .mk-corners .bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
  .margin .mk-corners .br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
  .margin .proj-panel:hover .mk-corners i, .margin .side-fig:hover .mk-corners i, .margin .dragging .mk-corners i { border-color: #a6a6a6; }
  /* the close button is the fourth corner */
  /* centered on the frame's true top-right corner */
  .margin .proj-panel > .pp-close, .margin .side-fig > .pp-close { top: calc(-1 * var(--fr) - 1rem); right: calc(-1 * var(--fr) - 1rem); width: 2rem; height: 2rem; }
  .margin .proj-panel > .pp-close svg, .margin .side-fig > .pp-close svg { width: 0.9rem; height: 0.9rem; }
  .margin .proj-panel .pp-caption, .margin .side-fig .photo, .margin .news-fig img { cursor: grab; }
  .margin .dragging, .margin .dragging * { cursor: grabbing !important; user-select: none; }
  .margin .dragging { z-index: 4; }
}

/* line numbers are retired (the code that sets them is off in paper.js) */
.line-nums { display: none !important; }

/* close buttons answer a hover by going light, like the corner marks, rather than with a disc */
.side-fig .pp-close, .proj-panel > .pp-close { transition: color 0.15s; }
.side-fig .pp-close:hover, .proj-panel > .pp-close:hover { background: none; color: #a6a6a6; }

/* the close Xs: drawn at the news table's thick-rule weight whatever their size */
.pp-close svg path { vector-effect: non-scaling-stroke; }

/* ——— demo marks: the project's logo (and name), set in the caption after the figure number ——— */
.mk-inline { font-style: normal; white-space: nowrap; }
.mk-inline .mk-icon { display: inline; height: 1.2em; width: auto; vertical-align: -0.28em; margin-right: 0.22em; }
.proj-panel[data-proj="filter"] .mk-inline .mk-icon { height: 1.08em; }
.mk-inline .mk-name { font: 700 0.9em/1 var(--sans); letter-spacing: -0.01em; }
.mk-inline .mk-pill { font-size: 0.82em; vertical-align: 0.04em; }
.mk-inline .mk-letters { font-size: 0.98em; }
/* captions go below figures; the first line keeps clear of the close button when the figure sits in the text */
.proj-panel > .pp-caption { margin: 0.85rem 0 0; }
.paper .proj-panel > .pp-caption { padding-right: 0; }
/* in the text (narrow screens) the close button gets its own strip above the figure, clear of the demo's controls */
.paper .proj-panel { padding-top: 2rem; }
.paper .proj-panel > .pp-close { top: -0.1rem; }

/* the footnote's button, boxed like a link that leaves the page (it opens Pangram) */
.paper .pangram { font: inherit; color: inherit; border: 1px solid var(--hr-url); padding: 0 2px; margin-left: 0.15em; cursor: pointer; transition: background-color 0.12s; }
.paper .pangram:hover { background: rgb(0 200 230 / 0.12); }
/* the same, at the foot of the outline, with its dial; the footnote's copy is for screens without an outline */
.toc .toc-pangram { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; margin-top: 0.4rem; padding: 0.08rem 0; color: #7a7a7a; font: inherit; text-align: left; cursor: pointer; transition: color 0.2s; }
.toc .toc-pangram:hover, .toc .toc-pangram:focus-visible { color: var(--ink); }
.toc-pangram .dial { width: 1.25rem; height: 0.75rem; flex: none; fill: none; stroke-width: 2.2; overflow: visible; }
.toc-pangram .dial .needle { fill: currentColor; stroke: none; transform-origin: 10px 10.5px; transition: transform 0.35s var(--ease); }
.toc-pangram:hover .dial .needle { transform: rotate(18deg); }
@media (min-width: 89.5rem) { html:not(.pdfview) .footnote .pangram { display: none; } }
.pdfview .toc .toc-pangram { color: #e8eaed; padding: 0.45rem 0.75rem; margin: 0.6rem 0.6rem 0; }
/* a row label's playing bars go before its text, so they never push the text over: every label in a figure ends
   at the same edge, playable or not */
.dc-label > .pf-bars { order: -1; flex: none; width: 0; margin: 0; justify-content: flex-end; position: relative; left: -0.35rem; } /* no width of its own: it hangs out to the left */
.dc-label > .pf-bars i { flex: none; }
