/* Touch Screen Tester styles */

#touchRoot {
  margin: 0 0 22px;
}

.touch-board {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 60vh;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}

#touchCanvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.touch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin: 0 0 12px;
  min-height: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}

.touch-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.touch-stat-label {
  color: var(--text-3);
}

.touch-stat-value {
  color: var(--text);
  font-weight: 600;
}

.touch-coverage-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.touch-coverage-bar {
  flex: 1;
  height: 8px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.touch-coverage-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.15s ease;
  min-width: 0;
}

.touch-coverage-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 52px;
  text-align: right;
}

/* Mode button active state */
.btn.secondary.mode-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

/* Toolbar spacing for the touch tool */
.touch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
}
