/* Auto-playing product changeover / brand compatibility demo */
.factoryops-changeover-widget {
  --app-font-sans: "Space Grotesk", sans-serif;
  --app-font-mono: "JetBrains Mono", monospace;
  position: relative;
  background: #c3c6c9;
  color: #1e2326;
  width: 100%;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--app-font-sans);
}
.factoryops-changeover-widget .co-option { cursor: pointer; }
.factoryops-changeover-widget .co-picker-face { cursor: pointer; }
.factoryops-changeover-widget .co-list { pointer-events: auto; touch-action: pan-y pinch-zoom; }
.factoryops-changeover-widget .co-mid-btn { cursor: pointer; }
.factoryops-changeover-widget.is-user .co-cursor { display: none; }

.co-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-viewport {
  position: relative;
  overflow: visible;
  background: #c3c6c9;
  min-height: 0;
  max-width: 100%;
}
.co-stage {
  padding: 14px 14px 12px;
  transform-origin: 50% 20%;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  max-width: 100%;
  min-width: 0;
}
.co-eyebrow {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2e3438;
  margin: 0 0 6px;
}
.co-tool-head { margin-bottom: 12px; }
.co-tool-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-tool-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.03em;
  margin: 0;
  color: #111;
}
.co-fit-badge {
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #7f858a;
  background: #d4d6d8;
  border-radius: 3px;
  padding: 3px 8px;
  line-height: 1;
}
.co-tool-sub { margin: 4px 0 0; font-size: 13px; color: #3F3F3F; }

.co-pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
}
.co-picker {
  background: #e4e6e8;
  border: 1px solid #8c9297;
  border-radius: 6px;
  padding: 10px;
  position: relative;
}
.co-picker-face {
  min-height: 48px;
  border: 1px solid #1D4ED8;
  border-radius: 4px;
  background: #c3c6c9;
  padding: 8px 10px;
}
.co-search-fake {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d6368;
  font-size: 13px;
  height: 32px;
}
.co-search-icon {
  width: 12px; height: 12px; border: 2px solid #5d6368; border-radius: 50%;
  position: relative; flex-shrink: 0;
}
.co-search-icon::after {
  content: ""; position: absolute; left: 9px; top: 9px; width: 6px; height: 2px;
  background: #5d6368; transform: rotate(45deg);
}
.co-picked-code { font-family: var(--app-font-mono); font-size: 15px; font-weight: 700; color: #1D4ED8; margin: 0; }
.co-picked-name { font-size: 13px; margin: 2px 0 0; line-height: 1.3; }
.co-list {
  position: relative;
  z-index: 5;
  max-height: 220px;
  margin-top: 6px;
  overflow-y: auto;
  background: #eceeef;
  border: 1px solid #7f858a;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(17,17,17,.18);
  padding: 4px;
}
.co-option {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: #dfe1e3;
  border-radius: 3px;
  padding: 7px 8px;
  margin: 2px 0;
  font: inherit;
  color: inherit;
  cursor: default;
}
.co-option-code { font-family: var(--app-font-mono); font-size: 11px; font-weight: 700; color: #1D4ED8; flex-shrink: 0; }
.co-option-name { font-size: 12px; line-height: 1.3; }
.co-option.is-hover, .co-option.is-selected {
  border-color: #1D4ED8;
  background: #DBEAFE;
}
.co-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 28px; }
.co-arrow { color: #1D4ED8; font-size: 18px; font-weight: 700; }
.co-mid-btn {
  font-family: var(--app-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid #7f858a;
  background: #d4d6d8;
  border-radius: 4px;
  padding: 4px 8px;
}

.co-result {
  margin-top: 14px;
  background: #d4d6d8;
  border: 1px solid #8c9297;
  border-radius: 6px;
  overflow: hidden;
  min-height: 72px;
}
.co-result-empty { padding: 22px 18px; font-size: 14px; color: #3F3F3F; }
.co-visual-svg { display: block; width: 100%; height: auto; background: #c3c6c9; }
.co-svg-caption { fill: #2e3438; font-family: var(--app-font-mono); font-size: 11px; letter-spacing: .05em; }
.co-svg-code { fill: #1e2326; font-family: var(--app-font-mono); font-size: 12px; font-weight: 700; }
.co-flow { animation: co-dash 1.6s linear infinite; }
.co-fill { animation: co-bob 3s ease-in-out infinite; }
@keyframes co-dash { to { stroke-dashoffset: -44; } }
@keyframes co-bob { 50% { transform: translateY(3px); } }
.co-result-copy { border-top: 4px solid #1D4ED8; padding: 14px 16px 16px; background: #e4e6e8; }
.co-result.is-cip .co-result-copy { background: #f3e6e7; }
.co-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 6px 0 0;
}
.co-result-short { font-family: var(--app-font-mono); font-size: 12px; font-weight: 500; color: #3F3F3F; }
.co-result-pair { margin: 6px 0 0; font-size: 14px; }
.co-result-detail { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #3F3F3F; }
.co-cip-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid #B42318;
  background: #f8d7da;
  color: #5a121c;
  font-size: 13px;
  font-weight: 600;
}
.co-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 2px; flex-shrink: 0; }

.co-matrix-block {
  margin-top: 12px;
  background: #d8dadc;
  border: 1px solid #8c9297;
  border-radius: 6px;
  padding: 8px 8px 8px;
  max-width: 100%;
  min-width: 0;
}
.co-matrix-head { margin: 0 0 8px; }
.co-legend { margin: 6px 0 0; padding: 0; background: none; border: 0; }
.co-legend ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; }
.co-legend li { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.co-legend-code { font-family: var(--app-font-mono); color: #3F3F3F; }

.co-matrix-bar {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-family: var(--app-font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: #2e3438; margin: 0;
}
.co-matrix-fit { font-weight: 700; color: #1D4ED8; }
.co-matrix-scroll {
  height: auto;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  border: 1px solid #8c9297;
  border-radius: 4px;
  background: #c3c6c9;
  max-width: 100%;
}
.co-matrix-scroll.is-scrollable {
  box-shadow: inset -16px 0 12px -12px rgba(17,17,17,.28);
}
.co-matrix {
  border-collapse: collapse;
  font-size: 11px;
  background: #c3c6c9;
  width: max-content;
}
.co-matrix th, .co-matrix td { padding: 0; }
.co-matrix thead th {
  height: auto;
  width: var(--co-cell, 26px);
  vertical-align: bottom;
  font-weight: 600;
  background: #d4d6d8;
}
.co-matrix thead th span {
  display: block;
  writing-mode: vertical-rl;
  rotate: 180deg;
  width: var(--co-cell, 26px);
  height: 78px;
  overflow: hidden;
  text-align: left;
  line-height: 1.1;
  padding: 0 2px 4px;
  font-family: var(--app-font-mono);
  font-size: 9px;
  font-weight: 700;
}
.co-corner {
  min-width: var(--co-label, 168px);
  width: var(--co-label, 168px);
  text-align: left;
  padding: 6px 8px 4px !important;
  font-size: 9px;
  font-weight: 700;
  background: #d4d6d8;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 4;
  box-shadow: 6px 0 8px -6px rgba(17,17,17,.28);
}
.co-matrix tbody th,
.co-row-label {
  text-align: left;
  padding: 0 8px !important;
  min-width: var(--co-label, 168px);
  width: var(--co-label, 168px);
  max-width: var(--co-label, 168px);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  background: #d4d6d8;
  white-space: normal;
  cursor: pointer;
  position: sticky;
  left: 0;
  z-index: 3;
  box-shadow: 6px 0 8px -6px rgba(17,17,17,.28);
}
.co-col-label { cursor: pointer; }
.co-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--co-cell, 26px);
  height: var(--co-cell, 26px);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  font-family: var(--app-font-mono);
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
/* Crosshair: tint the cell buttons (inline background would hide a td-only fill)
   so the row and the column read equally. */
.co-matrix tbody tr.is-row th,
.co-matrix thead th.is-col {
  background: #1D4ED8;
}
.co-matrix .is-cross-label {
  background: #1D4ED8 !important;
  color: #f4f5f6;
}
.co-matrix tr.is-row .co-cell,
.co-matrix td.is-line .co-cell {
  box-shadow: inset 0 0 0 2px #1E3A8A, inset 0 0 0 999px rgba(29, 78, 216, 0.42);
}
.co-matrix thead th.is-col {
  box-shadow: inset 0 0 0 2px #1E3A8A;
}
.co-matrix td.is-sel .co-cell {
  outline: 3px solid #111;
  outline-offset: -2px;
  z-index: 1;
  position: relative;
  box-shadow: inset 0 0 0 2px #1E3A8A, inset 0 0 0 999px rgba(29, 78, 216, 0.42);
}
.co-down-arrow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
  will-change: transform;
}
.co-down-arrow.is-arrived { animation: co-arrow-pulse .45s ease-out; }
@keyframes co-arrow-pulse {
  0% { transform: translate(var(--x, 0), var(--y, 0)) scale(1); }
  50% { transform: translate(var(--x, 0), var(--y, 0)) scale(1.12); }
  100% { transform: translate(var(--x, 0), var(--y, 0)) scale(1); }
}

.co-cursor {
  position: absolute; left: 0; top: 0; z-index: 8;
  width: 24px; height: 24px; margin: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.45));
  transition: transform .12s linear;
  will-change: transform;
}
.co-cursor.is-down { transform: scale(.86); }
.co-pointer-icon { display: block; }

@media (max-width: 800px) {
  .co-viewport { min-height: 0; }
  .co-stage { padding: 10px 8px 8px; }
  .co-pickers { grid-template-columns: 1fr; }
  .co-mid { flex-direction: row; justify-content: center; padding-top: 0; }
  .co-list { max-height: 180px; }
  .co-tool-title { font-size: 18px; }
  .co-result-title { font-size: 18px; }
  .co-matrix-scroll { height: auto; }
  .co-row-label { font-size: 10px; padding: 0 6px !important; }
}

/* Side column around the changeover card */
.changeover-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 16px;
  max-width: 100%;
  min-width: 0;
}
.changeover-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
.changeover-copy .label {
  display: block;
  margin: 0;
  color: var(--black);
}
.changeover-copy h3 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
  color: var(--black);
}
.changeover-copy > p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}
.changeover-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px 28px;
  align-items: stretch;
  margin: 6px 0 0;
  max-width: 100%;
  min-width: 0;
}
.changeover-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
.changeover-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.changeover-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 1px;
}
.changeover-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  min-width: 0;
}
.changeover-stats div {
  border: 1px solid var(--black);
  border-radius: 2px;
  background: rgba(255,255,255,0.7);
  padding: 10px 10px 9px;
  min-width: 0;
}
.changeover-stats dt {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--black);
}
.changeover-stats dd {
  margin: 6px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.changeover-card { margin: 0; }
.changeover-card .product-map { margin-top: 0; }
@media (max-width: 768px) {
  .changeover-meta { grid-template-columns: 1fr; gap: 14px; }
  .changeover-copy h3 { font-size: 20px; }
}
@media (max-width: 430px) {
  .changeover-copy h3 { font-size: 18px; }
  .changeover-copy > p { font-size: 14px; }
  .changeover-stats { gap: 8px; }
  .changeover-stats div { padding: 8px 7px 7px; }
  .changeover-stats dt { font-size: 18px; }
  .changeover-stats dd { font-size: 9px; letter-spacing: 0.02em; }
}

.changeover-card,
.changeover-card .product-map,
.factoryops-changeover-widget {
  max-width: 100%;
  min-width: 0;
}


/* Fullscreen: keep full cell size and pan the 36×36 grid on both axes. */
.tool-stage.is-fs-fallback .co-matrix-scroll,
.tool-stage:fullscreen .co-matrix-scroll{
  overflow: auto;
  max-height: calc(100vh - 16px);
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
.tool-stage.is-fs-fallback .factoryops-changeover-widget,
.tool-stage:fullscreen .factoryops-changeover-widget,
.tool-stage.is-fs-fallback .co-viewport,
.tool-stage:fullscreen .co-viewport{
  max-width: none;
  height: 100%;
  overflow: auto;
}
.tool-stage.is-fs-fallback .product-changeover,
.tool-stage:fullscreen .product-changeover{
  flex: 1;
  overflow: auto;
  height: 100%;
  touch-action: pan-x pan-y pinch-zoom;
}


/* Selected cell: light grey outline (was black #111) */
.co-matrix td.is-sel .co-cell {
  outline-color: #d0d0d0;
}

/* Fullscreen: one vertical scroller for the whole tool; matrix shouldn't eat 100vh */
#factoryops-changeover-stage.is-fs-fallback,
#factoryops-changeover-stage:fullscreen{
  overflow: hidden;
}
#factoryops-changeover-stage.is-fs-fallback .product-changeover,
#factoryops-changeover-stage:fullscreen .product-changeover{
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
}
#factoryops-changeover-stage.is-fs-fallback .factoryops-changeover-widget,
#factoryops-changeover-stage:fullscreen .factoryops-changeover-widget,
#factoryops-changeover-stage.is-fs-fallback .co-viewport,
#factoryops-changeover-stage:fullscreen .co-viewport,
#factoryops-changeover-stage.is-fs-fallback .co-stage,
#factoryops-changeover-stage:fullscreen .co-stage{
  height: auto;
  max-height: none;
  overflow: visible;
}
#factoryops-changeover-stage.is-fs-fallback .co-matrix-scroll,
#factoryops-changeover-stage:fullscreen .co-matrix-scroll{
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

/* Full screen button + 100% badge sit on the map's top edge (card view only) */
#changeover .co-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 8px;
  min-height: 32px;
  position: relative;
  z-index: 6;
}
#changeover .co-map-toolbar .co-fit-badge {
  margin: 0;
}
#factoryops-changeover-stage .tool-fs-controls {
  position: static;
  top: auto;
  right: auto;
}
#changeover .tool-fs-hint {
  padding-top: 0;
}
#factoryops-changeover-stage.is-fs-fallback .tool-fs-controls,
#factoryops-changeover-stage:fullscreen .tool-fs-controls,
#factoryops-changeover-stage.is-fs-open .tool-fs-controls {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 410;
}

/* Fullscreen pinch-zoom (full screen only; the homepage card never matches these selectors). */
.co-fs-zoom-viewport {
  position: relative;
  overflow: visible;
}
.co-fs-zoom-layer {
  transform-origin: 0 0;
  will-change: transform;
}
.co-fs-zoom-controls {
  display: none;
  justify-content: flex-end;
  gap: 6px;
  margin: 8px 0 0;
  width: 100%;
}
#factoryops-changeover-stage.is-fs-fallback .co-fs-zoom-controls,
#factoryops-changeover-stage:fullscreen .co-fs-zoom-controls,
#factoryops-changeover-stage.is-fs-open .co-fs-zoom-controls {
  display: inline-flex;
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: auto;
  margin: 0;
  z-index: 410;
}
.co-fs-zoom-controls button,
.co-fs-zoom-controls output {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 2px;
  padding: 8px 10px;
  line-height: 1;
  min-width: 36px;
  text-align: center;
}
.co-fs-zoom-controls button { cursor: pointer; }
.co-fs-zoom-controls button:hover,
.co-fs-zoom-controls button:focus-visible {
  background: #60A5FA;
  outline: 2px solid #1D4ED8;
  outline-offset: 2px;
}
/* The matrix sits in a pan/zoom canvas; the script owns every touch gesture on it. */
#factoryops-changeover-stage.is-fs-fallback .co-fs-zoom-viewport,
#factoryops-changeover-stage:fullscreen .co-fs-zoom-viewport,
#factoryops-changeover-stage.is-fs-open .co-fs-zoom-viewport {
  overflow: hidden;
  height: calc(100vh - 150px);
  height: calc(100dvh - 150px);
  min-height: 260px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background: #e9eaeb;
  border: 1px solid #111;
}
#factoryops-changeover-stage.is-fs-fallback .co-fs-zoom-layer,
#factoryops-changeover-stage:fullscreen .co-fs-zoom-layer,
#factoryops-changeover-stage.is-fs-open .co-fs-zoom-layer {
  width: max-content;
}
#factoryops-changeover-stage.is-fs-fallback .co-fs-zoom-layer .co-matrix-scroll,
#factoryops-changeover-stage:fullscreen .co-fs-zoom-layer .co-matrix-scroll,
#factoryops-changeover-stage.is-fs-open .co-fs-zoom-layer .co-matrix-scroll {
  overflow: visible;
  max-height: none;
  touch-action: none;
}

/* Full screen: programmatic panel scrolls must be instant (a smooth-scroll animation swallows the next touch). */
#factoryops-changeover-stage.is-fs-fallback .product-changeover,
#factoryops-changeover-stage:fullscreen .product-changeover,
#factoryops-changeover-stage.is-fs-open .product-changeover {
  scroll-behavior: auto;
}

/* Firefox: tool-fullscreen.css lists `:-webkit-full-screen` selectors, which Firefox rejects, so it drops those
   whole rules. Repeat the overlay rules the changeover stage needs with selectors every browser parses. */
#factoryops-changeover-stage.is-fs-fallback {
  background: #c3c6c9;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
#factoryops-changeover-stage.is-fs-fallback .tool-fs-hint { display: none; }
#factoryops-changeover-stage.is-fs-fallback .product-changeover {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}

/* ---- Full screen: choosing a cell must not move the canvas under the finger. ----
   The result card (82px empty, ~350-440px filled) sits BELOW the map here, and a compact readout
   floats on the canvas instead. */
#factoryops-changeover-stage.is-fs-fallback .co-stage,
#factoryops-changeover-stage.is-fs-open .co-stage {
  display: flex;
  flex-direction: column;
}
#factoryops-changeover-stage.is-fs-open .co-tool-head { order: 0; }
#factoryops-changeover-stage.is-fs-open .co-pickers { order: 1; }
#factoryops-changeover-stage.is-fs-open .co-matrix-block { order: 2; }
#factoryops-changeover-stage.is-fs-open .co-result { order: 3; }

.co-fs-readout {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 6px 9px;
  background: rgba(17, 17, 17, 0.84);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 2px;
  pointer-events: none;
  z-index: 4;
}
.co-fs-readout[hidden] { display: none; }

/* Full screen: .co-stage must not become the containing block for the fixed zoom buttons
   (will-change: transform does that, which pushed them below the visible screen). */
#factoryops-changeover-stage.is-fs-open .co-stage {
  will-change: auto !important;
  transform: none !important;
  transition: none !important;
}

/* Firefox/Android honours touch-action per element: keep every node inside the canvas under script control. */
#factoryops-changeover-stage.is-fs-open .co-fs-zoom-viewport * { touch-action: none; }

/* Inline (normal phone screen) hold-and-slide trace: stop long-press text selection, show a small floating readout. */
#factoryops-changeover .co-matrix { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#factoryops-changeover-stage.is-tracing .co-matrix { outline: 2px solid #1D4ED8; outline-offset: -2px; }
.co-trace-readout {
  position: fixed;
  top: 76px;
  left: 12px;
  right: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 2px;
  pointer-events: none;
  z-index: 300;
}
.co-trace-readout[hidden] { display: none; }

/* Phone: tighten the space above the grey changeover box (card padding + the "Tap to view full screen" row). */
@media (max-width: 800px) {
  .changeover-card.card { padding-top: 12px; }
  #factoryops-changeover-stage .tool-fs-hint { padding: 0 10px 4px; line-height: 1.2; }
}

/* Phone: no animated pointer arrow (.co-cursor) on the inline card. It used to pop in as soon as the card scrolled into view. */
@media (max-width: 800px) {
  #factoryops-changeover .co-cursor { display: none !important; }
}
