.trace-toolbar {display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:.65rem 0}
.trace-toolbar select {flex:1;min-width:12rem;max-width:100%;padding:.5rem}
.trace-layout {display:grid;grid-template-columns:minmax(150px,.4fr) minmax(0,1fr) minmax(240px,.65fr);gap:1.5rem}
.trace-layout>* {min-width:0}
.trace-passage {font-size:1.35rem;line-height:2.25;white-space:pre-wrap;overflow-wrap:anywhere}
.trace-passage pre {font:inherit;white-space:pre-wrap;margin:.5rem 0}
.trace-word {display:inline;font:inherit;color:inherit;background:none;border:0;padding:.05em .08em;cursor:pointer}
.trace-changed {background:#c9a24b30;border-bottom:2px solid #9f741e}
.trace-selected {outline:2px solid #477b88;outline-offset:1px}
.trace-evidence {border-top:1px solid #8884;padding:.65rem 0;font-size:.85rem}
.trace-evidence p {margin:.3rem 0}
#traceDetails {padding:0 .5rem}
#traceDetails,#tracePassage {height:32rem;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
#traceStepTitle {min-height:2.8em;line-height:1.4}
#traceStepStatus {min-height:2.8em;line-height:1.4;margin:.25rem 0}
#traceBoundaryLegend {min-height:3rem;box-sizing:border-box}
#parseInspection {overflow-anchor:none}
#parseInspection pre {white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;line-height:1.5}
#parseInspection summary {cursor:pointer;font-size:.8rem;margin:.5rem 0}
.trace-muted,#traceWarning,#tracePersistence,#traceIdentity,#traceStepStatus {font-size:.8rem;opacity:.8}
#traceStatus {font-size:.85rem}
.parse-inspecting #readingSurface,.parse-inspecting #readerToolbar,.parse-inspecting #inspector,.parse-inspecting #inspectParse {display:none!important}
#parseInspection {padding:1rem 0}
#parseInspection h2,#parseInspection h3 {margin:.5rem 0}
@media(max-width:800px){.trace-layout{grid-template-columns:1fr}#traceDetails,#tracePassage{height:24rem}.trace-toolbar select{flex-basis:100%}.trace-passage{font-size:1.15rem}}

#traceStage {width:100%;max-width:100%;font:inherit;font-size:.75rem;padding:.3rem;height:32rem;border:1px solid #8884;border-radius:.35rem;background:transparent;color:inherit}
#traceStage option {padding:.4rem .2rem}
@media(max-width:800px){#traceStage{height:12rem}}
