

/* Selection/hover cues.
   - CSS `outline` is unusable inside these SVGs: Blink clamps line widths to a
     1px minimum, and the documents are authored in inches, so any outline paints
     as a one-inch bar regardless of the value given here.
   - CSS `filter` overrides the SVG filter attribute (duotone / drop-shadow effect
     chains), so the glow is scoped to elements without one — those elements still
     get the transform cage as their selection cue.
   - Pattern pieces (anything containing a cutting line) recolor the cutting line
     itself: the piece's true contour, unaffected by masked graphics that inflate
     the group's bounding box. */
.svg-selected:not([filter]) {
  filter: drop-shadow(0 0 .1px rgb(46, 182, 195)) drop-shadow(0 0 .1px rgb(46, 182, 195));
}

.svg-selected:has(.cutting-line) {
  filter: none;
}

.svg-selected .cutting-line,
.cutting-line.svg-selected {
  stroke: rgb(46, 182, 195) !important;
}



.svg-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.15px;
  font-weight: bold;
  stroke: none;
  fill: black;
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+/Edge */
  user-select: none;
  /* Standard */
}

.shadow-layer {
  opacity: 0.5;
  fill: none;
  stroke: black;
  stroke-width: 0.01;
}

.hide-layer {
  display: none;
}

.svg-drawing-selected {
  fill: rgba(0, 119, 255, 0.336) !important;
  stroke: rgb(18, 8, 110) !important;
  stroke-width: 0.4;
  stroke-linecap: round;
  stroke-linejoin: round;

}

.dimension-line {
  stroke: black;
  stroke-width: 0.01;
  fill: none;
}

.stripes {
  pointer-events: none;
}

.grade-point {
  fill: #6cace4;
  font-size: 0.2px;
  font-weight: bold;
  stroke: none;
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+/Edge */
  user-select: none;
  /* Standard */
  r: 0.3;
}

.point-visible {
  display: block !important;
}

.sewing-line {
  stroke: #86a6f5 !important;
  stroke-width: 0.02;
  stroke-dasharray: 0.3 0.1;
  fill: none;
}

.cutting-line {
  stroke: rgb(90, 90, 90) !important;
  stroke-width: 0.1;

}

.layer-0 {
  stroke: #FF0000;
}

/* Red */
.layer-1 {
  stroke: #00FF00;
}

/* Green */
.layer-2 {
  stroke: #0000FF;
}

/* Blue */
.layer-3 {
  stroke: #FF00FF;
}

/* Magenta */
.layer-4 {
  stroke: #FFFF00;
}

/* Yellow */
.layer-5 {
  stroke: #00FFFF;
}

/* Cyan */
.layer-6 {
  stroke: #FF8000;
}

/* Orange */
.layer-7 {
  stroke: #8000FF;
}

/* Purple */
.layer-8 {
  stroke: #008080;
}

/* Teal */
.layer-9 {
  stroke: #FF0080;
}

/* Pink */
.layer-10 {
  stroke: #000000;
}

/* Black */

.guide-layer {
  stroke: #8a2727 !important;
  stroke-width: 0.05;
}

.hidden-layer {
  display: none;
}

.preview-fill {
  fill: rgb(255, 255, 255);
}

.snap-point-active {
  fill: rgb(68, 220, 17);
}

.label-text {
  /*display: none; */
}

.label-text-fixed {
  /*display: none; */
}


.control-cage {
  pointer-events: all;
}

.control-point {
  fill: rgb(131, 131, 172);
  stroke: #fff;
  stroke-width: 0.01px;
  /* r:0.07; */
}

.edge-point {
  fill: #00f;
  stroke: #fff;
  stroke-width: 0.01px;
  cursor: move;
  r: 0.4;
  pointer-events: all;
}

.dragging {
  fill: rgb(196, 49, 51) !important;
  stroke: #fff;
  stroke-width: 0.01px;
  cursor: move;
}

.edge-point:hover {
  fill: rgb(196, 49, 51) !important;

}

.graphic-seam {
  /* display: block; */
}

/* Hover cue — same constraints as .svg-selected above. */
.svg-highlight {
  opacity: 1 !important;
}

.svg-highlight:not([filter]) {
  filter: brightness(1.3) saturate(1.5);
}

.svg-highlight:has(.cutting-line) {
  filter: none;
}

.svg-highlight .cutting-line,
.cutting-line.svg-highlight {
  stroke: rgb(46, 182, 195) !important;
  stroke-opacity: 0.6;
}

.stitch-line {
  fill: none !important;
  stroke-width: 0.04;
  stroke-linecap: round;
  stroke-linejoin: round;
}