.mouse-pad {
  position: relative;
  min-height: 15rem;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background-color: #eef6fa;
  background-image: linear-gradient(#d6e7ef 1px, transparent 1px), linear-gradient(90deg, #d6e7ef 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid #a7c5d3;
  border-radius: 10px;
  cursor: crosshair;
  user-select: none;
}

.mouse-pad canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.mouse-zone {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  width: clamp(3.5rem, 20%, 6rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px dashed #367183;
  border-radius: 12px;
  background: #fff;
  color: #183b48;
  font-size: .82rem;
  font-weight: 700;
}

#mouse-drag-start { left: 9%; }
#mouse-drag-target { right: 9%; }

.mouse-zone.is-active {
  border: 2px solid #0a745c;
  background: #e8f7ec;
}

.display-card .mouse-status {
  margin-top: .6rem;
}

.mouse-toolbar {
  align-items: end;
  margin-bottom: 0;
}

.mouse-table-wrap {
  overflow-x: auto;
}

.mouse-table {
  border-collapse: collapse;
  font-size: .88rem;
  width: 100%;
}

.mouse-table :is(th, td) {
  border-bottom: 1px solid var(--display-border);
  padding: .55rem .65rem;
  text-align: start;
  white-space: nowrap;
}

.mouse-table thead { background: var(--tool-page); }
.mouse-table tr.is-pressed { background: var(--tool-selected); }

.mouse-events {
  margin-top: .85rem;
}

.mouse-events-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .45rem;
}

#mouse-log {
  max-height: 15rem;
  overflow: auto;
}
