/* 10q list — diagram selection aligned with wsheet; 3px border reserved on load (transparent) */
body.ten-questions img.selected-img:not(.num):not(#pp) {
  border: 3px solid #2563eb !important;
  box-sizing: border-box !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  outline: none !important;
}

/* Resize handles (same positions as wsheet) */
body.ten-questions img.selected-img:not(.num)::before,
body.ten-questions img.selected-img:not(.num)::after {
  content: '';
  position: absolute;
  background: #2563eb;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: nwse-resize;
  z-index: 10;
  pointer-events: none;
}

body.ten-questions img.selected-img:not(.num)::before {
  bottom: -8px;
  right: -8px;
}

body.ten-questions img.selected-img:not(.num)::after {
  top: -8px;
  left: -8px;
}

/* Question number badge on diagram border (multi-diagram sheets or selected image) */
body.ten-questions .tenq-img-qnum {
  position: absolute;
  z-index: 105;
  margin: 0;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  font-family: Roboto, sans-serif;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #374151;
  border-radius: 3px;
  pointer-events: none;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

body.ten-questions .tenq-img-qnum--on-selected {
  border-color: #2563eb;
  background: #fff;
  z-index: 110;
}

@media print {
  body.ten-questions .tenq-img-qnum {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
