/* Stage 57 — movable/resizable pattern comparison and unique per-round colors. */
#viewerSection .viewer-pattern-panel{
  position:absolute;left:18px;right:auto;bottom:132px;top:auto;transform:none;
  box-sizing:border-box;width:min(425px,calc(100% - 36px));height:280px;
  min-width:248px;min-height:138px;max-width:calc(100% - 12px);max-height:calc(100% - 12px);
  resize:both;overflow:auto;z-index:145;
}
#viewerSection .viewer-pattern-header{cursor:grab;user-select:none;touch-action:none;gap:5px;position:sticky;top:0;background:rgba(8,25,42,.97);padding-bottom:5px;z-index:1;}
#viewerSection .viewer-pattern-header.dragging{cursor:grabbing;}
#viewerSection .viewer-pattern-header strong{flex:1;}
#viewerSection .viewer-pattern-header button{white-space:nowrap;font-size:11px;cursor:pointer;}
#viewerSection .viewer-pattern-header button[hidden]{display:none!important;}
#viewerSection .viewer-round-chip.pattern-matched-round{
  background:var(--pattern-round-color)!important;
  border:2px solid var(--pattern-round-color)!important;
  color:#091421!important;box-shadow:0 0 0 1px rgba(0,0,0,.48) inset;
  font-weight:800!important;
}
#viewerSection .viewer-round-chip.pattern-matched-round.active{
  outline:2px solid #fff!important;outline-offset:2px;
}
@media(max-width:720px){#viewerSection .viewer-pattern-panel{left:8px;bottom:105px;max-width:calc(100% - 8px);}}
