#canvasReferences[hidden]{display:none!important}
#canvasReferences{position:relative;flex:0 0 auto;box-sizing:border-box;min-width:200px;background:#161616;border-right:1px solid #292929;padding:16px 14px;overflow:auto;color:#ccc}
#canvasReferences header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:14px}
#canvasReferences button{font:inherit;color:inherit;border:0;cursor:pointer;background:transparent}
#canvasReferences .reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#canvasReferences .reference-add{aspect-ratio:1;border-radius:9px;background:#292929;font-size:30px;color:#999}
#canvasReferences .reference-card{position:relative;min-width:0;font-size:12px}
#canvasReferences .reference-card>button:first-child{padding:0;width:100%}
#canvasReferences img{display:block;width:100%;height:90px;object-fit:contain;border-radius:8px;background:#262626}
#canvasReferences .reference-card>span{display:block;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#canvasReferences .reference-remove{position:absolute;right:2px;top:2px;border-radius:50%;background:#222b}
#canvasReferences .reference-hint{font-size:12px;line-height:1.6;color:#777}
#canvasReferences .reference-resizer{position:absolute;right:0;top:0;bottom:0;width:5px;cursor:col-resize;touch-action:none}
#canvasReferences .reference-resizer:hover,#canvasReferences .reference-resizer:focus-visible{background:#777}
#canvasReferencesToggle{border:0;border-radius:7px;background:transparent;color:#aaa;font-size:13px;padding:8px 10px;cursor:pointer}
#canvasReferencesToggle[aria-expanded=true]{background:#303030;color:#eee}
#viewChat #cfbSourceRow #canvasReferencesToggle{display:flex;align-items:center;justify-content:center;width:30px;height:28px;flex:0 0 30px;padding:4px 6px;box-sizing:border-box}
body #viewChat #cfbSourceRow #projectChatReopen{position:static!important;inset:auto!important;flex:0 0 30px;width:30px!important;height:28px!important;margin:0 4px 0 0!important;box-shadow:none!important;background:transparent!important;border:0!important}
#lovartStage:has(#canvasReferences:not([hidden])){flex-direction:row!important}
#lovartStage:has(#canvasReferences:not([hidden])) #lovartCanvasWrap{flex:1;min-width:0;width:0}
#anglePanel .angle-stage{cursor:grab;touch-action:none;user-select:none}
#anglePanel .angle-stage.dragging{cursor:grabbing}
#anglePanel .angle-stage.dragging .angle-cube{transition:none}
#anglePanel .angle-cube .face{background-size:contain;background-repeat:no-repeat;align-items:center;color:#777;font-size:14px}
