@font-face{font-family:Inter;src:url('/~pmmc/assets/fonts/inter-variable-normal.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Latin Modern';src:url('/~pmmc/assets/fonts/latin-modern/lmroman10-regular.otf') format('opentype');font-weight:400;font-display:swap}
@font-face{font-family:'Latin Modern';src:url('/~pmmc/assets/fonts/latin-modern/lmroman12-bold.otf') format('opentype');font-weight:700;font-display:swap}
@font-face{font-family:'Latin Modern';src:url('/~pmmc/assets/fonts/latin-modern/lmroman10-italic.otf') format('opentype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Latin Modern Mono';src:url('/~pmmc/assets/fonts/latin-modern/lmmono10-regular.otf') format('opentype');font-display:swap}
:root{font-family:Inter,Arial,sans-serif;font-size:13px;color:#202938;background:#f6f5f2;font-synthesis:none;color-scheme:light;--wine:#751a2c;--line:#c9ced6;--muted:#536070;--path:#1f4e8c;--green:#286b2d;--red:#ba1524;--answer:#6b4500;--small:12px;--space:8px;--radius:8px}
*{box-sizing:border-box}body{margin:0}.demo{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,input,select{font:inherit;color:inherit}button,select,input[type=number],input[type=text]{border:1px solid #929dab;border-radius:6px;background:#fff;min-height:44px}button{padding:0 10px;cursor:pointer;font-size:13px;font-weight:600;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:hover{background:#f4ecee;border-color:var(--wine)}button:active{background:#eadddf}.primary{color:#fff;background:var(--wine);border-color:var(--wine)}.primary:hover{background:#571221}button:disabled{color:#68727e;background:#f3f3f3;border-color:#8792a1;cursor:default}a{color:var(--wine);text-underline-offset:3px}:focus-visible{outline:3px solid var(--wine);outline-offset:3px}select{padding:0 24px 0 8px;font-size:13px;max-width:100%}input{font-variant-numeric:tabular-nums}.icon{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip:focus{position:fixed;z-index:100;top:8px;left:12px;background:#fff;padding:14px}
.app-header{height:60px;flex:0 0 60px;display:flex;gap:16px;align-items:center;padding:6px 16px;border-bottom:1px solid var(--line);background:#fff}.institution{border-right:1px solid var(--line);padding-right:14px;display:flex;align-items:center}.institution img{width:68px;height:34px;object-fit:contain}.title{min-width:0}.title h1{font:700 24px/1.05 'Latin Modern',Georgia,serif;white-space:nowrap;margin:0 0 3px}.title p{font-size:12px;color:var(--muted);margin:0;white-space:nowrap}.title p span{display:none}.header-actions{margin-left:auto;display:flex;align-items:center;gap:6px}.header-actions button{background:#fff}.header-actions #helpOpen{border-color:transparent}.set-button-copy{text-align:left;max-width:185px}.set-button-copy b{display:block;font-size:12px;line-height:1.2;white-space:normal}.set-button-copy small{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.querybar{display:flex;align-items:center}.querybar form{display:flex;align-items:center;gap:6px}.coordinate{height:44px;display:flex;flex-direction:column;justify-content:center;border:1px solid #929dab;background:#fff;border-radius:6px;width:103px;padding:1px 7px}.coordinate span{font-size:12px;font-weight:600;color:var(--wine);line-height:14px}.coordinate input{border:none;min-height:24px;height:24px;width:100%;padding:0;font-size:14px;outline-offset:0}.coordinate:focus-within{outline:2px solid var(--wine);outline-offset:2px}.coordinate input:focus-visible{outline:0}.coordinate input[aria-invalid=true]{color:var(--red)}
.workbench{flex:1;min-height:0;padding:6px 16px 8px;display:grid;grid-template-rows:minmax(0,1fr) 52px 70px;gap:6px;position:relative}.comparison{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-height:0;grid-row:1}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;position:relative}.panel-head{height:48px;flex:0 0 48px;padding:2px 52px 2px 8px;display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:center;border-bottom:1px solid #e4e6ea}.panel-letter{font-size:12px;font-weight:700;color:#fff;background:var(--wine);width:26px;height:26px;border-radius:50%;display:grid;place-items:center}.panel-head label{min-width:0}.panel-head select{width:100%;border-color:transparent;font-weight:600;font-size:14px;padding-left:2px}.panel-head .rule{display:none}.inspect{position:absolute;top:2px;right:4px;border-color:transparent;padding:0}.scene{position:relative;flex:1;min-height:0;outline-offset:-4px;background:#fff;overflow:hidden;touch-action:none}.scene canvas{display:block;position:absolute;inset:0;width:100%;height:100%}.scene-layer{position:absolute;inset:0;pointer-events:none}
.landmark{position:absolute;display:grid;place-items:center;min-width:26px;height:26px;transform:translate(-50%,-50%);border:2px solid var(--green);background:#fff;color:var(--green);font-size:12px;font-weight:700;border-radius:50%;box-shadow:0 0 0 2px #fff;line-height:1}.landmark.vertex{border-radius:4px;padding:0 4px}.landmark.selected,.landmark.jump-source{background:var(--green);color:#fff}.landmark.selected{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--green)}.landmark.entered{border-style:double;border-width:4px}.landmark.removed{border-style:dashed;color:var(--muted);border-color:var(--muted);background:#fff}.landmark.removed.jump-source{background:#fff;color:var(--muted)}.jump-badge{position:absolute;right:-8px;top:-9px;width:17px;height:17px;background:var(--wine);color:#fff;border:1px solid #fff;border-radius:4px;display:grid;place-items:center;font:700 12px/1 Inter,Arial,sans-serif;box-shadow:0 0 0 1px var(--wine)}.q-label{position:absolute;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;background:var(--red);border:2px solid #fff;box-shadow:0 0 0 1px var(--red);color:#fff;display:grid;place-items:center;font:italic 400 18px/1 'Latin Modern',Georgia,serif}
.level-label{position:absolute;font-size:12px;color:var(--muted);transform:translateY(-50%);background:#fff;line-height:1.2;padding:3px 4px;border-radius:3px}.level-label small{font-size:12px}.level-label.active{color:var(--wine);font-weight:700;background:#f6e9ed}.level-label.ladder{transform:translate(-50%,-50%);border:1px solid var(--line);text-align:center;padding:3px 1px;font-size:12px}.level-label.ladder small{display:block;font-size:12px;font-weight:400}.detail-label{position:absolute;color:#202938;font-size:12px;font-weight:600;border-radius:4px;background:#fff;padding:2px 4px}.annotation{position:absolute;transform:translate(-50%,-50%);padding:2px 5px;background:#fff;color:var(--wine);font-size:12px;font-weight:600;line-height:18px;border:1px solid #dbc9ce;border-radius:4px;white-space:nowrap}
.context-stage{display:none}.event-region{flex:0 0 auto}.glyph-ink{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.event-strip{padding:5px 10px;min-height:46px;display:flex;align-items:center;gap:8px;border-top:1px solid #e4e6ea}.event-icon{position:relative;flex:0 0 26px;height:28px;border-radius:5px;display:grid;place-items:center;background:#eaf2fb;color:var(--path);font-size:17px;font-weight:700}.event-icon[data-stage=JUMP]{color:var(--green);background:#edf6ee}.event-text{font-size:12px;font-weight:500;line-height:1.3;margin:0}.event-text[data-stage=JUMP]{color:var(--green)}.event-text[data-stage=CROSS]{color:var(--red)}.event-meta{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;line-height:1.3;margin-top:2px}.memory-note{margin:0;padding:2px 10px 6px;min-height:24px;color:var(--muted);font-size:12px;line-height:1.3}.lens-trigger{margin-left:auto;min-width:62px;min-height:44px;font-size:12px;padding:0 7px;flex:0 0 auto}.lens-trigger[hidden]{display:none}.detail-canvas{width:100%;height:clamp(150px,calc(100dvh - 210px),300px);border:1px solid var(--line);border-radius:6px;background:#fff}.detail-note{font-size:13px}
.map-view-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 48px;min-height:48px;padding:2px 8px;border-bottom:1px solid var(--line);background:#fafaf9}
.map-view-controls>span{font-size:12px;color:var(--muted)}
.map-view-controls .hierarchy-open{min-height:44px;padding:0 12px;color:var(--wine);border-color:var(--wine);background:#f6eef0;font-size:13px}
.map-view-controls .hierarchy-open:hover{background:#ecdfe2}
.map-view-controls .hierarchy-open:focus-visible{outline:3px solid var(--wine);outline-offset:2px}
.mobile-tabs,.mobile-set-summary{display:none}.transport{grid-row:2;display:flex;align-items:center;gap:8px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:3px 6px}.transport-buttons{display:flex;gap:2px}.transport-buttons button{padding:0 8px;min-width:44px;border-color:transparent;background:#f6f5f2}.transport-buttons .primary{background:var(--wine);color:#fff;min-width:82px}.timeline{display:flex;align-items:center;gap:6px;flex:1;min-width:80px}.timeline input{width:100%;min-width:20px;accent-color:var(--wine);height:44px;margin:0}.timeline output{font-size:12px;font-variant-numeric:tabular-nums;min-width:56px;white-space:nowrap}.speed select{width:72px;padding:0 20px 0 7px}.query-actions{display:flex;align-items:center;gap:6px}.query-actions button{padding:0 8px}.coherence-label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.coherence-label>span{display:none}.coherence-label select{width:144px}#cancel{border-color:transparent;padding:0}#status{font-size:12px;color:var(--muted);margin:0;max-width:135px;line-height:1.25}
.scoreboard{grid-row:3;display:flex;align-items:stretch;gap:8px;min-width:0}.score-heading{width:110px;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;font-size:12px;line-height:1.2}.score-heading small{font-size:12px;color:var(--muted);margin-left:3px}.score-heading button{min-height:38px;border:0;justify-content:flex-start;padding:0;color:var(--wine);background:transparent;font-size:12px}.scores{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));flex:1;gap:6px;min-width:0}.score{padding:5px 8px;background:#fff;border:1px solid var(--line);border-radius:6px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:3px}.score-name{font-size:12px;line-height:1.2;color:var(--muted);white-space:normal}.score-values{font-variant-numeric:tabular-nums;font-size:12px;line-height:1.25}.score-values strong{font:400 20px/1 'Latin Modern',Georgia,serif;color:#202938}.score-values small{font-size:12px;display:block;color:var(--muted)}.score.selected{border-color:#aa7b87;background:#fbf5f7}.scoreboard>button{background:transparent;border:0;padding:0}
dialog{border:1px solid var(--line);border-radius:12px;padding:22px;max-width:min(680px,calc(100vw - 24px));width:630px;max-height:calc(100dvh - 30px);color:#202938;background:#fff;box-shadow:0 25px 90px #15203545}dialog::backdrop{background:#1b233766}.dialog-header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:16px}.dialog-header button{border:0;background:#f6f5f2}.dialog-header h2{font:700 26px/1.15 'Latin Modern',Georgia,serif;margin:0}.dialog-header .eyebrow{font-family:Inter,Arial,sans-serif;line-height:1.4;text-transform:uppercase;letter-spacing:.07em;color:var(--wine);font-size:12px;font-weight:600;margin:0 0 6px}dialog p,dialog li{font:400 17px/1.5 'Latin Modern',Georgia,serif}dialog h3{font:700 20px/1.2 'Latin Modern',Georgia,serif}dialog label{font-size:13px;display:flex;flex-direction:column;gap:6px}dialog .credit,dialog .hint{font:400 13px/1.5 Inter,Arial,sans-serif;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.25fr;gap:12px;margin-top:18px}.settings-grid label{min-width:0}.settings-grid input{width:100%;padding:8px}.settings-grid select{width:100%}.file-label{margin-top:20px}input[type=file]{max-width:100%;font-size:13px;min-height:44px}.check{flex-direction:row;align-items:center;min-height:44px}.check input{width:18px;height:18px;accent-color:var(--wine)}.mobile-coherence,.mobile-playback{display:none}#setupError{color:var(--red)}.dialog-links{display:flex;flex-direction:column;gap:10px}.guide-key{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}.guide-key p{display:flex;align-items:center;gap:10px}.key{position:relative;display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border:2px solid;border-radius:5px;font:600 14px Inter,Arial,sans-serif}.key.query{color:var(--red);border-radius:50%;font:italic 18px 'Latin Modern',Georgia,serif}.key.path{color:var(--path)}.key.memory{color:var(--green);border-radius:50%}.key.sample{color:var(--green)}.key.answer{color:var(--answer)}.key.transfer{color:#6a3d9a}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:right;padding:10px 8px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}th:first-child{text-align:left}th{font-weight:600}.trace-list{padding-left:24px;max-height:260px;overflow:auto}.trace-list li{padding:4px}.trace-list li.current{color:var(--wine);background:#f8ecf0}.exact-value{font:400 14px/1.5 'Latin Modern Mono',monospace;overflow-wrap:anywhere}
.catalogue-apply{position:sticky;bottom:-22px;margin:14px -22px -22px;padding:12px 22px;background:#fff;border-top:1px solid var(--line);z-index:4;display:flex;justify-content:flex-end}.catalogue-apply button{min-width:190px}.catalogue-dialog{width:940px;max-width:min(940px,calc(100vw - 24px))}.catalogue-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,1fr);gap:22px}.catalogue-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.catalogue-filters button{font-size:12px}.catalogue-filters [aria-pressed=true]{background:var(--wine);color:white;border-color:var(--wine)}.catalogue-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:360px;overflow:auto;padding:3px}.set-card{white-space:normal;text-align:left;display:grid;grid-template-columns:65px 1fr;align-items:center;gap:8px;padding:7px;min-height:95px;border-color:var(--line);font-weight:400}.set-card[aria-pressed=true]{border:2px solid var(--wine);background:#fbf5f7;padding:6px}.set-card svg{width:65px;height:65px;fill:var(--wine);background:#f8f7f4;border:1px solid #e4e6ea}.set-card strong{display:block;font-size:12px;line-height:1.3}.set-card small{display:block;color:var(--muted);font-size:12px;line-height:1.3;margin-top:3px}.set-details{border-left:1px solid var(--line);padding-left:20px;max-height:415px;overflow:auto}.set-details>svg{width:110px;height:110px;float:right;margin:0 0 8px 10px;fill:var(--wine);border:1px solid var(--line)}.set-details h3{margin:0 0 8px}.set-details p{font-size:16px;margin:8px 0}.set-details .set-class,.set-details .set-source,.set-details details,.set-details .set-count{font:400 12px/1.5 Inter,Arial,sans-serif}.set-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}.set-details details p{font:400 12px/1.5 Inter,Arial,sans-serif;overflow-wrap:anywhere}.set-details a{overflow-wrap:anywhere}.set-class{display:inline-block;background:#f4eef0;color:var(--wine);padding:3px 7px;border-radius:4px}.set-count{font-variant-numeric:tabular-nums}
@media(min-width:761px) and (max-width:1279px) and (min-height:551px){.institution{display:none}.app-header{height:112px;flex-basis:112px;display:grid;grid-template-columns:1fr auto;gap:4px 10px}.title{grid-column:1;grid-row:1}.header-actions{grid-column:2;grid-row:1}.querybar{grid-column:1 / -1;grid-row:2}.timeline{display:none}.title h1{font-size:22px}.title p{max-width:275px;white-space:normal}.set-button-copy{max-width:125px}.query-actions button .button-label{display:none}#status{display:none}.scoreboard>button{display:none}.score-heading{width:86px}.score-heading small{display:block;margin:0}.coordinate{width:96px}}
@media(max-width:760px){
 .demo{height:auto;min-height:100dvh;overflow:auto}.app-header{height:52px;flex:0 0 52px;padding:4px 8px;gap:6px}.institution,.title p{display:none}.title h1{font-size:18px;margin:0}.header-actions{gap:0}.header-actions button{padding:0;border:0;min-width:44px}.header-actions .button-label,.set-button-copy{display:none}.app-header .querybar{display:none}.workbench{display:flex;flex-direction:column;flex:1;padding:6px 8px 10px;gap:6px}.querybar{order:0}.querybar form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 90px;width:100%;gap:6px}.coordinate{width:auto}.coordinate input{font-size:14px}.mobile-set-summary{display:flex;order:1;min-height:44px;padding:0 4px;border:0;background:transparent;justify-content:flex-start;text-align:left;font-size:12px;white-space:normal;line-height:1.3;color:var(--wine)}.comparison{order:2;display:block;flex:none}.panel:not(.mobile-active){display:none}.panel-head{padding-left:101px;grid-template-columns:1fr;height:48px;flex-basis:48px;padding-right:44px;gap:0}.panel-letter{display:none}.panel-head select{font-size:12px;padding-right:20px}.mobile-tabs{position:absolute;left:7px;top:2px;width:90px;height:44px;z-index:3;display:flex;gap:2px}.mobile-tabs button{width:44px;padding:0;border:0;background:#f5f2f3}.mobile-tabs [aria-selected=true]{color:#fff;background:var(--wine)}.mobile-tabs span{display:none}.scene{flex:none;height:clamp(290px,calc(100dvh - 360px),420px)}.event-strip{padding:5px 7px;min-height:52px;gap:6px}.event-text,.event-meta{font-size:12px}.memory-note{font-size:12px;min-height:30px;padding:3px 7px 7px}.lens-trigger{min-width:56px;font-size:12px;padding:0 5px}.lens-trigger .icon{display:none}.transport{order:3;display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:4px;padding:3px 4px}.transport-buttons{gap:0;justify-content:space-between}.transport-buttons button{min-width:44px;padding:0}.transport-buttons .primary{min-width:44px}.transport-buttons .play-label{display:none}.timeline{display:none}.speed select{width:72px}.query-actions{grid-column:1 / -1;justify-content:space-between;padding-top:3px;border-top:1px solid var(--line)}.query-actions button{flex:1;font-size:12px}.query-actions .coherence-label{flex:1}.coherence-label select{width:100%;min-width:132px;font-size:12px}#cancel,#status{display:none}.scoreboard{order:4;min-height:78px;gap:5px}.score-heading{width:76px;font-size:12px}.score-heading small{display:none}.score-heading button{min-height:44px;font-size:12px}.scores{grid-template-columns:1fr 1fr;gap:5px}.score:not(.selected){display:none}.score{padding:5px;gap:4px;min-height:78px}.score-name{font-size:12px}.score-values strong{font-size:20px}.score-values small{font-size:12px}.scoreboard>button{display:none}dialog{padding:16px}.catalogue-apply{bottom:-16px;margin:14px -16px -16px;padding:10px 16px}.catalogue-apply button{width:100%}.dialog-header h2{font-size:24px}.guide-key{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr 1fr}.settings-grid label:first-child{grid-column:1 / -1}.mobile-coherence{display:flex;margin-top:12px}.mobile-playback{display:grid;gap:10px;margin-top:16px}.mobile-playback input{height:44px;accent-color:var(--wine)}.mobile-playback h3{margin:0}.catalogue-layout{grid-template-columns:1fr;gap:16px}.catalogue-cards{max-height:250px}.set-card{grid-template-columns:1fr;gap:4px;min-height:130px}.set-card svg{width:100%;height:64px}.set-details{border-left:0;border-top:1px solid var(--line);padding:14px 0 0;max-height:none}.catalogue-filters{gap:4px}.catalogue-filters button{padding:0 8px}.set-details>svg{width:85px;height:85px}
}
@media(max-width:360px){.title h1{font-size:17px}.header-actions button{min-width:44px}.app-header{padding-left:8px;padding-right:4px}.querybar form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 82px;gap:4px}.coordinate{padding-left:5px;padding-right:5px}.panel-head select{font-size:12px}.score-heading{width:62px}.query-actions .button-label{display:none}.transport .query-actions .coherence-label{flex:2}}
@media(min-width:761px) and (max-height:550px){
 .app-header{height:48px;flex-basis:48px;padding:2px 12px}.title h1{font-size:22px}.title p,.institution{display:none}.app-header .querybar{display:none}.workbench{grid-template-columns:minmax(0,1fr) 306px;grid-template-rows:48px minmax(0,1fr) auto 80px;padding:5px 8px;gap:6px}.querybar{grid-column:2;grid-row:1}.querybar form{gap:4px}.coordinate{width:98px}.querybar #manual{padding:0 7px}.comparison{grid-column:1;grid-row:1 / 5;display:block}.panel{height:100%}.panel:not(.mobile-active){display:none}.panel-head{padding-left:104px;grid-template-columns:1fr}.panel-letter{display:none}.panel-head select{font-size:13px}.mobile-tabs{position:absolute;left:7px;top:2px;width:90px;height:44px;z-index:3;display:flex;gap:2px}.mobile-tabs button{width:44px;padding:0;border:0;background:#f5f2f3}.mobile-tabs [aria-selected=true]{color:#fff;background:var(--wine)}.mobile-tabs span{display:none}.context-stage{display:block;grid-column:2;grid-row:2;overflow:auto;min-height:0;padding:0 4px}.context-stage .event-region:not(.active-context){display:none}.event-strip{border:0;padding:3px 0;min-height:48px}.memory-note{padding:0;min-height:28px}.lens-trigger{min-width:52px}.lens-trigger .icon{display:none}.event-text,.event-meta,.memory-note{font-size:12px}.transport{grid-column:2;grid-row:3;align-self:end;display:grid;grid-template-columns:1fr 72px;gap:3px;padding:3px}.transport-buttons{gap:0;justify-content:space-between}.transport-buttons button,.transport-buttons .primary{min-width:44px;padding:0}.play-label{display:none}.timeline,#status,#cancel{display:none}.query-actions{grid-column:1 / -1;justify-content:space-between}.query-actions button{flex:1}.query-actions .button-label{display:none}.coherence-label select{width:142px}.scoreboard{grid-column:2;grid-row:4;gap:5px}.score-heading{width:61px}.score-heading small{display:none}.score-heading button{min-height:44px}.scores{grid-template-columns:1fr 1fr;gap:5px}.score:not(.selected){display:none}.score{padding:4px}.score-name,.score-values small{font-size:12px}.scoreboard>button{display:none}.mobile-playback{display:grid;gap:8px}.mobile-coherence{display:flex}.mobile-set-summary{display:none}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


.level-controls{flex:none;padding:2px 8px 8px;border-top:1px solid #e4e6ea;background:#fafaf9;min-width:0}.level-controls[hidden]{display:none}.level-toolbar{display:flex;justify-content:space-between;align-items:center;gap:5px}.level-toolbar>div{display:flex;gap:4px}.level-summary{margin:0;font:500 12px/1.35 Inter,Arial,sans-serif;color:#364355}.level-toolbar button{min-height:44px;font-size:12px;padding:0 9px;background:transparent;border-color:transparent}.level-toolbar button:disabled{opacity:.65}.level-toolbar .hierarchy-open{color:var(--wine);text-decoration:underline;text-underline-offset:3px}.level-buttons{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 2px 5px}.level-buttons button{position:relative;flex:0 0 44px;min-height:44px;height:44px;display:flex;flex-direction:column;gap:0;padding:2px;border:1px solid #a7b0bb;border-radius:5px;background:#fff;font-size:12px;line-height:1.25}.level-buttons button small{font-size:11px;color:#536070;font-weight:400}.level-buttons [aria-pressed=true]{outline:2px solid var(--path);outline-offset:0;background:#edf3fa;border-color:var(--path)}.level-buttons .search-level::after{position:absolute;bottom:-5px;height:3px;background:var(--wine);left:6px;right:6px;content:''}.level-buttons .search-level b{color:var(--wine)}.level-buttons button:focus-visible{outline:3px solid var(--wine);outline-offset:2px}
.hierarchy-dialog{width:640px;max-height:calc(100dvh - 24px);padding:18px}.hierarchy-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.hierarchy-dialog .dialog-header{flex:none;margin-bottom:6px;gap:10px}.hierarchy-dialog .dialog-header h2{font-size:24px}.hierarchy-key{font:400 12px/1.4 Inter,Arial,sans-serif;margin:0 0 10px;color:var(--muted)}.hierarchy-scroll{flex:1;min-height:90px;max-height:52dvh;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);border-radius:6px}.hierarchy-scroll canvas{display:block;width:100%;height:360px}.hierarchy-dialog .level-controls{padding:0 0 6px;border-top:0;background:#fff}.hierarchy-playback{display:flex;align-items:center;gap:6px;flex:none}.hierarchy-playback button{min-width:44px}.hierarchy-playback output{margin-left:auto;font-size:12px;color:var(--muted)}#hierarchyEventText{flex:none;font:400 12px/1.4 Inter,Arial,sans-serif;margin:9px 0 0}.hierarchy-playback .primary{min-width:86px}
@media(max-width:760px){.has-hierarchy .scene{height:clamp(248px,calc(100dvh - 458px),360px)}.hierarchy-dialog{padding:12px}.hierarchy-dialog .dialog-header h2{font-size:22px}.hierarchy-key{margin-bottom:7px}}
@media(min-width:761px) and (max-height:550px){.has-hierarchy .scene{min-height:100px}.hierarchy-dialog{width:740px}.hierarchy-dialog .hierarchy-scroll{max-height:45dvh}.hierarchy-dialog .level-controls{padding-bottom:3px}.hierarchy-dialog .level-toolbar{position:absolute;right:68px;top:14px}.hierarchy-dialog .level-summary{display:none}.hierarchy-dialog .hierarchy-key{max-width:550px}.hierarchy-dialog #hierarchyEventText{display:none}}

.level-label.viewed{outline:1px dashed var(--path);color:var(--path)}
.level-trace{margin:3px 2px 0;font:400 12px/1.4 Inter,Arial,sans-serif;color:#364355;grid-column:1 / -1}.level-trace[hidden]{display:none}.annotation.trace-pass{border-color:#8099b9;color:var(--path)}
.pass-routes{display:flex;flex-wrap:wrap;gap:0 12px}.pass-routes>span{white-space:nowrap}
@media(min-width:761px) and (max-height:550px){.panel>.level-controls{display:grid;grid-template-columns:minmax(0,1fr) 144px;gap:4px;padding:4px 8px}.panel>.level-controls[hidden]{display:none}.panel>.level-controls .level-toolbar{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-end;gap:0}.panel>.level-controls .level-summary{font-size:11px;white-space:nowrap}.panel>.level-controls .level-toolbar>div{height:40px}.panel>.level-controls .level-toolbar button{padding:0 7px}.panel>.level-controls .level-buttons{grid-column:1;grid-row:1;align-self:center}}


.title p.demo-byline{display:block;white-space:normal;line-height:1.3}.demo-byline a{color:inherit;text-underline-offset:2px}.demo-attribution cite{font-style:italic}.demo-attribution a{overflow-wrap:anywhere}
@media(max-width:760px){.app-header{height:auto;min-height:68px;flex-basis:auto}.title p.demo-byline{font-size:11px;max-width:275px}}
@media(min-width:761px) and (max-height:550px){.title p.demo-byline{font-size:11px}}


.load-failure{flex:0 0 auto;margin:6px 12px;padding:10px 12px;border:1px solid #a94a65;border-radius:6px;background:#fff7f8;color:#611529;font-size:14px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
body[data-load-error] #status{display:none}


.panel>.event-region{flex:0 0 92px;height:92px;min-height:0;overflow:auto;scrollbar-gutter:stable}
.panel>.level-controls{flex:0 0 128px;height:128px;min-height:0;padding:4px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:60px 18px minmax(0,1fr);gap:0;overflow:hidden}
.panel>.level-controls[hidden]{display:none}
.panel>.level-controls .level-toolbar{display:contents}
.panel>.level-controls .level-toolbar>div{grid-column:2;grid-row:1;align-self:center;height:auto}
.panel>.level-controls .level-summary{grid-column:1 / -1;grid-row:2;align-self:start;margin:0;font-size:12px;line-height:18px;white-space:normal}
.panel>.level-controls .level-buttons{grid-column:1;grid-row:1;align-self:stretch;align-items:center;min-width:0;padding:2px 2px 4px;scrollbar-width:thin}
.panel>.level-controls .level-trace{grid-column:1 / -1;grid-row:3;min-height:0;margin:0 2px;overflow:auto;scrollbar-gutter:stable}
.panel>.event-region:focus-visible,.panel>.level-controls .level-trace:focus-visible{outline-offset:-3px}
@media(min-width:761px) and (max-height:550px){
 .panel>.level-controls{flex-basis:104px;height:104px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px 18px minmax(0,1fr)}
 .panel>.level-controls .level-summary{display:block}
}


#helpDialog .demo-acknowledgements{font:400 14px/1.5 Inter,Arial,sans-serif;color:#536070;overflow-wrap:anywhere}

/* Short viewports: one scroll surface keeps hierarchy playback reachable. */
@media(max-height:550px){
 .hierarchy-dialog[open]{overflow-y:auto;overscroll-behavior:contain}
 .hierarchy-dialog .dialog-header{position:sticky;top:0;z-index:2;background:#fff}
 .hierarchy-dialog .hierarchy-scroll{flex:none;min-height:0;max-height:none;overflow:visible}
 .hierarchy-dialog .level-toolbar{position:static}
 .hierarchy-dialog .level-summary{display:block}
 .hierarchy-dialog #hierarchyEventText{display:block}
}
